AnswerLine Sign in Start free

Engines

Perplexity API

Perplexity's answer with its citations, related queries, the searches it ran, and any videos, images, places, hotels or shopping cards it showed.

Coming soon. The endpoint and fields below are the documented contract; requests are not accepted yet.

Price

4 credits per async request, 6 synchronous.

Endpoint

POST /v1/monitor/perplexity

Or queue it with POST /v1/async/task and taskType: "PERPLEXITY".

Request

curl -X POST "https://api.answerline.dev/v1/monitor/perplexity" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"Which project management tools do agencies use?","country":"GB"}'

Request options

* required. Nested fields are written with a dot, e.g. include.markdown.

FieldTypeDescription
prompt * string The prompt to send to Perplexity
country * string Country/region code for localized response
include object Optional flags for including additional response formats
include.html boolean Include a URL to the full HTML of the response
include.markdown boolean Include markdown-formatted response in the result
include.rawResponse boolean Include raw streaming response events
state string State code for sub-country geo-targeting (e.g., "CA"). Only valid with country "US".

What you get back

Field in resultTypeDescription
textstringPerplexity's response text
markdownstringPerplexity's response formatted in Markdown (included when include.markdown is true)
sourcesobject[]Array of sources referenced in the response
citationPillsobject[]Inline citation pills extracted from the Perplexity answer. Each entry is one (pill, source) pair: when a pill cites N sources (Perplexity's `[1][2][3]` bracketed groups), the array contains N entries sharing the same `citationPillId` but carrying per-source `label`, `url`, and `domain`. Group by `citationPillId` to recover the pill-level structure. Omitted from `result` when the answer carries no pills.
related_queriesstring[]Suggested follow-up search queries
search_model_queriesstring[]Internal search queries used to generate response
videosobject[]Video content found in response
imagesobject[]Image content found in response
placesobject[]General places and locations
hotelsobject[]Hotel listings (when travel intent detected)
shopping_cardsobject[]Shopping product cards with detailed product information (when shopping intent detected)

Full field definitions are in the API reference.

Other engines