REST API Quickstart
Call Cite42 directly over HTTP. One base URL, a Bearer key, JSON in and out. Query ChatGPT, Claude, Perplexity, and Gemini and get structured data back.
Base URL
All requests go to:
https://api.cite42.dev/v1
Authenticate with a Bearer token on every request (see Authentication). The same cite42_live_ key works for both REST and MCP.
Make your first call
One call across all four models — pick your language:
- Get your API key
Create a key on the API keys page — it's shown once, so copy it now. You'll send it as a
Bearertoken on every request. - Make the call
One POST queries all four models and returns each answer with its sources.
# One POST queries all four models — answer + sources each. $ curl https://api.cite42.dev/v1/search \ -H "Authorization: Bearer $CITE42_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "query": "best CRM for SaaS" }' # Response — one entry per model, plus a billing block: { "results": [ { "model": "chatgpt", "ok": true, "answer": "...", "citations": [{ "url": "reddit.com/r/SaaS/..." }] } /* ...claude, perplexity, gemini... */ ], "billing": { "cost": { "usd": "0.40" }, "balance": { "usd": "24.60" } } }
Every billed response includes a billing block with the exact cost and remaining balance. See Search for the full response shape.
Endpoints
Five AI-model endpoints (billed per model queried): search, rankings, compare, citations, sentiment. Plus two flat-priced data endpoints (keywords, trends) and a free usage. Pick one from the sidebar for its params and example response.