APIs / Search engines / LLM Answers

1 credit per call6 endpoints8 datapointsChecked working 6 Dec 2026

LLM Answers API

LLM Answers API for AI assistant answers with sources and citations, multi-engine comparisons and trending prompts as JSON. 6 endpoints, from 1 credit.

LLM Answers
GET/v1/llm-answers/answer?prompt=What+is+the+tallest+mountain+in+Europe%3F+Give+two+sources.
{
  "success": true,
  "data": {
    "answer": {
      "text": "The tallest mountain in Europe is **Mount Elbrus**, located in the Caucasus Mountains of southwestern Russia. Its highest summit reaches **5,642 metres (18,510 feet)** above sea level. \n\n### Two Sources\n\n1. **National Geographic** — Identif…",
      "length": 607
    },
    "sources": [
      {
        "ref_id": "turn0search12",
        "title": "8/28/2023\nEurope: Physical Geography\nD O N AT E\nEd",
        "url": "https://media.nationalgeographic.org/assets/reference/assets/europe-physical-geography-1.pdf",
        "snippet": "",
        "attribution": "media.nationalgeographic.org",
        "pub_date": "2025-06-13",
        "type": "search_result",
        "cited": false
      },
      {
        "ref_id": "turn0search0",
        "title": "El'brus",
        "url": "https://education.nationalgeographic.org/resource/elbrus/",
        "snippet": "",
        "attribution": "education.nationalgeographic.org",
        "pub_date": "2023-10-19",
        "type": "search_result",
        "cited": true
      },
      {
        "ref_id": "turn0search13",
        "title": "Explore_EN",
        "url": "https://europa.eu/europago/explore/pdf/flip-book/lets-explore-europe-en/NA0114598ENC_002.pdf",
        "snippet": "",
        "attribution": "europa.eu",
        "pub_date": "2014-09-02",
        "type": "search_result",
        "cited": false
      }
    ],
    "citations": [
      {
        "type": "entity",
        "marker": "entity:Mount Elbrus",
        "matched_text": "Mount Elbrus",
        "start_idx": 36,
        "end_idx": 48,
        "alt": "Mount Elbrus"
      },
      {
        "type": "grouped_webpages",
        "marker": "cite:turn0search0,turn0search1",
        "matched_text": "",
        "start_idx": 185,
        "end_idx": 185,
        "refs": [
          "turn0search0",
          "turn0search1"
        ],
        "alt": "([education.nationalgeographic.org](https://education.nationalgeographic.org/resource/elbrus/?utm_source=chatgpt.com))",
        "urls": [
          "https://education.nationalgeographic.org/resource/elbrus/"
        ]
      },
      {
        "type": "url",
        "marker": "url:turn0search0",
        "matched_text": "National Geographic: Elbrus",
        "start_idx": 294,
        "end_idx": 321,
        "refs": [
          "turn0search0"
        ],
        "alt": "[National Geographic: Elbrus](https://education.nationalgeographic.org/resource/elbrus/?utm_source=chatgpt.com)",
        "urls": [
          "https://education.nationalgeographic.org/resource/elbrus/"
        ]
      }
    ],
    "safe_urls": [
      "https://education.nationalgeographic.org/resource/elbrus/",
      "https://education.nationalgeographic.org/resource/elbrus/?utm_source=chatgpt.com",
      "https://images.openai.com/static-rsc-1/gqIVk792CsK5G_AXGhOJZqaD6gHndcp_MJu_pHE0N6mr_8gguMErUvTLKCPdXfxa_nP_4HX12Llbr112D4zsqreJIVvTMOVFGjXHCVbQOMQiJvFInkRUrgutylCpEFz4XmMCtgYdPWOqlTc1HRu8RU2u2VheulDWYvTIrHH5E7s_TMoDf9P26mqAflmHUHt5ePXHBXMHC…"
    ],
    "search_queries": [
      "tallest mountain in Europe Mount Elbrus elevation source Britannica National Geographic"
    ],
    "reasoning_titles": [
      "Searching the web",
      "Searching tallest mountain in Europe Mount Elbrus elevation source Britannica National Geographic",
      "Searching 17 websites"
    ],
    "finish_details": {
      "type": "stop",
      "stop_tokens": [
        200002
      ]
    },
    "model": {
      "resolved": "gpt-6",
      "requested": "auto"
    },
    "follow_up": {
      "available": false,
      "reason": "Follow-up suggestion text is not available. The anonymous answer stream only says whether suggestions are eligible and never carries their text."
    }
  },
  "meta": {
    "duration_ms": 5197,
    "model_calls": 1
  }
}
200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.

Sample data

What one call returns

A recorded run of answer: the fields and shapes you will get, shortened to 3 items.

#ref_idstringtitlestringurlurlsnippetstringattributionstringpub_datestringtypestringcitedboolean
1turn0search128/28/2023 Europe: Physical Geography D O N AT E Edhttps://media.nationalgeographic.org/assets/reference/assets/europe-physical-geography-1.pdfmedia.nationalgeographic.org2025-06-13search_resultfalse
2turn0search0El'brushttps://education.nationalgeographic.org/resource/elbrus/education.nationalgeographic.org2023-10-19search_resulttrue
3turn0search13Explore_ENhttps://europa.eu/europago/explore/pdf/flip-book/lets-explore-europe-en/NA0114598ENC_002.pdfeuropa.eu2014-09-02search_resultfalse

Recorded from our API · 3 items shown · 8 datapoints per itemGET /v1/llm-answers/answer?prompt=What+is+the+tallest+mountain+in+Europe%3F+Give+two+sources.

8 datapoints

Identity

  • ref_idstring
  • titlestring
  • typestring

Contact

  • urlurl

Other

  • snippetstring
  • attributionstring
  • pub_datestring
  • citedboolean

Playground

Run this API

cURLshell
curl "https://api.perceptlayer.com/v1/llm-answers/answer?prompt=What+is+the+tallest+mountain+in+Europe%3F+Give+two+sources." \
  -H "X-API-Key: $API_KEY"

LLM Answers · 6 endpoints

Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

EndpointRequired parametersReturnsCost
GET/v1/llm-answers/answer
prompt+11 optional
answersourcescitationssafe_urlssearch_queriesreasoning_titles+3 more
1 credit
GET/v1/llm-answers/models
none+1 optional
enginedefault_modelmodelscategoriesversionsmodel_picker_version
1 credit
GET/v1/llm-answers/multi
prompt+6 optional
enginesuccesserrordata
1–6 credits
GET/v1/llm-answers/perplexity-feed
none+4 optional
itemspaginationfeed_uuid
1 credit
GET/v1/llm-answers/prompt-library
none
idtitledescriptionpromptonelinercategory
1 credit
GET/v1/llm-answers/trending
none
topicmoderation_scores
1 credit

Overview

About the LLM Answers API

What you can get

The LLM Answers API returns answers from AI assistants as JSON through 6 endpoints.

  • One engine: answer takes a prompt, with engine (chatgpt, gemini, naver or brave), model, country, language, locale, timezone, safesearch (off, moderate or strict), device (desktop or mobile), history and continuation_token.
  • Several engines: multi takes a prompt, with engines (up to 6, 2 by default), locale, timezone, hl and gl.
  • Models: models takes an engine (chatgpt, perplexity or gemini).
  • Discovery: perplexity-feed takes limit, offset, topic and topics; prompt-library and trending take no parameters.

The recorded answer call for "What is the tallest mountain in Europe? Give two sources." returns answer with text and length, a sources list with title, url, attribution, pub_date and a cited flag, citations with start_idx and end_idx positions in the answer text, search_queries, and model with requested and resolved.

How a call works

Ask one engine: GET /v1/llm-answers/answer?prompt=What%20is%20the%20tallest%20mountain%20in%20Europe%3F%20Give%20two%20sources. with your key in the X-API-Key header. To put the same prompt to several engines, call multi; it costs 1 credit per engine that answers, with engines listing up to 6 and 2 by default. Every other successful call costs 1 credit; failed calls cost nothing.

Search enginesJSONRESTMCP

More search engines APIs

Use cases

Check which sources an assistant cites for questions in your market, using the `cited` flag

Use the LLM Answers API to check which sources an assistant cites for questions in your market, using the `cited` flag

Compare how several engines answer the same prompt with `multi`

Use the LLM Answers API to compare how several engines answer the same prompt with `multi`

Track answers by `country` and `language` for brand visibility work

Use the LLM Answers API to track answers by `country` and `language` for brand visibility work

See the search queries an assistant ran for a prompt

Use the LLM Answers API to see the search queries an assistant ran for a prompt

FAQ

Questions

Do I need an LLM Answers API key?

No. You call this LLM Answers API with your Perceptlayer key in the `X-API-Key` header, so there's no separate account with each AI provider.

How much does the LLM Answers API cost?

Each successful call costs one credit, except `multi`, which costs one credit per engine that answers: up to 6, 2 by default. New accounts get free credits to start, and credit packs bring the price down as you scale.

What format are responses in?

Every endpoint returns JSON, with no HTML parsing on your side.

Which engines can I query?

`answer` takes an `engine` of chatgpt, gemini, naver or brave. `models` lists models for chatgpt, perplexity or gemini.

Is this the official LLM Answers API?

No. Perceptlayer is an independent service and is not affiliated with LLM Answers. It returns LLM Answers data as JSON with a Perceptlayer key, so there is no LLM Answers developer account, app review or partner approval to get first. It only reads data: if LLM Answers has an official API and you need to act on your own LLM Answers account, such as posting, managing orders or reading private data, use that one.

Should I build a LLM Answers scraper instead?

You can, but a LLM Answers scraper is code you maintain: page changes break it, requests get blocked, and LLM Answers's terms govern how you collect data. The LLM Answers API gives you 6 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

Try the LLM Answers API with 100 free credits

No credit card. Failed calls are never billed.