DataForSEO Labs API icon

DataForSEO Labs API

DataForSEO

Google → Get Categories For Domain

AI-generated

Summary

Returns the top search categories for a specific domain, including optional subcategories, sorted and limited.

Inputs

  • target (required) — The domain to analyze (specified without https:// and www).
  • location_name_required (required) — Full name of the location (e.g., 'United States').
  • language_name_required (required) — Full name of the language (e.g., 'English').
  • include_subcategories — If true, includes subcategories in the results.
  • include_clickstream_data — If true, includes clickstream-based metrics in the response.
  • item_types — Filter by search result type: organic, paid, featured_snippet, or local_pack.
  • filters — A filter string for advanced field-based filtering.
  • order_by — Sorting rules (max 3). Specify field name and direction (asc/desc).
  • limit — Maximum number of results to return (up to 1000).
  • offset — Number of results to skip for pagination.

Output shape

a list of items, each representing a search category with associated metrics.

The API may return more results than the limit; use offset for pagination. Item types and filters apply to the underlying search results included in the category data.

Examples

Example 1: Get top organic search categories for 'example.com' in the US.

Target: example.com, Location: United States, Language: English, Item Types: organic

Example 2: Retrieve all subcategories for a domain with clickstream metrics.

Target: example.com, Include Subcategories: true, Include Clickstream Data: true

Example 3: Filter categories sorted by volume in descending order.

Target: example.com, Location: United Kingdom, Language: English, Sort by: volume desc, Limit: 50

Links

Discussion