# DataForSEO — Dataforseo Labs / Google / Categories For Keywords / Live

Get DataForSEO Keyword Categories data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no proxies required. Powered by DataForSEO, configure supported query parameters and filters, and retrieve structured data including returned cost field, returned status code field, returned status message field, business payload, and identifier to search interfaces and source review, and integration reference.

Documentation: https://openany.si/dataforseo/dataforseo-dataforseo-labs-google-categories-for-keywords-live/b9492019-87d5-46a2-923b-2af1fd893501/
API ID: b9492019-87d5-46a2-923b-2af1fd893501
Provider: DataForSEO
Contract revision: 4
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/dataforseo/v3/dataforseo_labs/google/categories_for_keywords/live
Page update time: 2026-12-03T02:50:24.501Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: application/json
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.012 base + $0.00012 / result
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:50:23.451Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "12000",
    "max_cost_micro_usd": "132000",
    "quantities": [
      {
        "id": "task_errors",
        "label": "任务错误数必须为零",
        "max_quantity": "0",
        "measure": "value",
        "pointer": "/tasks_error",
        "price_micro_usd": "0",
        "quantity_scale": 0,
        "source": "response",
        "unit": "task_error",
        "unit_quantity": "1"
      },
      {
        "id": "returned_results",
        "label": "本次返回结果",
        "max_quantity": "1000",
        "measure": "value",
        "pointer": "/tasks/0/result/0/items_count",
        "price_micro_usd": "120",
        "quantity_scale": 0,
        "source": "response",
        "unit": "result",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## DataForSEO Keyword Categories API

Retrieve labs Google Categories For Keywords Live with the DataForSEO API. Provide JSON payload in body. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.

## What You Can Build

- **Search interfaces and source review**: Keep returned sources and query context together.
- **Integration reference**: Use the selected request format and keep source identifiers with the returned result.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `cost` | Returned cost field |
| `status_code` | Returned status code field |
| `status_message` | Returned status message field |
| `tasks[].data` | Business payload |
| `tasks[].id` | Identifier |
| `tasks[].result` | Returned result |
| `tasks[].cost` | Returned cost field |
| `tasks[].path` | Returned path field |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "DataForSEO — Dataforseo Labs / Google / Categories For Keywords / Live request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    },
    "body": {
      "example": [
        {
          "keywords": [
            "dentist new york",
            "pizza brooklyn",
            "car dealer los angeles"
          ],
          "language_code": "en"
        }
      ],
      "items": {
        "example": [
          {
            "keywords": [
              "dentist new york",
              "pizza brooklyn",
              "car dealer los angeles"
            ],
            "language_code": "en"
          }
        ],
        "nullable": true,
        "properties": {
          "keywords": {
            "description": "target keywords required field UTF-8 encoding maximum number of keywords you can specify in this array: 1000 the keywords will be converted to lowercase format learn more about rules and limitations of keyword and keywords fields in DataForSEO APIs in this Help Center article",
            "items": {
              "type": "string"
            },
            "maxItems": 1000,
            "type": "array",
            "x-required-status": "required"
          },
          "language_code": {
            "description": "language code required field if don't specify language_name you can receive the list of available languages with their language_code by making a separate request to the https://api.dataforseo.com/v3/dataforseo_labs/google/categories_for_keywords/languages example: en",
            "nullable": true,
            "type": "string",
            "x-required-status": "conditional"
          },
          "language_name": {
            "description": "full name of the language required field if don't specify language_code you can receive the list of available languages with their language_name by making a separate request to the https://api.dataforseo.com/v3/dataforseo_labs/google/categories_for_keywords/languages example: English",
            "type": "string",
            "x-required-status": "conditional"
          },
          "tag": {
            "description": "user-defined task identifier optional field the character limit is 255 you can use this parameter to identify the task and match it with the result you will find the specified tag value in the data object of the response",
            "nullable": true,
            "type": "string",
            "x-required-status": "optional"
          }
        },
        "required": [
          "keywords"
        ],
        "type": "object",
        "x-required-origin": "official_required_array_plus_explicit_unconditional_required_field_prose"
      },
      "maxItems": 1,
      "minItems": 1,
      "type": "array",
      "x-openany-retail-scope": "single_native_task_per_sale_execution",
      "x-openapi-version": "3.0.1",
      "x-schema-origin": "official_openapi_with_local_refs_rebased",
      "description": "This endpoint will provide you with Google product and service categories related for each specified keyword. You can indicate a maximum of 1,000 keywords in one API request."
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cost": {
      "type": "number"
    },
    "status_code": {
      "type": "integer"
    },
    "status_message": {
      "type": "string"
    },
    "tasks": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "cost": {
            "type": "number"
          },
          "data": {
            "type": "object",
            "properties": {
              "api": {
                "type": "string"
              },
              "function": {
                "type": "string"
              },
              "keywords": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "language_code": {
                "type": "string"
              },
              "se_type": {
                "type": "string"
              }
            }
          },
          "id": {
            "type": "string"
          },
          "path": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "result": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "items": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "categories": {
                        "type": "array",
                        "items": {
                          "type": "integer"
                        }
                      },
                      "keyword": {
                        "type": "string"
                      }
                    }
                  }
                },
                "items_count": {
                  "type": "integer"
                },
                "language_code": {
                  "type": "string"
                }
              }
            }
          },
          "result_count": {
            "type": "integer"
          },
          "status_code": {
            "type": "integer"
          },
          "status_message": {
            "type": "string"
          },
          "time": {
            "type": "string"
          }
        }
      }
    },
    "tasks_count": {
      "type": "integer"
    },
    "tasks_error": {
      "type": "integer"
    },
    "time": {
      "type": "string"
    },
    "version": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Official example · 官方历史成对样例（未运行） (HTTP assumed)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/dataforseo/v3/dataforseo_labs/google/categories_for_keywords/live' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '[
  {
    "keywords": [
      "dentist new york",
      "pizza brooklyn",
      "car dealer los angeles"
    ],
    "language_code": "en"
  }
]'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Configured HTTP 200; actual status is unverified.
```json
{
  "cost": 0.00103,
  "status_code": 20000,
  "status_message": "Ok.",
  "tasks": [
    {
      "cost": 0.00103,
      "data": {
        "api": "dataforseo_labs",
        "function": "categories_for_keywords",
        "keywords": [
          "dentist new york",
          "pizza brooklyn",
          "car dealer los angeles"
        ],
        "language_code": "en",
        "se_type": "google"
      },
      "id": "07121857-1535-0587-0000-8673f930481b",
      "path": [
        "v3",
        "dataforseo_labs",
        "google",
        "categories_for_keywords",
        "live"
      ],
      "result": [
        {
          "items": [
            {
              "categories": [
                10011,
                10091,
                10514,
                11797
              ],
              "keyword": "dentist new york"
            },
            {
              "categories": [
                10020,
                10169,
                12228
              ],
              "keyword": "pizza brooklyn"
            },
            {
              "categories": [
                10001,
                13655,
                13656
              ],
              "keyword": "car dealer los angeles"
            }
          ],
          "items_count": 3,
          "language_code": "en"
        }
      ],
      "result_count": 1,
      "status_code": 20000,
      "status_message": "Ok.",
      "time": "0.0382 sec."
    }
  ],
  "tasks_count": 1,
  "tasks_error": 0,
  "time": "0.0969 sec.",
  "version": "0.1.20240626"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Which inputs identify this request?
Provide JSON payload in body (array). Keep identifiers and URLs in the formats documented for this implementation.

### How should I structure the JSON body?
Send the body according to its root JSON schema. Do not add a second body wrapper around the documented properties, and preserve the declared types of nested values.

### How should I map the returned fields?
Use the documented response paths with their returned types. Keep null, empty collections, false and zero distinct, and retain the identifiers needed to match results to the request.

### Can I reuse request parameters from another endpoint?
Use the selected implementation schema. Similar operation names, providers or versions do not establish identical input locations, types or response fields.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.

## Available implementations
- DataForSEO: https://openany.si/dataforseo/dataforseo-dataforseo-labs-google-categories-for-keywords-live/b9492019-87d5-46a2-923b-2af1fd893501/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
