Skip to main content
GET
/
v1
/
search
/
statistics
cURL
curl --request GET \
  --url https://api.statista.ai/v1/search/statistics \
  --header 'x-api-key: <api-key>'
{
  "items": [
    {
      "identifier": 123,
      "title": "<string>",
      "description": "<string>",
      "link": "<string>",
      "date": "2023-11-07T05:31:56Z",
      "platform": "de",
      "subject": "<string>",
      "is_premium": true,
      "industries": [
        {
          "id": 123,
          "name": "<string>"
        }
      ],
      "geolocations": [
        {
          "id": 123,
          "name": "<string>",
          "code": "<string>"
        }
      ],
      "teaser_image_urls": [
        {
          "width": 123,
          "src": "<string>"
        }
      ]
    }
  ],
  "total_count": 123,
  "total_pages": 123
}
Semantically search Statistics using natural language or keywords.

Authorizations

x-api-key
string
header
required

Query Parameters

q
string
required

The query string to search for content. This parameter is multi-lingual.

Minimum length: 1
offset
integer
default:0

The number of items will be skipped before the first result. The default value for offset is 0. This is useful for pagination. Could be used in combination with size.

Required range: x >= 0
size
integer
default:10

The max. value depends on which API Package you are using. The default value for size is 10. See API-Packages for more information.

An alias for size is limit

Required range: x >= 0
date_from
string<date-time>

The start date to search for content.

date_to
string<date-time>

The end date to search for content. If not set, the current date is used.

geolocation
object

Filters content based on a specific geographic location. Defaults to Worldwide which means all content. Use geolocation codes provided by the API documentation. For example, 1 for Worldwide, 2 for Africa, etc. Note: only one geolocation can be used at a time.

premium
boolean | null

Filters content based on its premium status. If set to true, only premium content is returned. If set to false, only free content is returned. If not set, both free and premium content is returned.

Response

The request has succeeded.

items
object[]
required

A list of results returned for the current request.

total_count
integer
required

The total number of available items matching the request.

total_pages
integer

The total number of pages available, based on the selected size parameter

I