Sviluppatori
Porta l’assistente nella tua app, nel tuo client MCP o sul tuo sito. Ovunque costa come nella chat.
POST/api/v1/conversations
Avvia una chat: { text, locale?, model?, tools? } — con tools chiedi prezzi crypto, analisi tecnica o ricerca web.
curl -X POST "https://cryptoprice.pro/api/v1/conversations" \
-H "Authorization: Bearer sk_..." \
-H "Content-Type: application/json" \
-d '{"text":"…","locale":"it"}'Corpo della risposta
La risposta apparirà qui.
Documentazione
Strumenti crypto
Gli strumenti crypto della chat sono anche nell’API: prezzo, panoramica del mercato, analisi tecnica, candele, order book, confronto tra exchange, funding rate, convertitore e ricerca web. Aggiungili con il campo tools; gli strumenti attivi e i loro costi si elencano con GET /api/v1/tools.
curl -X POST https://cryptoprice.pro/api/v1/conversations -H "Authorization: Bearer sk_..." -H "Content-Type: application/json" -d '{"text": "BTC and ETH price, 4h technical analysis and the cheapest exchange", "tools": ["crypto_price", "crypto_technical_analysis", "crypto_compare_exchanges"]}'
# GET /api/v1/conversations/{id}
{
"pending": false,
"messages": [
{ "role": "assistant", "content": "| Coin | Price | 24h | Signal | … |" }
]
}
# GET /api/v1/tools → open tools and their credit cost
[{ "name": "crypto_price", "credits": 0, "unit": "call", "pro": false }, …]