Skip to main content
POST
Search datasets

Request contract

  • Method and path: POST /apis/v1/socrata-com/open-data/search-datasets
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/socrata-com/open-data/search-datasets
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
category
string

Category filter. With domain: the portal's own category name (e.g. Buildings). Without: Socrata's global lowercase categories (e.g. public safety).

domain
string

Limit to one portal: hostname or URL (data.cityofchicago.org). Verified as a Socrata domain (US region first, then EU). Omit to search every public Socrata portal in region.

limit
number
default:10

limit

Provider reference: minimum 1; maximum 100; default 10.

offset
number
default:0

Result offset (next_offset of the previous page). The Discovery API stops at 10000 results.

Provider reference: minimum 0; maximum 9999; default 0.

query
string

Free-text search over dataset names, descriptions, columns and tags, e.g. building permits, restaurant inspections, 311.

region
string
default:us

Discovery API region for an all-portal search (us: US/Canada/most portals; eu: European portals such as opendata.rdw.nl). With domain it is only the first region tried.

Provider reference: allowed values ["us", "eu"]; default "us".

tags
string[]

Portal tags; with domain these are the portal's own tags (e.g. permits).

Response

Search the Socrata catalog for datasets, across every public Socrata portal in a region or limited to one portal (domain), by free text, category and tags, paged with limit/offset (up to 100 per page). Each dataset has its 4x4 id, name, owning portal domain, plain-text description, category, tags, attribution, license, created/updated dates, the column field names and types, popularity, permalink and SODA API URL. A domain that no Socrata region serves fails with invalid_input not_socrata_portal; a search with no matches is a successful empty result.

The response contains the tool result directly.

The provider identifies datasets as the primary payload key.

These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.