Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Starwell Catalog API
version: 1.0.0
description: 'Verified official statistics for AI agents and applications: harmonized series with provenance on every observation, a verification status on every series, computed answers cited to the official source table, and webhooks on series movement. Series whose license does not permit redistribution are excluded from every surface; direct requests for them return 451.'
termsOfService: https://starwell.dev/terms
servers:
- url: https://starwell.dev/api/starwell
security:
- apiKey: []
- {}
tags:
- name: Catalog
paths:
/v1/catalog:
get:
summary: Every served series, flat, in one call — with ranked search
description: 'The right first call for agents: search across series ids, indicators, geographies, and dataset titles, then fetch or pin what you found. Pages with limit + offset; meta.hasMore says whether a next page exists.'
parameters:
- name: q
in: query
schema:
type: string
maxLength: 200
description: 'Ranked search: exact series id, then id/indicator prefix, then all-terms substring.'
- name: source
in: query
schema:
type: string
description: Restrict to one source slug.
- name: limit
in: query
schema:
type: integer
minimum: 1
maximum: 1000
description: Defaults to 50 with q, else all remaining from offset.
- name: offset
in: query
schema:
type: integer
minimum: 0
default: 0
description: Skip the first N rows. Paging is stable within the 60s catalog snapshot.
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
required:
- success
- data
properties:
success:
type: boolean
const: true
data:
type: array
items:
$ref: '#/components/schemas/CatalogEntry'
meta:
type: object
properties:
count:
type: integer
description: Rows in THIS response.
total:
type: integer
description: Rows matching the query across all pages.
offset:
type: integer
description: The offset this page starts at (echoed back).
hasMore:
type: boolean
description: True when rows exist past this page — fetch them with offset = offset + the number of rows returned here.
q:
type: string
description: Echoed back when a search ran.
datasetMatches:
type: array
description: Top-20 hits from the wider dataset index. First page only (offset=0) — it is not a slice of data.
items:
type: object
'400':
$ref: '#/components/responses/BadRequest'
tags:
- Catalog
operationId: getV1Catalog
x-operation-id-source: derived
components:
responses:
BadRequest:
description: Invalid parameters.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
schemas:
Error:
type: object
required:
- success
- error
properties:
success:
type: boolean
const: false
code:
type: string
description: Machine-readable error code, when applicable.
error:
type: string
CatalogEntry:
type: object
properties:
source:
type: string
sourceName:
type: string
authority:
type:
- string
- 'null'
termsUrl:
type:
- string
- 'null'
seriesId:
type: string
description: Source-native id practitioners already use (e.g. 'UNRATE', 'v41690973').
indicator:
type: string
unit:
type:
- string
- 'null'
frequency:
type:
- string
- 'null'
geography:
type:
- string
- 'null'
startPeriod:
type:
- string
- 'null'
format: date
endPeriod:
type:
- string
- 'null'
format: date
verificationStatus:
type: string
enum:
- passing
- stale
- failing
- unverified
lastVerifiedAt:
type:
- string
- 'null'
format: date-time
licenseCode:
type: string
attributionText:
type:
- string
- 'null'
redistributable:
type: boolean
datasetExternalId:
type: string
datasetTitle:
type: string
datasetUrl:
type:
- string
- 'null'
securitySchemes:
apiKey:
type: http
scheme: bearer
description: 'Optional: anonymous callers get per-IP preview limits; keys (dlk_live_...) get daily tier quotas with usage metering. Also accepted as X-API-Key. Free keys come with an account at /account.'