Exports

Export Query

Run a constrained string query and stream the result as an Excel workbook (or CSV/Parquet). auth(india:read + data:export) -> OPA(export prices) -> as-of lakehouse read -> legal_basis drop -> project -> serialize. The default ``fmt=xlsx`` is the analyst surface (SPEC.md §8 "Query -> Excel"); ``csv``/``parquet`` are the same panel in other encodings.

POST /india/exports

Run a constrained string query and stream the result as an Excel workbook (or CSV/Parquet). auth(india:read + data:export) -> OPA(export prices) -> as-of lakehouse read -> legal_basis drop -> project -> serialize. The default fmt=xlsx is the analyst surface (SPEC.md §8 “Query -> Excel”); csv/parquet are the same panel in other encodings.

Category: India · Exports

Authentication

Send the provisioned API key in the X-API-KEY header.

Required scopes: india:read, data:export.

Request

NameInRequiredTypeConstraintsDescription
qqueryyesstringConstrained string query, e.g. ‘prices isin=INE_AAA,INE_BBB start=2020-01-01 end=2020-12-31 columns=close,volume’.
fmtquerynostringdefault “xlsx”; one of xlsx, csv, parquet
limitquerynointegerdefault 50000; min 1; max 200000

Example request

curl --request POST \
  --url 'https://corpus-api.onera.app/india/exports?q=string' \
  --header "X-API-KEY: ${CORPUS_API_KEY}"

Responses

StatusDescriptionContent typeSchema
200Governed export bytes in the requested format.application/vnd.apache.parquet, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, text/csvstring (binary)
400Invalid parameter combinationapplication/jsonErrorResponse
401Missing or invalid API keyapplication/jsonErrorResponse
403Insufficient jurisdiction or scopeapplication/jsonErrorResponse
404Unknown resourceapplication/jsonErrorResponse
422Request schema validation failedapplication/jsonErrorResponse
429Rate limit exceededapplication/jsonErrorResponse
503Source content is unavailable or still processingapplication/jsonErrorResponse

Representative 200 response

The successful response uses application/vnd.apache.parquet.