ChatGPT Search Responses API

SEO API documentation for REST and MCP, generated from the implemented API contract.

API selector
AI Visibility

API overview

AI Search Citation Sample. A bounded consumer ChatGPT answer and citation observation with explicit missing evidence. One submit and at most eight fixed reads. Missing values are not zero. Prices and publication are unapproved. Owner-only historical results are retained seven days.

Try this API
Endpoint
/api/skill-api/v1/skills/seo-ai-search-citation-sample/run
MCP method
nexscope_seo_ai_search_citation_sample

Authentication

All run endpoints require a user API key. Send it as a bearer token in the Authorization header.

Authorization: Bearer nk_xxxxxxxxxxxxxxxxx
Missing or invalid API keys return an authentication error. Manage keys from .
POST/api/skill-api/v1/skills/seo-ai-search-citation-sample/run

Run an API

Send a JSON request body using the parameters described below.

Slugseo-ai-search-citation-sample
HeadersAuthorization: Bearer nk_...
Content-Type: application/json
Request bodyAPI-specific JSON object.
Response bodyComplete HTTP envelope, including code and data.

Status codes

CodeDescription
200API executed successfully. Body is the direct response payload.
400Request JSON or required API parameters are invalid.
401API key is missing, invalid, or cannot be matched to a user.
5xxAPI execution or upstream service failed.

Example request

curl -X POST https://api.nexscope.ai/api/skill-api/v1/skills/seo-ai-search-citation-sample/run \
  -H "Authorization: Bearer nk_xxxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{   "prompt": "example" }'
All categories/ AI Visibility
POST/api/skill-api/v1/skills/seo-ai-search-citation-sample/run

Run this API

Send a JSON request to execute this API and receive the documented response payload.

Endpoint

MethodPOST
Path/api/skill-api/v1/skills/seo-ai-search-citation-sample/run
AuthBearer API key
Content-Typeapplication/json

Request body

NameTypeRequiredDescription
promptstringrequired
Prompt value used by this API operation.
Minimum length: 1
Maximum length: 2000

Request example

{
  "prompt": "example"
}

Response body

NameTypeRequiredDescription
codeintegerrequired
0 is a successful envelope; inspect data.status separately.
Allowed: 0, 42008, 42009
coststringrequired
Elapsed processing milliseconds; not price. -1 for non-web context.
dataobjectrequired
Data value used by this API operation.
data.callIdstring | nulloptional
Call id value used by this API operation.
data.completedAtinteger | nulloptional
Completed at value used by this API operation.
data.coverageobjectoptional
Coverage value used by this API operation.
data.coverage.missingarrayoptional
Missing value used by this API operation.
data.coverage.missing[]objectrequired
Item in data coverage missing.
data.coverage.missing[].fieldstringoptional
Field value used by this API operation.
data.coverage.missing[].reasonstringoptional
Reason value used by this API operation.
data.coverage.statusstringoptional
Status value used by this API operation.
data.requestedAtinteger | nulloptional
Requested at value used by this API operation.
data.resultobject | nullrequired
Result value used by this API operation.
data.result.answerMarkdownanyrequired
Answer markdown value used by this API operation.
data.result.checkUrlanyrequired
Check url value used by this API operation.
data.result.citationsarrayrequired
Citations value used by this API operation.
Maximum items: 50
data.result.citations[]objectrequired
Item in data result citations.
data.result.citations[].domainanyrequired
Domain value used by this API operation.
data.result.citations[].publishedAtanyrequired
Published at value used by this API operation.
data.result.citations[].snippetanyrequired
Snippet value used by this API operation.
data.result.citations[].sourceNameanyrequired
Source name value used by this API operation.
data.result.citations[].titleanyrequired
Title value used by this API operation.
data.result.citations[].urlanyrequired
Url value used by this API operation.
data.result.metaobjectrequired
Meta value used by this API operation.
data.result.meta.marketobjectrequired
Market value used by this API operation.
data.result.meta.market.countrystringrequired
Country value used by this API operation.
Constant: US
data.result.meta.market.languagestringrequired
Language value used by this API operation.
Constant: en
data.result.meta.market.locationCodeintegerrequired
Location code value used by this API operation.
Constant: 2840
data.result.meta.missingarrayrequired
Missing value used by this API operation.
Maximum items: 100
data.result.meta.missing[]objectrequired
Item in data result meta missing.
data.result.meta.missing[].pathstringrequired
Path value used by this API operation.
data.result.meta.missing[].reasonstringrequired
Reason value used by this API operation.
Allowed: MISSING, NULL, INVALID, UNSUPPORTED, TRUNCATED
data.result.meta.missingOverflowbooleanrequired
Missing overflow value used by this API operation.
data.result.meta.retrievedAtanyrequired
Retrieved at value used by this API operation.
data.result.meta.sampledAtanyrequired
Sampled at value used by this API operation.
data.result.meta.sourcestringrequired
Source value used by this API operation.
Constant: DATAFORSEO_CHATGPT_INTERFACE
data.result.meta.truncatedbooleanrequired
Truncated value used by this API operation.
data.result.modelanyrequired
Model value used by this API operation.
data.result.promptstringrequired
Prompt value used by this API operation.
Maximum length: 2000
data.schemaVersionstring | nulloptional
Schema version value used by this API operation.
data.sourcestring | nulloptional
Source value used by this API operation.
data.statusstringoptional
Status value used by this API operation.
Allowed: SUCCESS, PARTIAL, EMPTY, PROCESSING, UNKNOWN, FAILED
data.usageobjectoptional
Usage value used by this API operation.
data.usage.billingStatusstringoptional
Billing status value used by this API operation.
data.usage.chargedCreditsinteger | nulloptional
Charged credits value used by this API operation.
data.usage.providerCostStatusstringoptional
Provider cost status value used by this API operation.
data.usage.providerCostUsdstring | nulloptional
Provider cost usd value used by this API operation.
data.usage.providerRequestsintegeroptional
Provider requests value used by this API operation.
msgstring | nullrequired
Msg value used by this API operation.
timestringrequired
yyyy-MM-dd HH:mm:ss
traceIdstring | nullrequired
Trace id value used by this API operation.
tsstringrequired
Epoch milliseconds; global long serializer.

Any of option 1

NameTypeRequiredDescription
data.result.answerMarkdownstringrequired
Answer markdown value used by this API operation.
Maximum length: 65536

Any of option 2

NameTypeRequiredDescription
data.result.answerMarkdownnullrequired
Answer markdown value used by this API operation.

Any of option 1

NameTypeRequiredDescription
data.result.checkUrlstringrequired
Check url value used by this API operation.
Maximum length: 4096

Any of option 2

NameTypeRequiredDescription
data.result.checkUrlnullrequired
Check url value used by this API operation.

Any of option 1

NameTypeRequiredDescription
data.result.citations[].domainstringrequired
Domain value used by this API operation.
Maximum length: 1024

Any of option 2

NameTypeRequiredDescription
data.result.citations[].domainnullrequired
Domain value used by this API operation.

Any of option 1

NameTypeRequiredDescription
data.result.citations[].publishedAtintegerrequired
Published at value used by this API operation.
Minimum: 0
Maximum: 9007199254740991

Any of option 2

NameTypeRequiredDescription
data.result.citations[].publishedAtnullrequired
Published at value used by this API operation.

Any of option 1

NameTypeRequiredDescription
data.result.citations[].snippetstringrequired
Snippet value used by this API operation.
Maximum length: 8192

Any of option 2

NameTypeRequiredDescription
data.result.citations[].snippetnullrequired
Snippet value used by this API operation.

Any of option 1

NameTypeRequiredDescription
data.result.citations[].sourceNamestringrequired
Source name value used by this API operation.
Maximum length: 1024

Any of option 2

NameTypeRequiredDescription
data.result.citations[].sourceNamenullrequired
Source name value used by this API operation.

Any of option 1

NameTypeRequiredDescription
data.result.citations[].titlestringrequired
Title value used by this API operation.
Maximum length: 1024

Any of option 2

NameTypeRequiredDescription
data.result.citations[].titlenullrequired
Title value used by this API operation.

Any of option 1

NameTypeRequiredDescription
data.result.citations[].urlstringrequired
Url value used by this API operation.
Maximum length: 4096

Any of option 2

NameTypeRequiredDescription
data.result.citations[].urlnullrequired
Url value used by this API operation.

Any of option 1

NameTypeRequiredDescription
data.result.meta.retrievedAtintegerrequired
Retrieved at value used by this API operation.
Minimum: 0
Maximum: 9007199254740991

Any of option 2

NameTypeRequiredDescription
data.result.meta.retrievedAtnullrequired
Retrieved at value used by this API operation.

Any of option 1

NameTypeRequiredDescription
data.result.meta.sampledAtintegerrequired
Sampled at value used by this API operation.
Minimum: 0
Maximum: 9007199254740991

Any of option 2

NameTypeRequiredDescription
data.result.meta.sampledAtnullrequired
Sampled at value used by this API operation.

Any of option 1

NameTypeRequiredDescription
data.result.modelstringrequired
Model value used by this API operation.
Maximum length: 1024

Any of option 2

NameTypeRequiredDescription
data.result.modelnullrequired
Model value used by this API operation.

Response example

Example response envelope from the documented SEO API contract.

{
  "code": 0,
  "cost": "-1",
  "data": {
    "callId": "synthetic-call",
    "completedAt": null,
    "coverage": {
      "missing": [
        {
          "field": "synthetic",
          "reason": "UPSTREAM_FIELD_MISSING"
        }
      ],
      "status": "PARTIAL"
    },
    "requestedAt": 123,
    "result": {
      "answerMarkdown": "synthetic",
      "checkUrl": "synthetic",
      "citations": [
        {
          "domain": "synthetic",
          "publishedAt": 9007199254740992,
          "snippet": "synthetic",
          "sourceName": "synthetic",
          "title": "synthetic",
          "url": "synthetic"
        }
      ],
      "meta": {
        "market": {
          "country": "synthetic",
          "language": "synthetic",
          "locationCode": 1
        },
        "missing": [
          {
            "path": "synthetic",
            "reason": "synthetic"
          }
        ],
        "missingOverflow": false,
        "retrievedAt": 9007199254740992,
        "sampledAt": 9007199254740992,
        "source": "synthetic",
        "truncated": false
      },
      "model": "synthetic",
      "prompt": "synthetic"
    },
    "schemaVersion": "synthetic",
    "source": "synthetic",
    "status": "PARTIAL",
    "usage": {
      "billingStatus": "UNAPPROVED",
      "chargedCredits": 0,
      "providerCostStatus": "UNAPPROVED",
      "providerCostUsd": null,
      "providerRequests": 0
    }
  },
  "msg": null,
  "time": "2026-01-01 00:00:00",
  "traceId": null,
  "ts": "9007199254740993"
}

Responses

CodeDescription
200API executed successfully. Body is the direct response payload.
400Request JSON or required API parameters are invalid.
401API key is missing, invalid, or cannot be matched to a user.
5xxAPI execution or upstream service failed.

Data source, freshness, and limitations

Source, freshness, coverage, rate limits, and estimation notes are not specified in this API definition unless they appear in the request or response field documentation above. Do not assume official marketplace data or real-time freshness when it is not explicitly documented.

MCP

Use the MCP endpoint when an agent needs to discover and call API tools with JSON-RPC.

GET /api/skill-api/v1/mcp
POST /api/skill-api/v1/mcp
Authorization: Bearer nk_xxxxxxxxxxxxxxxxx
Content-Type: application/json

Call a tool

{
  "jsonrpc": "2.0",
  "id": "tool-call-1",
  "method": "tools/call",
  "params": {
    "name": "nexscope_seo_ai_search_citation_sample",
    "arguments": {
      "prompt": "example"
    }
  }
}

Online test

Execute the current API with your API key and JSON payload.

Try it

Send a real request with the same contract shown in the reference.

Endpoint
/api/skill-api/v1/skills/seo-ai-search-citation-sample/run
Task result endpoint
https://api.nexscope.ai/api/skill-api/v1/skills/seo-ai-search-citation-sample/tasks/{taskId}
MCP method
nexscope_seo_ai_search_citation_sample
cURL
curl -X POST \
  https://api.nexscope.ai/api/skill-api/v1/skills/seo-ai-search-citation-sample/run \
  -H "Authorization: Bearer nk-..." \
  -H "Content-Type: application/json" \
  -d '{ "prompt": "example" }'
Response
No response yet. Run the request to see the response here.
Task result

Results are checked automatically after Run API. You can also enter a task ID and check it manually; completed resources use Nexscope URLs and show actual charged credits.

Result response
No task result yet. Query the task to see the generated output here.