OpenAny
Get API keyAPI Key
APIDataEnrichment

dataforseo logo
DataForSEO Business Category Aggregation API

Get DataForSEO Business Category Aggregation 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 for application integration and result review, and integration reference.

Selected price
$0.012 base + $0.00036 / result Published pricing
Sellers / APIs
1 / 1
Requests · 30d
—Statistics unavailable
Success rate · 30d
—Statistics unavailable
USE THIS API

DataForSEO Business Category Aggregation API

Prepare your request, then continue with your agent.

Pricing

$0.012 base + $0.00036 / result

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
DataForSEO Business Category Aggregation API

DataForSEO Business Category Aggregation API

Retrieve business Data Business Listings Categories Aggregation 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.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs body: body
Selected implementation dataforseo · DataForSEO — Business Data / Business Listings / Categories Aggregation / Live
Billing Follow the selected implementation pricing, billing unit, quantity and charge rules

What You Can Build

  • Application integration and result review: Keep the request context attached to available returned results.
  • 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

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the JSON body and supported fields shown in the request template.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl \
  'https://api.openany.si/v1/agent-apis/dataforseo/v3/business_data/business_listings/categories_aggregation/live' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '[
  {
    "categories": [
      "pizza_restaurant"
    ],
    "description": "pizza",
    "initial_dataset_filters": [
      [
        "rating.value",
        ">",
        3
      ]
    ],
    "is_claimed": true,
    "limit": 3,
    "location_coordinate": "53.476225,-2.243572,10",
    "title": "pizza"
  }
]'

Request and Response Examples

The response is a published documentation reference; its values may be historical. The request is an independent calling template. Use current returned identifiers and optional fields for your target resource.

Published DataForSEO Business Category Aggregation API implementation contract.

Pricing and Billing

The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.

Frequently Asked Questions

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Provider
DataForSEO
Endpoint
DataForSEO — Business Data / Business Listings / Categories Aggregation / Live
Request parameters
body*array

body

‌‌ Business Listings Categories Aggregation endpoint provides results containing information about groups of related categories along with the number of entities in each category. The provided results are specific to the specified parameters.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
DataForSEOCurrent
DataForSEO — Business Data / Business Listings / Categories Aggregation / Live · POST · View API reference
$0.012 base + $0.00036 / result—
—successP50—
Selected pricing · DataForSEOUSD
Pricing
$0.012 base + $0.00036 / result

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 4. Contract updated: Dec 3, 2026, 02:50 AM (UTC).

API

Method
POST
Endpoint
https://api.openany.si/v1/agent-apis/dataforseo/v3/business_data/business_listings/categories_aggregation/live
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
bodyJSON request bodybodyarrayYes

‌‌ Business Listings Categories Aggregation endpoint provides results containing information about groups of related categories along with the number of entities in each category. The provided results are specific to the specified parameters.

minItems: 1 · maxItems: 1

Nested fields and variants

body[] · Array item · object

Nested fields and variants
body[].categories array · Optional

Parent object: body[]

business categories optional field the categories you specify are used to search for business listings; if you don't use this field, we will return business listings found in the specified location; you can specify up to 10 categories
Nested fields and variants

body[].categories[] · Array item · string

body[].description string · Optional

Parent object: body[]

description of the element in SERP optional field the description of the business entity for which the results are collected; can contain up to 200 characters
body[].initial_dataset_filters array · Optional

Parent object: body[]

array of results filtering parameters optional field you can add several filters at once (8 filters maximum) you should set a logical operator and, or between the conditions the following operators are supported: regex, not_regex, <, <=, >, >=, =, <>, in, not_in, like, not_like, match, not_match you can use the % operator with like and not_like to match any string of zero or more characters example: ["rating.value",">",3] you can receive the list of available filters_by making a separate request to https://api.dataforseo.com/v3/business_data/business_listings/available_filters the full list of possible filters is available here. learn more about the initial dataset filters in this help center article.n
body[].internal_list_limit integer · Optional

Parent object: body[]

maximum number of elements within internal arrays optional field you can use this field to limit the number of elements within the aggregated categories default value: 10
body[].is_claimed boolean · Optional

Parent object: body[]

indicates whether the business is verified by its owner on Google Maps optional field
body[].limit integer · Optional

Parent object: body[]

the maximum number of returned businesses optional field default value: 100 maximum value: 1000

maximum: 1000

body[].location_coordinate string · Optional

Parent object: body[]

GPS coordinates of a location optional field location_coordinate parameter should be specified in the "latitude,longitude,radius" format the maximum number of decimal digits for "latitude" and "longitude": 7 the minimum value for "radius": 1 the maximum value for "radius": 100000 example: 53.476225,-2.243572,200 learn more about how to set location parameters in this API on our Help Center
body[].offset integer · Optional

Parent object: body[]

the maximum number of returned businesses optional field
body[].tag string · Optional

Parent object: body[]

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
body[].title string · Optional

Parent object: body[]

title of the element in SERP optional field the name of the business entity for which the results are collected; can contain up to 200 characters

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • costnumber
  • status_codeinteger
  • status_messagestring
  • tasksobject[]
    • costnumber
    • dataobject
      • apistring
      • categoriesstring[]
      • descriptionstring
      • functionstring
      • initial_dataset_filters((string | integer)[])[]
      • is_claimedboolean
      • limitinteger
      • location_coordinatestring
      • titlestring
    • idstring
    • pathstring[]
    • resultobject[]
      • countinteger
      • itemsobject[]
        • aggregationobject
          • countinteger
          • top_attributesobject
            • accepts_reservationsinteger
            • feels_casualinteger
            • has_deliveryinteger
            • has_no_contact_deliveryinteger
            • has_takeoutinteger
            • has_wheelchair_accessible_entranceinteger
            • pay_debit_cardinteger
            • pay_mobile_nfcinteger
            • serves_dessertinteger
            • serves_dinnerinteger
            • is_transgender_safespaceinteger
            • serves_late_night_foodinteger
          • top_categoriesobject
            • delivery_serviceinteger
            • fast_food_restaurantinteger
            • italian_restaurantinteger
            • meal_takeawayinteger
            • neapolitan_restaurantinteger
            • pizza_delivery_serviceinteger
            • pizza_restaurantinteger
            • pizzatakeawayinteger
            • restaurantinteger
            • vegan_restaurantinteger
            • buffet_restaurantinteger
            • family_restaurantinteger
          • top_countriesobject
            • GBinteger
          • top_place_topicsobject
            • atmosphereinteger
            • coldinteger
            • dominosinteger
            • doughinteger
            • kidsinteger
            • moneyinteger
            • orderinteger
            • phoneinteger
            • priceinteger
            • veganinteger
            • appinteger
            • buffetinteger
            • callinteger
            • ice creaminteger
            • payinteger
            • the pizzainteger
            • incredible pizzainteger
          • websites_countinteger
        • categoiriesstring[]
        • typestring
      • offsetnull
      • offset_tokennull
      • total_countinteger
    • result_countinteger
    • status_codeinteger
    • status_messagestring
    • timestring
  • tasks_countinteger
  • tasks_errorinteger
  • timestring
  • versionstring

Composite rule pricing

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Base fee: $0.012000. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.

Fee itemPriceMetering sourceWhenQuantity limit
任务错误数必须为零$0.000000 / billing unitResponse · /tasks_error · Numeric valueAlways0 billing unit · Decimal places: 0
本次返回结果$0.000360 / resultResponse · /tasks/0/result/0/count · Numeric valueAlways1000 result · Decimal places: 0

Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.372000.

Response quantities settle after the response. Before execution, the maximum quantity determines the reservation; unused reservation is released. Missing or invalid quantities are not treated as zero.

Pricing parameters and defaults
[]

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Official example · 官方历史成对样例(未运行) (HTTP assumed)

Example from the provider's documentation. Field values in your results will differ.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 1

    Review these request fields before running. Keep the published provider and request method unchanged.

    body
    ‌‌ Business Listings Categories Aggregation endpoint provides results containing information about groups of related categories along with the number of entities in each category. The provided results are specific to the specified parameters.
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/dataforseo/v3/business_data/business_listings/categories_aggregation/live' \
      -X POST \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json' \
      --data-raw '[
      {
        "categories": [
          "pizza_restaurant"
        ],
        "description": "pizza",
        "initial_dataset_filters": [
          [
            "rating.value",
            ">",
            3
          ]
        ],
        "is_claimed": true,
        "limit": 3,
        "location_coordinate": "53.476225,-2.243572,10",
        "title": "pizza"
      }
    ]'
  3. Check the response

    Sample response · Configured HTTP 200; actual status is unverified.

    Sample response
    {
      "cost": 0.0109,
      "status_code": 20000,
      "status_message": "Ok.",
      "tasks": [
        {
          "cost": 0.0109,
          "data": {
            "api": "business_data",
            "categories": [
              "pizza_restaurant"
            ],
            "description": "pizza",
            "function": "categories_aggregation",
            "initial_dataset_filters": [
              [
                "rating.value",
                ">",
                3
              ]
            ],
            "is_claimed": true,
            "limit": 3,
            "location_coordinate": "53.476225,-2.243572,10",
            "title": "pizza"
          },
          "id": "04301510-1535-0545-0000-92269c6091b9",
          "path": [
            "v3",
            "business_data",
            "business_listings",
            "categories_aggregation",
            "live"
          ],
          "result": [
            {
              "count": 3,
              "items": [
                {
                  "aggregation": {
                    "count": 32,
                    "top_attributes": {
                      "accepts_reservations": 17,
                      "feels_casual": 28,
                      "has_delivery": 32,
                      "has_no_contact_delivery": 20,
                      "has_takeout": 32,
                      "has_wheelchair_accessible_entrance": 17,
                      "pay_debit_card": 26,
                      "pay_mobile_nfc": 23,
                      "serves_dessert": 20,
                      "serves_dinner": 18
                    },
                    "top_categories": {
                      "delivery_service": 7,
                      "fast_food_restaurant": 4,
                      "italian_restaurant": 7,
                      "meal_takeaway": 3,
                      "neapolitan_restaurant": 6,
                      "pizza_delivery_service": 11,
                      "pizza_restaurant": 32,
                      "pizzatakeaway": 14,
                      "restaurant": 12,
                      "vegan_restaurant": 3
                    },
                    "top_countries": {
                      "GB": 32
                    },
                    "top_place_topics": {
                      "atmosphere": 6,
                      "cold": 5,
                      "dominos": 6,
                      "dough": 4,
                      "kids": 5,
                      "money": 7,
                      "order": 8,
                      "phone": 5,
                      "price": 9,
                      "vegan": 6
                    },
                    "websites_count": 18
                  },
                  "categoiries": [
                    "pizza_restaurant"
                  ],
                  "type": "business_category"
                },
                {
                  "aggregation": {
                    "count": 14,
                    "top_attributes": {
                      "accepts_reservations": 9,
                      "feels_casual": 13,
                      "has_delivery": 14,
                      "has_no_contact_delivery": 10,
                      "has_takeout": 14,
                      "is_transgender_safespace": 9,
                      "pay_debit_card": 12,
                      "pay_mobile_nfc": 12,
                      "serves_dessert": 9,
                      "serves_late_night_food": 8
                    },
                    "top_categories": {
                      "buffet_restaurant": 1,
                      "family_restaurant": 2,
                      "fast_food_restaurant": 3,
                      "italian_restaurant": 2,
                      "meal_takeaway": 2,
                      "pizza_delivery_service": 8,
                      "pizza_restaurant": 14,
                      "pizzatakeaway": 14,
                      "restaurant": 8,
                      "vegan_restaurant": 2
                    },
                    "top_countries": {
                      "GB": 14
                    },
                    "top_place_topics": {
                      "app": 2,
                      "buffet": 3,
                      "call": 2,
                      "ice cream": 3,
                      "kids": 3,
                      "money": 3,
                      "order": 4,
                      "pay": 3,
                      "price": 5,
                      "the pizza": 3
                    },
                    "websites_count": 7
                  },
                  "categoiries": [
                    "pizzatakeaway"
                  ],
                  "type": "business_category"
                },
                {
                  "aggregation": {
                    "count": 12,
                    "top_attributes": {
                      "accepts_reservations": 11,
                      "feels_casual": 11,
                      "has_delivery": 12,
                      "has_no_contact_delivery": 8,
                      "has_takeout": 12,
                      "has_wheelchair_accessible_entrance": 8,
                      "is_transgender_safespace": 11,
                      "pay_debit_card": 11,
                      "pay_mobile_nfc": 11,
                      "serves_dessert": 10
                    },
                    "top_categories": {
                      "buffet_restaurant": 1,
                      "delivery_service": 1,
                      "family_restaurant": 2,
                      "italian_restaurant": 3,
                      "neapolitan_restaurant": 3,
                      "pizza_delivery_service": 5,
                      "pizza_restaurant": 12,
                      "pizzatakeaway": 8,
                      "restaurant": 12,
                      "vegan_restaurant": 2
                    },
                    "top_countries": {
                      "GB": 12
                    },
                    "top_place_topics": {
                      "app": 2,
                      "atmosphere": 2,
                      "buffet": 3,
                      "ice cream": 3,
                      "incredible pizza": 3,
                      "kids": 3,
                      "order": 3,
                      "pay": 3,
                      "the pizza": 4,
                      "vegan": 3
                    },
                    "websites_count": 3
                  },
                  "categoiries": [
                    "restaurant"
                  ],
                  "type": "business_category"
                }
              ],
              "offset": null,
              "offset_token": null,
              "total_count": 26
            }
          ],
          "result_count": 1,
          "status_code": 20000,
          "status_message": "Ok.",
          "time": "0.2798 sec."
        }
      ],
      "tasks_count": 1,
      "tasks_error": 0,
      "time": "0.3505 sec.",
      "version": "0.1.20221214"
    }

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.

Use DataForSEO Business Category Aggregation API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.