Ask a natural-language research question with one SocialCrawl API key. Get a written answer plus source URLs as structured JSON. Powered by Perplexity Sonar through the AI gateway at 1 credit per live call. No Perplexity developer account.
One live research endpoint. Natural-language query in, synthesised answer plus citation URLs out. Best for open questions that need current web grounding, not a fixed social-platform lookup. Pair with Tavily and search/everywhere when you also need ranked hits or social fan-out.
Natural-language research over the live web via Perplexity Sonar. Returns data.answer plus data.sources as [{ url, title? }]. Sources may be empty on short factual replies. Auto-refund on upstream failure.
query · Natural-language research prompt. Sonar autonomously searches the live web and grounds the response in real sources. No prompt-engineering required — phrase it as you would to a search engine or research assistant.
// Running this live needs your own API key — hit "Try it" to see an example response
How the Perplexity API works
Perplexity is a normal SocialCrawl surface under /v1/perplexity. You call GET with an API key, spend 1 credit on a live miss, and get the shared JSON envelope. Sonar runs through the AI gateway. No Perplexity OAuth and no second SDK.
Authenticate every call
Send your key in the x-api-key header. No Perplexity developer account, no separate Sonar key. The same SocialCrawl key works for Tavily, search/everywhere, and the social catalog.
GET with a query string
The research route is GET. Pass query as a natural-language prompt. We validate required params before charging.
Pay in credits, not seats
Live research costs 1 credit. Cache hits cost 0. Empty or hard failures refund. Bad params return 400 with no charge. Insufficient balance returns 402 with no charge.
Read one JSON envelope
Every response is the same shape: success, data, credits_used, credits_remaining, request_id, cached. data holds answer and sources[].
The usual integration chain
Most products start with a grounded answer, then deepen with web search or social fan-out when they need ranked URLs or platform-native hits.
01Research
GET /v1/perplexity/research?query=…
Analytics: answer plus sources[{ url, title? }]
Freeform questions that need live web grounding land here first.
02Web search (Tavily)
GET /v1/tavily/search?query=…
Ranked web hits and optional extract bodies
When you need a result list or full page text, not only a synthesised reply.
03Social fan-out
GET /v1/search/everywhere?query=…
search/everywhere: multi-platform social hits
When the question is what people are saying on social, not only the open web.
request
GET /v1/perplexity/research
?query=what+is+rrf+fusion+in+search
Host: www.socialcrawl.dev
x-api-key: sc_your_api_key_here
Archetype is Analytics so the envelope keeps answer and sources instead of forcing a social Post shape.
Analytics (answer)research
answer: synthesised natural-language reply grounded in live web sources
Analytics (sources)research sources
sources[]: { url, title? }; may be empty for short factual answers
Inside the gateway
Same request lifecycle as every other /v1 platform endpoint. Perplexity is not a sidecar product.
01
Edge receives the call
Next.js catch-all routes into the Hono social API. We mint a request_id, authenticate the key, then enforce rate limit and concurrency for the key.
02
Validate, then debit
Registry lookup finds perplexity/research. Required query validation runs first. Invalid input returns 400 with no charge. Valid calls debit 1 credit atomically before upstream work.
03
Cache or fetch
A deterministic cache key is built from platform, resource, and params. Hit: return immediately with credits_used = 0. Miss: invoke Perplexity Sonar through the Vercel AI gateway. Retries on 5xx and network errors where the policy allows.
04
Normalize and return
Upstream text and citations map to Analytics { answer, sources[] }, validate against the envelope schema, wrap success metadata, and log for billing audit.
Billing rules that matter in production
Live research miss: 1 credit
Cache hit: 0 credits
Empty / hard fail: auto-refund
Bad params: 400, never charged
No credits: 402, never charged
No Perplexity developer account required
Same SocialCrawl key as the rest of the catalog
Sonar via AI gateway, not ScrapeCreators
Sources array may be empty on short factual answers
How we get the data
Perplexity research is live-web grounding through Sonar. We expose the answer and citations under the shared SocialCrawl envelope so your code does not open a second vendor account.
What Perplexity is for this API
Natural-language research over the open web. Returns a written answer and the URLs used as evidence. Not a social feed, profile, or comment tree endpoint.
How SocialCrawl reaches it
Upstream is Perplexity Sonar via the Vercel AI gateway (kind ai-perplexity). Not ScrapeCreators. No customer-side Perplexity key or developer signup.
What leaves our edge
A unified JSON envelope: success, data, credits_used, request_id, cached. data is Analytics-shaped with answer and sources[{ url, title? }].
What we do not ship live
No chat history, no multi-turn sessions, no write tools. No separate Perplexity billing surface. For ranked SERP rows or page extract use Tavily or Web; for social fan-out use search/everywhere.
field map sketch
Sonar answer text→ Analytics.answerSonar synthesised reply text
citation URLs→ Analytics.sources[]citation URLs Sonar grounded on
optional titles→ sources[].titleoptional page titles when Sonar provides them
What this API is used for
The jobs this API is most often used for.
1active Perplexity endpoints in the registry
1 crcredit cost for live research
Grounded research answers with citations
Callers use research for open questions that need current web evidence: news, funding, product facts, and short research memos. Many pipelines then call Tavily or search/everywhere for ranked lists or social context. Cited Sonar answers at 1 credit with no Perplexity developer account. Same SocialCrawl key as Tavily and search/everywhere.
Live research depends on Sonar and the AI gateway. Expect longer than a simple social profile read; treat it as a research call, not a sub-second cache fill.
Use case examples
Common ways teams put this data to work, and the stack each one tends to run.
Research agents
Python, workers, notebooks
Turn freeform product or market questions into answer plus sources for memos, RAG stubs, and internal bots.
Content and SEO teams
Node, CMS jobs, editors
Pull a grounded draft answer and citation URLs before deeper SERP or social sweeps with Tavily and search/everywhere.
Backend product jobs
Go, queues, Explorer
Wire research into pipelines that already use the SocialCrawl key for social and web endpoints. Cache hits keep exact repeats cheap.
Call it in two lines
Research is 1 credit per live call. Cache hits are free. Pair with Tavily or search/everywhere when you need more than a cited answer.
Every endpoint returns structured JSON in a unified envelope. Computed fields such as engagement rate and content category are included only where the endpoint supports them and the required source inputs are present.
You can call the Perplexity API through SocialCrawl with a single x-api-key, with no separate Perplexity account and no separate bill. The same key and the same credit balance also reach 27 social platforms, so an agent can ground an answer in Perplexity research and in real social posts in one pass.
What is the SocialCrawl Perplexity API?
It is access to Perplexity Sonar web research through your SocialCrawl key. SocialCrawl proxies Perplexity Sonar via the Vercel AI Gateway, so a GET to /v1/perplexity/research returns a synthesized, cited answer to any natural-language question, billed in the same credits as your social and dev data.
Do I need a separate Perplexity API key?
No. Your single SocialCrawl x-api-key covers it. You do not register a Perplexity developer account, manage a separate Perplexity API key, or set up a second billing relationship. One key, one credit balance, and Perplexity Sonar is one of the backends it reaches.
How much does the Perplexity API cost on SocialCrawl?
The research endpoint costs 1 credit per call on the standard tier. New accounts get 100 free credits with no credit card required, enough to run around 100 research queries while you prototype before moving to a paid plan.
What comes back in the response?
A synthesized research answer to your query plus the web sources and citations Perplexity Sonar used to write it. You get the natural-language answer text and the underlying source URLs, returned in JSON so you can show citations or feed them into your own pipeline.
Can I also reach Tavily or AI social search from the same key?
Yes. The same SocialCrawl key reaches several AI-search and research backends: Perplexity Sonar for web research here, Tavily web search via /v1/tavily/search, and AI social search via /v1/twitter/ai-search and /v1/search/everywhere. One key, one credit system.
When should I use the research endpoint?
Reach for it when you need a cited, up-to-date answer synthesized from the live web rather than raw search links: research agents, RAG enrichment, fact-checking, or briefing flows. For social-specific results, pair it with SocialCrawl's AI social search instead.
What is the best way to use Perplexity through an API?
If you need fine-grained model control, Perplexity's direct API is the right tool. If you want cited web research on the key you already use for social and dev data, SocialCrawl's /v1/perplexity/research returns a Sonar answer with sources for 1 credit per call, and 100 free credits start you off without a card.
Is there a Perplexity data API?
Perplexity runs its own Sonar API, so the underlying data API is Perplexity's and available directly with a developer account. SocialCrawl is a convenience layer over it: GET /v1/perplexity/research returns a cited Sonar answer on the same x-api-key and credits as your social and dev data, at 1 credit per call, with no second account to manage.
Is scraping Perplexity data legal?
SocialCrawl returns publicly available Perplexity data and does not access private or login-gated content. Whether scraping fits your project depends on your use case and jurisdiction — you are responsible for complying with Perplexity's terms of service and applicable data-protection laws such as GDPR and CCPA. This is general information, not legal advice.
Perplexity scraping API vs the official Perplexity API — what's the difference?
With SocialCrawl there is no app review or approval queue — sign up and call Perplexity endpoints immediately with a single x-api-key. Responses share one unified schema with every other SocialCrawl platform, and credit-based pricing replaces per-platform quotas. Official APIs are still the right choice for posting and other write actions: SocialCrawl is read-only data.