> ## Documentation Index
> Fetch the complete documentation index at: https://docs.querying.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Perguntar ao Naver AI Tab

> Faça uma pergunta ao Naver AI Tab e receba a resposta com suas fontes, lugares e produtos.



## OpenAPI

````yaml POST /v1/answers/naver-ai-tab
openapi: 3.1.0
info:
  title: querying.ai
  description: >-
    One API for every AI answer engine. Every task is asynchronous: submit, then
    collect the result via webhook or polling.
  version: 1.0.0
servers:
  - url: https://api.querying.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/answers/naver-ai-tab:
    post:
      tags:
        - Answers
      summary: Ask Naver AI Tab
      description: >-
        Ask Naver AI Tab a question and get its answer with its sources, places
        and products. `POST /v1/async/task` takes the same task as
        `NAVER_AI_TAB` with these fields in `payload`. The request waits for the
        task as `POST /v1/sync/task` does: up to 290 seconds or what `Prefer:
        wait` asks, then `202` with the task and `Location` while it still runs.
        With every concurrency slot taken by running and queued tasks, it
        answers `429 PLAN_CONCURRENCY_LIMIT` at once and makes no task; `Prefer:
        wait=0` queues the task instead.
      operationId: answersNaverAiTab
      parameters:
        - $ref: '#/components/parameters/PreferWait'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties:
                query:
                  type: string
                  description: >-
                    The search term, for GOOGLE, AIMODE, GOOGLE_SERP,
                    GOOGLE_PLACES, GOOGLE_NEWS, BING_SEARCH, COMMERCE_SERP and
                    NAVER_* engines. BING_SEARCH reads `prompt` first and falls
                    back to `query`, and rejects text over 4,000 characters with
                    422 VALIDATION_ERROR.
                country:
                  type: string
                  description: >-
                    ISO 3166-1 alpha-2 country code, case-insensitive. Omitted,
                    empty or null means `US` (`KR` for NAVER_* engines). A value
                    that is not an officially assigned code, such as `UK` (use
                    `GB`), is rejected with 400 VALIDATION_ERROR, and a country
                    this engine cannot serve is rejected at submit time with
                    422.
                  example: US
                include:
                  $ref: '#/components/schemas/Include'
                retryQuery:
                  type: string
                  minLength: 1
                  maxLength: 100000
                  description: >-
                    NAVER_AI_TAB only. Optional alternative question to ask
                    after Naver reports a generation error with no usable
                    answer. The original question is asked first. An original
                    answer preserved with response.upstreamError is returned
                    immediately without retrying or rephrasing, even when
                    retryQuery is provided. All attempts share the existing
                    retry and time limits. If this question is used,
                    response.recovery contains {reason:
                    upstream_generation_error, query: <the alternative
                    question>}; the answer belongs to that question. Without
                    this field, retries keep the original question. Other
                    failures and policy refusals do not activate the
                    alternative. Other engines or a blank value are rejected
                    with 400 VALIDATION_ERROR.
                brand:
                  type: string
                  maxLength: 200
                  description: >-
                    With `include.analysis`: your brand's name, reported in
                    `analysis.targets` with role `brand`.
                brandAliases:
                  type: array
                  maxItems: 20
                  items:
                    type: string
                    maxLength: 200
                  description: >-
                    With `include.analysis` and `brand`: other names the answer
                    may use for your brand.
                brandDomains:
                  type: array
                  maxItems: 20
                  items:
                    type: string
                  description: >-
                    With `include.analysis` and `brand`: your sites, such as
                    `example.com`. A citation on one of them or a subdomain has
                    `kind` `owned`.
                  example:
                    - example.com
                competitors:
                  type: array
                  maxItems: 50
                  items:
                    oneOf:
                      - type: string
                        maxLength: 200
                      - type: object
                        additionalProperties: false
                        required:
                          - name
                        properties:
                          name:
                            type: string
                            maxLength: 200
                          aliases:
                            type: array
                            maxItems: 20
                            items:
                              type: string
                              maxLength: 200
                          domains:
                            type: array
                            maxItems: 20
                            items:
                              type: string
                  description: >-
                    With `include.analysis`: competitors reported in
                    `analysis.targets` with role `competitor`. A citation on one
                    of their domains has `kind` `competitor`.
                idempotencyKey:
                  $ref: '#/components/schemas/TaskIdempotencyKey'
                priority:
                  $ref: '#/components/schemas/TaskPriority'
                webhook:
                  $ref: '#/components/schemas/TaskWebhook'
              required:
                - query
            examples:
              request:
                summary: Ask Naver AI Tab
                value:
                  query: 평발 러닝화 추천
                  country: KR
      responses:
        '200':
          description: >-
            The task ended: the body `GET /v1/async/task/{id}` returns, with the
            result in `response` or the reason in `error`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskResponse'
        '202':
          $ref: '#/components/responses/ProductTaskRunning'
        '400':
          $ref: '#/components/responses/ProductBadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/InsufficientCredits'
        '403':
          $ref: '#/components/responses/ProductForbidden'
        '409':
          $ref: '#/components/responses/IdempotencyKeyExpired'
        '413':
          $ref: '#/components/responses/PayloadTooLarge'
        '422':
          $ref: '#/components/responses/ProductInvalid'
        '429':
          $ref: '#/components/responses/SyncTaskLimitExceeded'
        '503':
          $ref: '#/components/responses/TaskUnavailable'
components:
  parameters:
    PreferWait:
      name: Prefer
      in: header
      required: false
      description: >-
        `wait=<seconds>` holds the request at most that long, up to 290.
        `wait=0` answers with the task id at once and queues the task when every
        concurrency slot is taken.
      schema:
        type: string
        example: wait=120
  schemas:
    Include:
      type: object
      description: >-
        Optional output flags. `markdown`, `rawResponse`, `searchQueries`, `ads`
        and `shopping` are ignored by engines that do not support them.
        `citationLinks` is PERPLEXITY only and requires `markdown: true`.
        `analysis` on an unsupported engine is rejected with 422
        VALIDATION_ERROR, `html` with 422 EVIDENCE_UNSUPPORTED, and `screenshot:
        true` with 400 VALIDATION_ERROR on every engine. See the engine guide
        for the support table.
      properties:
        markdown:
          type: boolean
          description: >-
            Adds `markdown` on CHATGPT (on by default), PERPLEXITY, GEMINI,
            GOOGLE (the AI Overview), BING_SEARCH (the summary) and COPILOT.
            AIMODE, BING_AIMODE, META_AI, QWEN, DOUBAO, BAIDU_WENXIN,
            BAIDU_AI_SEARCH, NAVER_AI_BRIEF and NAVER_AI_TAB return `markdown`
            without the flag.
        citationLinks:
          type: boolean
          description: >-
            PERPLEXITY only, with `markdown: true`. Turns bare `[N]` citation
            markers in `markdown` into `[N](url)` links to the matching
            `sources[].url`. `text`, existing links, code, escaped markers and
            markers without a matching source stay unchanged. Off by default;
            other requests are rejected with 422 VALIDATION_ERROR.
        html:
          type: boolean
          description: >-
            Returns `html`: `{"status": "ok", "url", "expiresAt"}`, the screen
            the engine showed for the answer, which opens without an API key
            until `expiresAt` (30 days). On GOOGLE and AIMODE it is the results
            page Google served, scripts removed; on GOOGLE_SERP it is the
            document Google sent for the results page, before its scripts ran,
            with its scripts kept and session identifiers removed, or with
            `render: true` the page as Chrome shows it once its scripts ran, AI
            Overview opened; with `pages` (up to 10), every page's document and
            panels come in `pageResults` (not with `location`,
            `include.rawResponse` or `include.aiOverview`: 422
            VALIDATION_ERROR); on GOOGLE_PLACES it is the document Google sent
            for the Places page, before its scripts ran, with its scripts kept
            and session identifiers removed, and with several pages (up to 5)
            every page's document comes in `pageResults` (an entry with "page"
            and "html" per page; `Accept: text/html` on POST /v1/sync/task needs
            `limit` 20 or less); on BING_AIMODE it is the Bing AI Mode screen
            made from the pages Bing served, the question and the answer with
            its sponsored products, scripts removed and images included; on
            SOCIAL with `platform` `youtube` it is the youtube.com page as
            Chrome showed it once its scripts ran, scripts removed and session
            identifiers masked, so its images and video are not embedded, for
            `action` `search` (`order` `relevance` or `viewCount`, without
            `publishedAfter`), `video`, `channel`, `channel_videos` (`sort`
            `latest`), `channel_posts`, `playlist` or `hashtag`, without
            `pageToken`, and any other SOCIAL request is rejected with 422
            EVIDENCE_UNSUPPORTED; on COMMERCE_SERP and COMMERCE_PRODUCT it is
            the page the store sent, before any script ran, with its scripts
            kept and the address of the visit, cookie values and session
            identifiers masked, for the stores named in CommercePageInclude, and
            any other store is rejected with 422 EVIDENCE_UNSUPPORTED; on
            CHATGPT, GEMINI, PERPLEXITY, META_AI and COPILOT it is the engine's
            screen as it showed when the answer finished, scripts removed and
            images included. PERPLEXITY, META_AI and COPILOT return it only on
            an account with the HTML page grant; without the grant the task
            answers without the page, the result has no `html` key and the page
            is not charged. A screen that could not be collected, did not match
            the answer, or could not be stored comes back as `{"status":
            "failed", "error": "EVIDENCE_FAILED"}` and the task still completes.
            Other engines reject it with 422 EVIDENCE_UNSUPPORTED, and so does
            CHATGPT with `state`, country `CN` or `HK`, `continueFrom`,
            `webSearch: false` or `images`: the page comes only with a new
            conversation asked with web search on, without a device location or
            photos. On CHATGPT, PERPLEXITY, META_AI and COPILOT it costs 0.25
            credits per task on top of the engine's price, charged only when
            `html.status` is `ok`; on GEMINI, GOOGLE, AIMODE, GOOGLE_SERP,
            GOOGLE_PLACES, BING_AIMODE, SOCIAL, COMMERCE_SERP and
            COMMERCE_PRODUCT it costs nothing more. Off by default.
        rawResponse:
          type: boolean
          description: >-
            Returns the engine's raw payload. Arrives as `rawResponse` on
            CHATGPT, GEMINI, PERPLEXITY, COPILOT, BING_AIMODE, META_AI, QWEN,
            DOUBAO, BAIDU_WENXIN and BAIDU_AI_SEARCH, and as `rawContent` on
            GOOGLE, AIMODE, GOOGLE_SERP, BING_SEARCH, NAVER_AI_BRIEF and
            NAVER_AI_TAB. GOOGLE_PLACES and NAVER_SERP return no raw payload.
            Off by default.
        aiOverview:
          type: boolean
          description: >-
            GOOGLE_SERP only. Adds the AI Overview Google shows for the search
            as `aiOverview`: `{"text", "markdown", "sources"}`, or `null` when
            Google shows none. First page, `desktop`, without `state`,
            `location` or `uule`; other requests are rejected with 422
            VALIDATION_ERROR. Costs 1 credit on top of the search's price. Off
            by default.
        searchQueries:
          type: boolean
          description: >-
            Gates `searchQueries` on CHATGPT (on by default) and PERPLEXITY. On
            CHATGPT it also gates `mapSearchQueries`. Other engines that emit it
            do so unconditionally.
        ads:
          type: boolean
          description: Only honored by CHATGPT.
        shopping:
          type: boolean
          description: Only honored by CHATGPT.
        citationAnalysis:
          type: boolean
          description: >-
            Answer engines (CHATGPT, GEMINI, PERPLEXITY, GOOGLE_AIO,
            GOOGLE_AIMODE, NAVER_AI_BRIEF, NAVER_AI_TAB, BING_SEARCH, COPILOT):
            run a Citation Analysis analysis on the answer as soon as it is
            collected. The result then carries `response.citationAnalysis`, the
            analysis task as GET /v1/async/task/{id} returns it (`task`,
            `credits`, `response` or `error`), or `{error}` when no analysis
            could start (no cited URL, or credits or the key's daily limit
            cannot cover its hold). The webhook is sent once, after the analysis
            settles; a polled answer task is COMPLETED first, so poll until
            `response.citationAnalysis.task.status` is terminal. The analysis is
            charged separately by usage; a key limited to certain task types
            must also allow CITATION_ANALYSIS. Any other engine is rejected with
            400.
        geoAudit:
          type: boolean
          deprecated: true
          description: >-
            Accepted alias of `citationAnalysis`; results still carry
            `response.citationAnalysis`.
        sourceInfluence:
          type: boolean
          deprecated: true
          description: >-
            Accepted alias of `citationAnalysis`; results still carry
            `response.citationAnalysis`.
        analysis:
          type: boolean
          description: >-
            CHATGPT, GEMINI, PERPLEXITY, GOOGLE, AIMODE, NAVER_AI_BRIEF and
            NAVER_AI_TAB. Adds `analysis` (AnswerAnalysis) to the response:
            every brand the answer names in order, with recommendation and
            sentiment, the presence of `brand` and `competitors`, and the kind
            of each cited site. 1 credit per task on top of the engine price,
            charged only when `analysis.status` is `ok`. Rejected with 422 on
            other engines.
        entityDetails:
          type: boolean
          description: >-
            CHATGPT only. Adds `entityDetails`: for each card in the answer (up
            to 20), the detail panel ChatGPT opens when a reader clicks it, with
            `name`, `category`, `query`, `status` (`ok` or `failed` with
            `error`), `markdown`, `sources` (`position`, `url`, `label`, `site`,
            `description`), `products` (the shopping card a product's panel
            opens on, shaped like `shoppingCards[].products`), `images` and
            `complete` (`false` when ChatGPT stopped writing the panel early).
            `error` is `ENTITY_DETAIL_FAILED`, `ENTITY_DETAIL_EMPTY`, or
            `ENTITY_DETAIL_UNAVAILABLE` when the conversation or turn
            credentials needed to open panels are missing. Supports CN, HK,
            fallback answers and `html`. No extra credits; each follow-up answer
            gets its own panels. Rejected with 422 on other engines. Off by
            default.
        serp:
          type: boolean
          description: >-
            NAVER_AI_BRIEF only. Adds the Naver results page beneath the
            briefing: `organicResults` (web documents), `shoppingResults` (price
            comparison products, ads excluded) and `contentResults` (blog, cafe,
            Knowledge iN, influencer, news and video results, ads excluded). Off
            by default, when the task returns the briefing only. No extra
            credits. Rejected with 422 on other engines.
        inlineImages:
          type: boolean
          default: true
          description: >-
            Answer engines. Set to false for `text` and `markdown` without the
            pictures the engine showed (`![caption](url)`), in the answer, each
            follow-up answer and `aioverview`. The pictures stay in `images`; a
            video thumbnail link (`[![title](thumbnail)](url)`) stays as
            `[title](url)`. An answer made only of pictures keeps them. A value
            that is not a boolean is rejected with 422.
        aioverview:
          type: object
          description: >-
            Legacy GOOGLE flag. `aioverview.markdown: true` works like
            `include.markdown` on GOOGLE.
          properties:
            markdown:
              type: boolean
        screenshot:
          type: boolean
          description: >-
            No longer available. `true` is rejected with 400 VALIDATION_ERROR;
            use `html` for a page of the answer.
      additionalProperties: false
    TaskIdempotencyKey:
      type: string
      description: >-
        Optional. A repeat of the key within at least 30 days answers with the
        task that holds it, so a caller that hung up can ask again.
    TaskPriority:
      type: integer
      description: >-
        Compatibility field; does not guarantee execution order. Values outside
        1–10 are clamped, not rejected.
      minimum: 1
      maximum: 10
      default: 1
    TaskWebhook:
      type: object
      description: Optional. Omit to collect the result by polling instead.
      required:
        - url
      properties:
        url:
          type: string
          format: uri
          description: Receives a POST when the task reaches a terminal state.
    TaskResponse:
      type: object
      required:
        - success
        - task
        - credits
      allOf:
        - if:
            properties:
              task:
                properties:
                  taskType:
                    const: COMMERCE_SERP
                required:
                  - taskType
            required:
              - task
          then:
            properties:
              response:
                $ref: '#/components/schemas/CommerceSerpResult'
        - if:
            properties:
              task:
                properties:
                  taskType:
                    const: COMMERCE_PRODUCT
                required:
                  - taskType
            required:
              - task
          then:
            properties:
              response:
                $ref: '#/components/schemas/CommerceProductResult'
        - if:
            properties:
              task:
                properties:
                  taskType:
                    const: SOCIAL
                required:
                  - taskType
            required:
              - task
          then:
            properties:
              response:
                $ref: '#/components/schemas/SocialResult'
        - if:
            properties:
              task:
                properties:
                  taskType:
                    const: ADS
                required:
                  - taskType
            required:
              - task
          then:
            properties:
              response:
                $ref: '#/components/schemas/AdsResult'
        - if:
            properties:
              task:
                properties:
                  taskType:
                    const: GOOGLE_PLACES
                required:
                  - taskType
            required:
              - task
          then:
            properties:
              response:
                $ref: '#/components/schemas/GooglePlacesResult'
        - if:
            properties:
              task:
                properties:
                  taskType:
                    const: GOOGLE_NEWS
                required:
                  - taskType
            required:
              - task
          then:
            properties:
              response:
                $ref: '#/components/schemas/GoogleNewsResult'
        - if:
            properties:
              task:
                properties:
                  taskType:
                    const: SEARCH
                required:
                  - taskType
            required:
              - task
          then:
            properties:
              response:
                $ref: '#/components/schemas/SearchResult'
      properties:
        success:
          type: boolean
          const: true
        task:
          $ref: '#/components/schemas/TaskMeta'
        credits:
          $ref: '#/components/schemas/Credits'
        response:
          type: object
          description: >-
            The engine-specific result. Absent until the task is terminal. See
            the Engines guide for per-engine shapes. NAVER_AI_TAB preserves the
            original text, markdown, sources and cards when Naver returns HTTP
            success, a valid stream ending in done, and nonempty answer text
            with unknown_error. It includes upstreamError and returns
            immediately without retrying or rephrasing, even with retryQuery.
            COMPLETED means collection finished; the answer may still be
            incomplete. Empty, cut-off or malformed streams still fail. Policy
            refusals complete with a policy_declined notice. rawContent is
            returned only with include.rawResponse. With
            `include.citationAnalysis`, answer results also carry
            `citationAnalysis` (see Include). CITATION_ANALYSIS returns
            CitationAnalysisResult; see the Citation Analysis guide.
            PROMPT_RESEARCH returns PromptResearchResult; see the Prompt
            Research guide. GEO_SCORE returns GeoScoreResult; see the GEO Score
            guide. Answer engines with `include.analysis` add `analysis`
            (AnswerAnalysis).
          properties:
            upstreamError:
              $ref: '#/components/schemas/NaverAiTabUpstreamError'
          additionalProperties: true
        error:
          type: string
          description: >-
            Present when `task.status` is `FAILED`. A plain string, not the
            `{code, message, timestamp}` object used by request-level errors.
    TaskMeta:
      type: object
      required:
        - id
        - taskType
        - status
        - priority
        - createdAt
        - latencyMs
      properties:
        id:
          type: string
          format: uuid
        taskType:
          $ref: '#/components/schemas/TaskResultType'
        status:
          $ref: '#/components/schemas/TaskStatus'
        priority:
          type: integer
        createdAt:
          type: string
          format: date-time
        latencyMs:
          type:
            - integer
            - 'null'
          description: >-
            Milliseconds from the worker's first pickup to the final outcome,
            excluding the queue wait. `null` until the task settles. Returned by
            polling, the webhook and the submit response alike.
        idempotencyKey:
          type: string
          description: >-
            Echoed back verbatim. **Omitted**, not null, when the caller
            supplied none.
    Credits:
      type: object
      description: >-
        Credits, with up to two decimals (for example `1.25`). The submit
        response always shows `0`: nothing is charged yet, and the task's price
        is held from your balance when it starts. Polling shows `0` until the
        task is terminal, then the settled charge: the task's price for
        COMPLETED, `0` for FAILED. A task webhook reports the same charge in
        `creditsCharged`; on a FAILED task it reports the task's price in
        `creditsToCharge` and `0` in `creditsCharged`. CITATION_ANALYSIS,
        GOOGLE_PLACES and GOOGLE_NEWS are charged by usage, up to the hold
        placed when the task starts.
      properties:
        creditsToCharge:
          type: number
        creditsCharged:
          type:
            - number
            - 'null'
    NaverAiTabUpstreamError:
      type: object
      description: >-
        Optional NAVER_AI_TAB generation error accompanying preserved answer
        text. Collection finished, but the answer may be incomplete.
      required:
        - type
      additionalProperties: false
      properties:
        type:
          type: string
          const: unknown_error
        message:
          type: string
          description: >-
            Naver's exact notice text, without translation or rewording. Omitted
            when Naver provides no notice text.
    AsyncResponse:
      type: object
      required:
        - success
        - task
        - credits
      properties:
        success:
          type: boolean
          const: true
        task:
          $ref: '#/components/schemas/TaskMeta'
        credits:
          $ref: '#/components/schemas/Credits'
    ErrorResponse:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          const: false
        error:
          $ref: '#/components/schemas/ErrorDetail'
    TaskResultType:
      description: >-
        Task types returned by task polling, submissions, batch results and
        webhooks, including tasks created by dedicated endpoints. This is not a
        submission engine list.
      anyOf:
        - $ref: '#/components/schemas/TaskType'
        - type: string
          enum:
            - AI_RENDERING
    TaskStatus:
      type: string
      description: >-
        `PROCESSING` means a worker holds the task. `COMPLETED` and `FAILED` are
        terminal. For NAVER_AI_TAB with response.upstreamError, `COMPLETED`
        means collection finished; the answer may still be incomplete.
      enum:
        - QUEUED
        - PROCESSING
        - COMPLETED
        - FAILED
    ErrorDetail:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          description: Stable, safe to branch on. See the Errors guide for the full list.
        message:
          type: string
          description: For humans. May change.
        details:
          description: >-
            Context for the error. An array of `{field, message}` on most
            `VALIDATION_ERROR`s; an object elsewhere (for example `{id}` on
            `RESOURCE_NOT_FOUND`, `retryAfterSec` on 429 and 503 codes). Omitted
            when there is nothing to add.
          oneOf:
            - type: array
              items:
                type: object
                properties:
                  field:
                    type: string
                  message:
                    type: string
            - type: object
              additionalProperties: true
        timestamp:
          type: string
          format: date-time
    TaskType:
      type: string
      description: >-
        The engine to query. `NAVER` is a deprecated alias for `NAVER_AI_BRIEF`.
        GOOGLE_AIO and GOOGLE_AIMODE are the names of Google AI Overviews and
        Google AI Mode; the earlier names GOOGLE and AIMODE are accepted too,
        and a task answers under the name it was sent with. `NAVER_AI_MODE` is
        accepted as an earlier spelling of `NAVER_AI_TAB`. `BING_AIMODE` returns
        Bing AI Mode's answer (bing.com/copilotsearch) for `payload.query` in
        AE, AU, BR, CA, DE, EE, ES, FR, GB, HK, HU, IE, IN, IT, JP, MX, NL, PL,
        PT, RO, RS, SE, SG, SK, TR, US and ZA, and refuses other countries with
        422 REGION_UNSUPPORTED; `BING_COPILOT_SEARCH` and `COPILOT_SEARCH` are
        accepted as its other names. `BING_COPILOT` and `MICROSOFT_COPILOT` are
        accepted as other names of `COPILOT` (Microsoft Copilot). `GOOGLE_SERP`
        returns the Google results page without the AI Overview; `payload.page`
        selects pages 1-10. `BRAVE_SEARCH` returns Brave's own results page:
        organic results, ads, FAQ, knowledge panel, news, videos, discussions,
        places and related queries, with `payload.country` from Brave's markets
        and `payload.page` from 1 to 10; there is no HTML payload, so `include`
        adds nothing. `GOOGLE_PLACES` returns the places Google's Places tab
        lists for `payload.query`, up to 100 over up to five pages of 20, every
        page searched from `payload.city` or `payload.uule`; `payload.limit`
        (1-100, default 20) sets how many, and the task is charged 1 credit per
        page read (GooglePlacesResult). `NAVER_SERP` returns Naver's web
        results, 15 per page (`payload.page` 1-10), and with `payload.action`
        `page` reads one naver.com page by `payload.url`. `META_AI` returns the
        meta.ai chat answer with its cited sources, search queries and the
        products, places, photos and accounts it shows (`shoppingCards`,
        `inlineProducts`, `map`, `images`, `socialCards`); a prompt Meta refuses
        completes with an empty text and a `notice` quoting Meta. `QWEN` returns
        the answer of Qwen's China web chat (qianwen.com) with its web search,
        sources and search queries; `payload.country` sets the exit and the
        answer locale. `DOUBAO` returns the answer of Doubao's China web chat
        (doubao.com) with its web search, sources and search queries; it always
        asks from mainland China, whatever `payload.country` is. `BAIDU_WENXIN`
        returns the answer of Baidu's Wenxin web chat (文心, wenxin.baidu.com)
        with the pages it read as sources and its search queries; it always asks
        from mainland China, whatever `payload.country` is. `BAIDU_AI_SEARCH`
        returns the AI answer card at the top of Baidu's results page for
        `payload.query`, with the pages it cites, and the rest of that page:
        organic results, ads, related searches, news, videos, notes, products,
        images, places and Baidu's other cards; it always searches from mainland
        China, and a query Baidu shows no AI answer for completes with `card:
        null` and the rest of the page. `BING` is accepted as an earlier
        spelling of `BING_SEARCH`, and `BING_COPILOT` and `MICROSOFT_COPILOT` as
        earlier spellings of `COPILOT`; responses echo the new names. `SOCIAL`
        reads public YouTube, Instagram, Threads, TikTok, X and LinkedIn data:
        `payload.platform` picks the site and `payload.action` what to read
        (SocialPayload, SocialResult); other `payload.platform` values are
        rejected with 403 ENGINE_PRIVATE or 400 VALIDATION_ERROR. `ADS` reads
        the public ad libraries of Meta, Google, LinkedIn and TikTok
        (AdsPayload, AdsResult): `payload.platform` is `meta_ad_library`,
        `google_ads_transparency`, `linkedin_ad_library`, `tiktok_ad_library` or
        `tiktok_creative_center`, and `payload.action` picks `search` (the
        default: the ads that match the platform's search inputs, each with its
        days run where the library gives dates and a `summary` of the response,
        charged 0.5 credits for every 30 ads returned, with a `nextCursor` to
        read the ads after them; on Google, LinkedIn and TikTok,
        `payload.details: true` reads every returned ad in detail, 0.5 credits
        more for every 5 ads), `advertisers` (the advertisers whose names match
        `payload.query`, on Meta, Google and the TikTok Ad Library), `ad` (one
        ad by `payload.libraryId` with its advertiser and the transparency the
        library publishes) or `advertiser` (one Meta advertiser by
        `payload.pageId`), 0.5 credits each. Private engines (for example
        CLAUDE) are rejected with 403 ENGINE_PRIVATE. CITATION_ANALYSIS,
        PROMPT_RESEARCH and GEO_SCORE tasks are created through their own
        endpoints (POST /v1/citation-analysis, POST /v1/prompt-research, POST
        /v1/geo-score) and are rejected here with 400 USE_DEDICATED_ENDPOINT;
        they appear in this list because their tasks report them. SEARCH is the
        name a search made through POST /v1/search answers under, and WEB_SEARCH
        the id capabilities, key scopes and usage list it by; both are rejected
        here with 400 USE_DEDICATED_ENDPOINT. GEO_AUDIT, SOURCE_INFLUENCE and
        CITATION_ATTRIBUTION are accepted as earlier names of CITATION_ANALYSIS;
        responses echo CITATION_ANALYSIS.
      enum:
        - CHATGPT
        - PERPLEXITY
        - GEMINI
        - AIMODE
        - GOOGLE_AIMODE
        - GOOGLE
        - GOOGLE_AIO
        - GOOGLE_SERP
        - GOOGLE_PLACES
        - GOOGLE_NEWS
        - NAVER_AI_BRIEF
        - NAVER_AI_TAB
        - NAVER_AI_MODE
        - NAVER
        - NAVER_SERP
        - COMMERCE_SERP
        - COMMERCE_PRODUCT
        - SOCIAL
        - ADS
        - BING_SEARCH
        - BRAVE_SEARCH
        - BING
        - COPILOT
        - BING_COPILOT
        - MICROSOFT_COPILOT
        - BING_AIMODE
        - BING_COPILOT_SEARCH
        - COPILOT_SEARCH
        - META_AI
        - QWEN
        - DOUBAO
        - BAIDU_WENXIN
        - BAIDU_AI_SEARCH
        - CITATION_ANALYSIS
        - GEO_AUDIT
        - SOURCE_INFLUENCE
        - CITATION_ATTRIBUTION
        - PROMPT_RESEARCH
        - GEO_SCORE
        - SEARCH
        - WEB_SEARCH
        - WEB_SCRAPE
        - REDDIT
  responses:
    ProductTaskRunning:
      description: >-
        The task had not ended when the wait was over. It keeps running; poll
        `Location` or wait for the webhook.
      headers:
        Location:
          description: 'Where to poll the task: `/v1/async/task/{id}`.'
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/AsyncResponse'
          example:
            success: true
            task:
              id: 8f2c1e40-0000-0000-0000-000000000000
              taskType: CHATGPT
              status: QUEUED
              priority: 1
              createdAt: '2026-11-23T04:12:00.000Z'
              latencyMs: null
            credits:
              creditsToCharge: 0
              creditsCharged: 0
    ProductBadRequest:
      description: >-
        `VALIDATION_ERROR`: the body is not a JSON object, has a field this path
        does not take, misses a field or sends one in the wrong form, such as no
        `prompt`, a `country` that is not a country code or a `limit` above the
        action's, or has an invalid `webhook.url`. `details` names the field as
        the body sent it, without a `payload.` prefix, and an unknown field's
        message lists the fields the path takes. `CONVERSATION_EXPIRED`: the
        ChatGPT conversation `continueFrom` names can no longer be continued.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            unknownField:
              summary: A field the path does not take
              value:
                success: false
                error:
                  code: VALIDATION_ERROR
                  message: Request validation failed
                  details:
                    - field: query
                      message: >-
                        unknown field; POST /v1/answers/perplexity takes prompt,
                        country, include, brand, brandAliases, brandDomains,
                        competitors, idempotencyKey, priority, webhook
                  timestamp: '2026-11-23T04:12:00.000Z'
            missingField:
              summary: A field the action needs
              value:
                success: false
                error:
                  code: VALIDATION_ERROR
                  message: Request validation failed
                  details:
                    - field: channel
                      message: >-
                        action channel_videos needs a channel: a channel ID
                        (UC...), an @handle or a channel URL
                  timestamp: '2026-11-23T04:12:00.000Z'
    Unauthorized:
      description: Missing or invalid bearer token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            success: false
            error:
              code: MISSING_API_KEY
              message: Missing or invalid API key
              timestamp: '2026-07-09T04:12:00.000Z'
    InsufficientCredits:
      description: '`INSUFFICIENT_CREDITS`: the balance is below the price of the task.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            success: false
            error:
              code: INSUFFICIENT_CREDITS
              message: insufficient credits (need 2)
              timestamp: '2026-07-09T04:12:00.000Z'
    ProductForbidden:
      description: >-
        `KEY_SCOPE_DENIED`: the key's Allowed engines leave out the engine this
        path asks. `PLAN_UPGRADE_REQUIRED`: PERPLEXITY and COPILOT need the Pro
        plan or higher, and the account's plan does not open them.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            keyScope:
              summary: Engine outside the key's scope
              value:
                success: false
                error:
                  code: KEY_SCOPE_DENIED
                  message: This API key is not allowed to submit taskType 'CHATGPT'
                  timestamp: '2026-11-23T04:12:00.000Z'
            planUpgrade:
              summary: Engine above the account's plan
              value:
                success: false
                error:
                  code: PLAN_UPGRADE_REQUIRED
                  message: taskType 'PERPLEXITY' requires the Pro plan or higher
                  details:
                    taskType: PERPLEXITY
                    requiredPlan: pro
                    retryable: false
                  timestamp: '2026-11-23T04:12:00.000Z'
    IdempotencyKeyExpired:
      description: >-
        A task with this `idempotencyKey` exists but is past its retention
        window, so its result can no longer be read. A key whose task can still
        be read is answered with that task instead.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            success: false
            error:
              code: RESOURCE_ALREADY_EXISTS
              message: Task already exists.
              details:
                taskId: 8f2c1e40-0000-0000-0000-000000000000
              timestamp: '2026-07-09T04:12:00.000Z'
    PayloadTooLarge:
      description: '`PAYLOAD_TOO_LARGE`: the body exceeds 1 MiB. Rejected before parsing.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            success: false
            error:
              code: PAYLOAD_TOO_LARGE
              message: request body exceeds 1 MiB
              timestamp: '2026-07-09T04:12:00.000Z'
    ProductInvalid:
      description: >-
        The request is well formed, but it cannot be served as asked.
        `VALIDATION_ERROR`: a value the engine's own rules refuse, such as a
        `page` past the engine's last or a Brave `freshness` outside its forms.
        `REGION_UNSUPPORTED`: the engine never serves `country`.
        `LOCATION_UNSUPPORTED`: the engine does not take `state`, `location` or
        `uule` as sent. `EVIDENCE_UNSUPPORTED`: the engine cannot return
        `include.html` for this request. A field in `details` is named as the
        body sent it.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            success: false
            error:
              code: VALIDATION_ERROR
              message: Request validation failed
              details:
                - field: freshness
                  message: freshness must be pd, pw, pm, py or YYYY-MM-DDtoYYYY-MM-DD
              timestamp: '2026-11-23T04:12:00.000Z'
    SyncTaskLimitExceeded:
      description: >-
        Retry after the `Retry-After` header (seconds).
        `PLAN_CONCURRENCY_LIMIT`: running and queued tasks fill every slot of
        the plan, contract or sub-account concurrency limit, so the request made
        no task; `Prefer: wait=0` queues the task instead.
        `QUEUE_LIMIT_EXCEEDED`: the account already has 1,000,000 queued tasks.
        `KEY_DAILY_CREDIT_LIMIT`: the key used up its daily credit limit.
        `SUB_ACCOUNT_CREDIT_LIMIT`: the sub-account would exceed its
        `monthlyCreditLimit`.
      headers:
        Retry-After:
          description: Seconds to wait before sending the request again.
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            success: false
            error:
              code: PLAN_CONCURRENCY_LIMIT
              message: pro plan allows 200 concurrent tasks; 200 already active
              details:
                plan: pro
                limit: 200
                source: plan
                active: 200
                monitorActive: 0
                retryAfterSec: 5
              timestamp: '2026-11-23T04:12:00.000Z'
    TaskUnavailable:
      description: >-
        Retry after the `Retry-After` header (seconds). `QUEUE_BACKPRESSURE`:
        this engine's queue is full. `SERVER_OVERLOADED`: admission is
        saturated, or the task queue as a whole is full. `DB_UNAVAILABLE`: task
        storage did not answer. `ENGINE_UNAVAILABLE`: this engine is temporarily
        not accepting tasks; `details.resumeAt`, when present, is when it
        expects to take tasks again.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            success: false
            error:
              code: DB_UNAVAILABLE
              message: Task storage unavailable. Retry shortly.
              details:
                retryAfterSec: 2
                retryable: true
              timestamp: '2026-07-09T04:12:00.000Z'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Your API key, sent as `Authorization: Bearer <key>`.'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.