Skip to main content
POST
Records list

Request contract

  • Method and path: POST /apis/v1/sdmx-oecd-org/datasets/records-list
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/sdmx-oecd-org/datasets/records-list
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
dataflow
string
required

AGENCY:ID(VERSION) or AGENCY:ID (latest), e.g. OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD.

cursor
string

next_cursor from the previous page; pins the dataflow version and segment hash.

end_period
string

Pattern: ^[0-9]{4}(-(0[1-9]|1[0-2]|Q[1-4]|S[12]|W[0-5][0-9])(-(0[1-9]|[12][0-9]|3[01]))?)?$.

filters
object

Codes per dimension id, e.g. {"REF_AREA": "USA", "FREQ": "Q", "TRADE_FLOW": ["X", "M"]}. Countries go in REF_AREA as ISO3 codes; dimensions left out are wildcards. structure_get lists the dimension ids and the codes with data. Use instead of key.

key
string

Raw SDMX series key in dimension order (see structure_get); empty position = wildcard, + joins codes. Prefer filters, which cannot get the positions wrong. Pattern: ^(all|[A-Za-z0-9_@+.-]*)$.

page_size
number
default:1000

page_size

Provider reference: minimum 1; maximum 5000; default 1000.

start_period
string

Pattern: ^[0-9]{4}(-(0[1-9]|1[0-2]|Q[1-4]|S[12]|W[0-5][0-9])(-(0[1-9]|[12][0-9]|3[01]))?)?$.

Response

Observations of one dataflow selected by country, other dimension codes and period, as records. Give filters (dimension id to code(s); REF_AREA is the country) or a raw key, plus optional start_period/end_period. Unknown dimensions or codes without data fail with invalid_input listing the valid ones; a combination with no data is not_found. Selections above 50,000 observations are rejected: add filters or a period range. One data download per page (OECD allows about 60 per hour); rows are sorted canonically and the cursor pins the dataflow version and segment hash, so a publication change fails with upstream_error publication_changed instead of mixing data. Each record carries every dimension and attribute code, obs_value, time_period, series_key, source_record_id and source_url; Revenue Statistics and financial market rows also get a typed mapped view. Common dataflows: merchandise trade incl. G20 aggregate OECD.SDD.TPS:DSD_IMTS@DF_IMTS, quarterly services/goods trade (balance of payments) OECD.SDD.TPS:DSD_BOP@DF_BOP, Revenue Statistics OECD.CTP.TPS:DSD_REV_COMP_OECD@DF_RSOECD, SOCX OECD.ELS.SPD:DSD_SOCX_AGG@DF_SOCX_AGG, quarterly sector accounts OECD.SDD.NAD:DSD_NASEC1@DF_QSA; structure_get and dataflows_list list their key codes.

The response contains the tool result directly.

The provider identifies records 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.