DataOrigin API
The DataOrigin REST API lets you query trade fairs and companies from your own systems, with your account and the same token as the MCP server.
If you work with an AI assistant, see the MCP server.
Download the full specification in OpenAPI 3.0 format at /openapi.json.
Your first request
- 1.Create a token in the app, at dataorigin.es/app/settings/api-docs.
- 2.Send the token in the X-API-Token header of every request.
- 3.Check your credit balance. It is a free call that confirms the token works.
Request
curl -X POST https://api.dataorigin.es/availability \
-H "X-API-Token: <token>" \
-H "Content-Type: application/json" \
-d '{}' Response
{
"credits_available": 12.5,
"customer_id": "…",
"date": "2026-06-01T10:00:00+02:00",
"is_subscription_active": true,
"plan_mode_title": "Subscription",
"status": "200 OK",
"subscription_end": "2027-01-01T00:00:00+01:00",
"subscription_init": "2026-01-01T00:00:00+01:00",
"subscription_type": "yearly",
"tokens_companies": 0,
"tokens_events": 0
} Authentication
Send the token in the X-API-Token header of every request. You can revoke it in the app at any time and the API stops accepting it.
Conventions
- Every endpoint is a POST with a JSON body on the base URL https://api.dataorigin.es.
- An error can arrive as an HTTP code or as HTTP 200 with the outcome in the status field of the body, for example "400 Bad Request" on /get_events, /buy_events and /buy_companies. A client must therefore check both the HTTP code and the status field.
- The HTTP error codes are 401 (missing or invalid token), 403 (blocked account or no access), 429 (over the limit) and 400 on some endpoints, such as /get_companies.
- The default limit is 60 requests per minute per IP and endpoint, and a few endpoints have a lower one. There is also a limit of 300 per minute per account.
- Pagination uses limit, offset and offset_next. For the next page, send the value of offset_next as offset.
- On /get_events the page size is 16 fairs by default and 100 at most. On /get_companies it is 100 companies by default and the maximum is 1000 inside a fair and 50 in a search across all fairs.
- Country filters use ISO-2 codes, such as ES or FR.
- /buy_events and /buy_companies ask for the confirm field set to true only when the operation really charges. A fair that is free, already unlocked or included in the subscription does not ask. Without confirm, the answer has status "400 Bad Request" and the field cost, and nothing is charged.