# DataForSEO — Keywords Data / Dataforseo Trends / Demography / Live

Get Keywords / Dataforseo Trends / Demography / Live data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. 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-keywords-data-dataforseo-trends-demography-live/34b7f5c6-25e9-464b-b7a5-77df82f315d6/
API ID: 34b7f5c6-25e9-464b-b7a5-77df82f315d6
Provider: DataForSEO
Contract revision: 4
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/dataforseo/v3/keywords_data/dataforseo_trends/demography/live
Page update time: 2026-12-03T02:50:40.963Z
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.0024 / call
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:40.055Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "2400",
    "max_cost_micro_usd": "2400",
    "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"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## Keywords Data / Dataforseo Trends / Demography / Live API

Retrieve keywords Data Dataforseo Trends Demography Live via 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 — Keywords Data / Dataforseo Trends / Demography / 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": [
        {
          "date_from": "2023-01-01",
          "date_to": "2024-01-01",
          "keywords": [
            "rugby",
            "cricket"
          ],
          "location_name": "United States",
          "type": "web"
        }
      ],
      "items": {
        "example": [
          {
            "date_from": "2023-01-01",
            "date_to": "2024-01-01",
            "keywords": [
              "rugby",
              "cricket"
            ],
            "location_name": "United States",
            "type": "web"
          }
        ],
        "nullable": true,
        "properties": {
          "date_from": {
            "description": "starting date of the time range optional field if you don't specify this field, the current day and month of the preceding year will be used by default minimal value for the web type: 2004-01-01 minimal value for other types: 2008-01-01 date format: \"yyyy-mm-dd\" example: \"2019-01-15\"",
            "nullable": true,
            "type": "string",
            "x-required-status": "optional"
          },
          "date_to": {
            "description": "ending date of the time range optional field if you don't specify this field, the today's date will be used by default date format: \"yyyy-mm-dd\" example: \"2019-01-15\"",
            "nullable": true,
            "type": "string",
            "x-required-status": "optional"
          },
          "keywords": {
            "description": "keywords required field the maximum number of keywords you can specify: 5 avoid symbols and special characters (e.g., UTF symbols, emojis); specifying non-Latin characters, you’ll get data for the countries where they are used learn more about rules and limitations of keyword and keywords fields in DataForSEO APIs in this Help Center article",
            "items": {
              "type": "string"
            },
            "type": "array",
            "x-required-status": "required"
          },
          "location_code": {
            "description": "search engine location code optional field if you don't use this field, you will recieve global results if you use this field, you don't need to specify location_name you can receive the list of available locations of the search engines with their location_code by making a separate request to https://api.dataforseo.com/v3/keywords_data/dataforseo_trends/locations note that the data will be provided for the country the specified location_code belongs to; example: 2840",
            "nullable": true,
            "type": "integer",
            "x-required-status": "optional"
          },
          "location_name": {
            "description": "full name of search engine location optional field if you don't use this field, you will recieve global results if you use this field, you don't need to specify location_code you can receive the list of available locations of the search engine with their location_name by making a separate request to https://api.dataforseo.com/v3/keywords_data/dataforseo_trends/locations note that the data will be provided for the country the specified location_name belongs to; example: United Kingdom",
            "nullable": true,
            "type": "string",
            "x-required-status": "optional"
          },
          "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"
          },
          "time_range": {
            "description": "preset time ranges optional field if you specify date_from or date_to parameters, this field will be ignored when setting a task possible values for all type parameters: past_4_hours, past_day, past_7_days, past_30_days, past_90_days, past_12_months, past_5_years",
            "nullable": true,
            "type": "string",
            "x-original-openapi-description": "preset time ranges optional field if you specify date_from or date_to parameters, this field will be ignored when setting a task possible values for all type parameters: past_4_hours , past_day , past_7_days , past_30_days , past_90_days , past_12_months , past_5_years",
            "x-required-status": "optional"
          },
          "type": {
            "description": "dataforseo trends type optional field if you don't specify this field, the web type will be used by default possible values: web, news, ecommerce",
            "nullable": true,
            "type": "string",
            "x-original-openapi-description": "type of element",
            "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 the demographic breakdown (by age and gender) of keyword popularity per each specified term based on DataForSEO Trends data. You can check keyword trends for Google Search, Google News, and Google Shopping."
    }
  },
  "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"
              },
              "date_from": {
                "type": "string"
              },
              "date_to": {
                "type": "string"
              },
              "function": {
                "type": "string"
              },
              "keywords": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "location_name": {
                "type": "string"
              },
              "se": {
                "type": "string"
              },
              "type": {
                "type": "string"
              }
            }
          },
          "id": {
            "type": "string"
          },
          "path": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "result": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "datetime": {
                  "type": "string"
                },
                "items": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "demography": {
                        "type": "object",
                        "properties": {
                          "age": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "keyword": {
                                  "type": "string"
                                },
                                "values": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "type": {},
                                      "value": {}
                                    }
                                  }
                                }
                              }
                            }
                          },
                          "gender": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "keyword": {
                                  "type": "string"
                                },
                                "values": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "type": {},
                                      "value": {}
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      },
                      "demography_comparison": {
                        "type": "object",
                        "properties": {
                          "age": {
                            "type": "object",
                            "properties": {
                              "18-24": {
                                "type": "array",
                                "items": {
                                  "type": "integer"
                                }
                              },
                              "25-34": {
                                "type": "array",
                                "items": {
                                  "type": "integer"
                                }
                              },
                              "35-44": {
                                "type": "array",
                                "items": {
                                  "type": "integer"
                                }
                              },
                              "45-54": {
                                "type": "array",
                                "items": {
                                  "type": "integer"
                                }
                              },
                              "55-64": {
                                "type": "array",
                                "items": {
                                  "type": "integer"
                                }
                              }
                            }
                          },
                          "gender": {
                            "type": "object",
                            "properties": {
                              "female": {
                                "type": "array",
                                "items": {
                                  "type": "integer"
                                }
                              },
                              "male": {
                                "type": "array",
                                "items": {
                                  "type": "integer"
                                }
                              }
                            }
                          }
                        }
                      },
                      "keywords": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "position": {
                        "type": "integer"
                      },
                      "type": {
                        "type": "string"
                      }
                    }
                  }
                },
                "items_count": {
                  "type": "integer"
                },
                "keywords": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "language_code": {
                  "type": "null"
                },
                "location_code": {
                  "type": "integer"
                },
                "type": {
                  "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/keywords_data/dataforseo_trends/demography/live' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '[
  {
    "date_from": "2023-01-01",
    "date_to": "2024-01-01",
    "keywords": [
      "rugby",
      "cricket"
    ],
    "location_name": "United States",
    "type": "web"
  }
]'
```

## 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.002,
  "status_code": 20000,
  "status_message": "Ok.",
  "tasks": [
    {
      "cost": 0.002,
      "data": {
        "api": "keywords_data",
        "date_from": "2023-01-01",
        "date_to": "2024-01-01",
        "function": "demography",
        "keywords": [
          "rugby",
          "cricket"
        ],
        "location_name": "United States",
        "se": "dataforseo_trends",
        "type": "web"
      },
      "id": "03121400-1535-0574-0000-4ef65d6270b3",
      "path": [
        "v3",
        "keywords_data",
        "dataforseo_trends",
        "demography",
        "live"
      ],
      "result": [
        {
          "datetime": "2024-03-12 12:00:40 +00:00",
          "items": [
            {
              "demography": {
                "age": [
                  {
                    "keyword": "rugby",
                    "values": [
                      {
                        "type": "18-24",
                        "value": 73
                      },
                      {
                        "type": "25-34",
                        "value": 87
                      },
                      {
                        "type": "35-44",
                        "value": 91
                      },
                      {
                        "type": "45-54",
                        "value": 100
                      },
                      {
                        "type": "55-64",
                        "value": 49
                      }
                    ]
                  },
                  {
                    "keyword": "cricket",
                    "values": [
                      {
                        "type": "18-24",
                        "value": 42
                      },
                      {
                        "type": "25-34",
                        "value": 79
                      },
                      {
                        "type": "35-44",
                        "value": 100
                      },
                      {
                        "type": "45-54",
                        "value": 74
                      },
                      {
                        "type": "55-64",
                        "value": 39
                      }
                    ]
                  }
                ],
                "gender": [
                  {
                    "keyword": "rugby",
                    "values": [
                      {
                        "type": "female",
                        "value": 79
                      },
                      {
                        "type": "male",
                        "value": 100
                      }
                    ]
                  },
                  {
                    "keyword": "cricket",
                    "values": [
                      {
                        "type": "female",
                        "value": 83
                      },
                      {
                        "type": "male",
                        "value": 100
                      }
                    ]
                  }
                ]
              },
              "demography_comparison": {
                "age": {
                  "18-24": [
                    30,
                    70
                  ],
                  "25-34": [
                    22,
                    78
                  ],
                  "35-44": [
                    18,
                    82
                  ],
                  "45-54": [
                    25,
                    75
                  ],
                  "55-64": [
                    24,
                    76
                  ]
                },
                "gender": {
                  "female": [
                    20,
                    80
                  ],
                  "male": [
                    20,
                    80
                  ]
                }
              },
              "keywords": [
                "rugby",
                "cricket"
              ],
              "position": 1,
              "type": "demography"
            }
          ],
          "items_count": 1,
          "keywords": [
            "rugby",
            "cricket"
          ],
          "language_code": null,
          "location_code": 2840,
          "type": "trends"
        }
      ],
      "result_count": 1,
      "status_code": 20000,
      "status_message": "Ok.",
      "time": "0.5907 sec."
    }
  ],
  "tasks_count": 1,
  "tasks_error": 0,
  "time": "0.6673 sec.",
  "version": "0.1.20231117"
}
```

## 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-keywords-data-dataforseo-trends-demography-live/34b7f5c6-25e9-464b-b7a5-77df82f315d6/

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