OpenAI DataForSEO AI Optimization Chat GPT Scraper

From 4.8 credits/call
ae_dataforseo_ai_optimization_chat_gpt_scraper

Retrieve direct ChatGPT search results for specific queries, with optional web search enforcement, using DataForSEO.

Search
From 4.8 credits/call

Pricing

From 4.8 credits/call
ConditionCharge
Each call4.8 credits

A fixed fee applies to each call.

The starting price applies to a single query.

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
tasksarrayYesNo parameter description.—
tasks[].tagstring | nullNoNo parameter description.—
tasks[].keywordstringNo<em>keyword</em><br><strong>required field</strong><br>you can specify <strong>up to 2000 characters</strong> in the <code>keyword</code> field<br>all %## will be decoded (plus character ‘+’ will be decoded to a space character)<br>if you need to use the “%” character for your <code>keyword</code>, please specify it as “%25”;<br>if you need to use the “+” character for your <code>keyword</code>, please specify it as “%2B”<p>learn more about rules and limitations of <code>keyword</code> and <code>keywords</code> fields in DataForSEO APIs in this <a href="https://dataforseo.com/help-center/rules-and-limitations-of-keyword-and-keywords-fields-in-dataforseo-apis" rel="noopener noreferrer" target="_blank">Help Center article</a>—
tasks[].language_codestringNo<em>search engine language code</em><br><strong>required field if you don't specify <code>language_name</code>;</strong><br>if you use this field, you don't need to specify <code>language_name</code>;<br>you can receive the list of available languages of the search engine with their <code>language_code</code> by making a separate request to the <code>https://api.dataforseo.com/v3/ai_optimization/chat_gpt/llm_scraper/languages</code>—
tasks[].language_namestringNo<em>full name of search engine language</em><br><strong>required field if you don't specify <code>language_code</code>;</strong><br>if you use this field, you don't need to specify <code>language_code</code>;<br>you can receive the list of available languages of the search engine with their <code>language_name</code> by making a separate request to the <code>https://api.dataforseo.com/v3/ai_optimization/chat_gpt/llm_scraper/languages</code>—
tasks[].location_codeintegerNo<em>search engine location code</em><br><strong>required field if you don't specify</strong> <code>location_name</code><br><strong>if you use this field, you don't need to specify <code>location_name</code></strong><br>you can receive the list of available locations of the search engines with their <code>location_code</code> by making a separate request to the <code>https://api.dataforseo.com/v3/ai_optimization/chat_gpt/llm_scraper/locations</code><br>example:<br><code class="long-string">2840</code>—
tasks[].location_namestringNo<em>full name of search engine location</em><br><strong>required field if you don't specify</strong> <code>location_code</code><br><strong>if you use this field, you don't need to specify <code>location_code</code></strong><br>you can receive the list of available locations of the search engine with their <code>location_name</code> by making a separate request to the <code>https://api.dataforseo.com/v3/ai_optimization/chat_gpt/llm_scraper/locations</code><br>example:<br><code class="long-string">United States</code>—
tasks[].force_web_searchboolean | nullNoNo parameter description.—

Invocation example

Copy the request and explore its response example.

POST/agent-api/v1/tool/executeX-Api-Key
Request coderequest.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_dataforseo_ai_optimization_chat_gpt_scraper' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "tasks": [
      {
        "keyword": "What rough opening should I frame for a casement window?",
        "language_code": "en",
        "location_code": 2840
      }
    ]
  }
}'
Response exampleresponse.json
JSONPartial content
{
  "cost": 0.004,
  "status_code": 20000,
  "status_message": "Ok.",
  "tasks": [
    {
      "cost": 0.004,
      "data": {
        "api": "ai_optimization",
        "device": "desktop",
        "function": "live",
        "keyword": "What rough opening should I frame for a casement window?",
        "language_code": "en",
        "location_code": 2840
      },
      "id": "11160947-2802-0629-0000-7a121c168f4b",
      "path": [
        "v3"
      ],
      "result": [
        {
          "brand_entities": null,
          "check_url": "https://chatgpt.com/?prompt=What%20rough%20opening%20should%20I%20frame%20for%20a%20casement%20window%3F",
          "datetime": "2026-11-16 09:48:06 +00:00",
          "fan_out_queries": null,
          "item_types": [
            "chat_gpt_text"
          ],
          "items": [
            {}
          ]
        }
      ],
      "result_count": 1
    }
  ],
  "tasks_count": 1,
  "tasks_error": 0
}

This example shows part of the response. Copied content is valid JSON.