DataForSEO Labs Google Keywords For Site

From 14.4 credits/call
ae_dataforseo_labs_google_keywords_for_site

Find keywords relevant to a specific domain using DataForSEO, including search volume, cost-per-click, and competition data.

Search
From 14.4 credits/call

Pricing

From 14.4 credits/call
ConditionCharge
Without clickstream data (default)14.4 credits base fee + 0.2 credits per returned record
With clickstream data28.8 credits base fee + 0.4 credits per returned record

Charges depend on clickstream inclusion and the number of results actually returned.

The starting price is the base query fee without clickstream data; returned records add the listed charges.

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
tasksarrayYesNo parameter description.—
tasks[].tagstring | nullNoNo parameter description.—
tasks[].limitinteger | nullNoNo parameter description.—
tasks[].offsetinteger | nullNoNo parameter description.—
tasks[].targetstringNo<em>domain name or page url</em><br><strong>required field</strong><br>the domain name of the target website, subdomain or URL of the target webpage;<br>the <strong>domain name</strong> must be specified <strong>without</strong> <code>https://</code> or <code>www.</code>;<br>the <strong>subdomain</strong> must be specified <strong>without</strong> <code>https://</code>;<br>the <strong>webpage URL</strong> must be specified <strong>with</strong> <code>https://</code> or <code>www.</code><br><strong>Note:</strong> if you specify the <strong>webpage URL</strong> without <code>https://</code> or <code>www.</code>, the result will be returned for the <strong>entire domain</strong> rather than the specific page—
tasks[].filtersarray | nullNoNo parameter description.—
tasks[].order_byarray | nullNoNo parameter description.—
tasks[].offset_tokenstring | nullNoNo parameter description.—
tasks[].language_codestring | nullNoNo parameter description.—
tasks[].language_namestring | nullNoNo parameter description.—
tasks[].location_codeintegerNo<em>unique location identifier</em><br><strong>required field if you don't specify</strong> <code>location_name</code><br><strong>Note:</strong> it is required to specify either <code>location_name</code> or <code>location_code</code><br>you can receive the list of available locations with their <code>location_code</code> by making a separate request to the<br><code>https://api.dataforseo.com/v3/dataforseo_labs/locations_and_languages</code><br>example:<br><code class="long-string">2840</code>—
tasks[].location_namestringNo<em>full name of the location</em><br><strong>required field if you don't specify</strong> <code>location_code</code><br><strong>Note:</strong> it is required to specify either <code>location_name</code> or <code>location_code</code><br>you can receive the list of available locations with their <code>location_name</code> by making a separate request to the<br><code>https://api.dataforseo.com/v3/dataforseo_labs/locations_and_languages</code><br>example:<br><code class="long-string">United Kingdom</code>—
tasks[].include_serp_infoboolean | nullNoNo parameter description.—
tasks[].include_subdomainsboolean | nullNoNo parameter description.—
tasks[].include_clickstream_databoolean | 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_labs_google_keywords_for_site' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "tasks": [
      {
        "language_code": "en",
        "limit": 50,
        "location_code": 2840,
        "order_by": [
          "keyword_info.search_volume,desc"
        ],
        "target": "fscdisplay.com"
      }
    ]
  }
}'
Response exampleresponse.json
JSONPartial content
{
  "cost": 0.012,
  "status_code": 20000,
  "status_message": "Ok.",
  "tasks": [
    {
      "cost": 0.012,
      "data": {
        "api": "dataforseo_labs",
        "function": "keywords_for_site",
        "language_code": "en",
        "limit": 50,
        "location_code": 2840,
        "order_by": [
          "keyword_info.search_volume,desc"
        ]
      },
      "id": "11120832-2802-0398-0000-29c4c3e83330",
      "path": [
        "v3"
      ],
      "result": [
        {
          "items": null,
          "items_count": 0,
          "language_code": "en",
          "location_code": 2840,
          "offset": 0,
          "offset_token": null
        }
      ],
      "result_count": 1
    }
  ],
  "tasks_count": 1,
  "tasks_error": 0
}

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