Skip to main content
POST
/
api
/
census
/
datasets
/
search
/census/datasets/search
curl --request POST \
  --url https://api.anysite.io/api/census/datasets/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "count": 2,
  "timeout": 300,
  "keyword": "acs",
  "vintage": 2023
}
'
[
  {
    "id": "<string>",
    "@type": "@census_dataset",
    "title": "<string>",
    "description": "<string>",
    "vintage": 123,
    "modified_at": "<string>",
    "dataset": "<string>",
    "access_url": "<string>",
    "variables_url": "<string>",
    "geography_url": "<string>",
    "groups_url": "<string>",
    "is_microdata": true,
    "is_available": true
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
count
integer
required

Number of datasets to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
keyword
string | null

Filter by words in the dataset title or description

Example:

"acs"

vintage
integer | null

Filter by vintage year

Required range: 1990 <= x <= 2100
Example:

2023

Response

Successful Response

id
string
required
@type
string
default:@census_dataset
title
string | null
description
string | null
vintage
integer | null
modified_at
string | null
dataset
string | null
access_url
string | null
variables_url
string | null
geography_url
string | null
groups_url
string | null
is_microdata
boolean | null
is_available
boolean | null