Bring the exhibiting companies of a trade show into your CRM with the API
This guide loads the exhibiting companies of a trade show into your CRM with the DataOrigin API. You follow five steps and a pagination loop. The examples use cURL and Python, and the responses are the ones in the reference of each endpoint.
1. Create the token and test the connection
Create a token in the app, at dataorigin.es/app/settings/api-docs. Send it in the X-API-Token header of every request.
Check your credits with /availability. It is free and confirms that the token works.
curl -X POST https://api.dataorigin.es/availability \
-H "X-API-Token: <token>" \
-H "Content-Type: application/json" The response includes credits_available and is_subscription_active.
2. Find the trade show
Search for the trade show with /get_events. Countries go as ISO-2 codes, such as ES, and country names find nothing.
{
"query": "food",
"country": ["ES"],
"date_from": "2026-11-23",
"limit": 2
} Each trade show in the response includes event_id, event_name, start_date, city, country, exhibitor_count, blocked and price. Keep the event_id of your trade show.
If you already know the trade show name from the web, use /event_status with its normalized_event_name. It returns the event_id and has_access, which tells you whether your account can open its companies.
{
"normalized_event_name": "fleet-services-management-summit-2026"
} 3. Check the cost and unlock the trade show
You can only read the companies of a trade show if your account has access. Unlocking the trade show is free with an active subscription or if you already unlocked it. Otherwise it spends credits.
Call /buy_events first without confirm. It charges nothing and answers with the cost.
{
"event_id": "60b984b1-b68a-4de3-a745-ee00f3db7bcd"
} {
"status": "400 Bad Request",
"message": "Se requiere confirmacion explicita: enviar confirm=true tras informar al usuario del coste",
"cost": 1
} The status 400 with the cost field is the cost notice and charges nothing. If you accept it, repeat the call with confirm set to true.
{
"event_id": "60b984b1-b68a-4de3-a745-ee00f3db7bcd",
"confirm": true
} The contacts of the companies of an unlocked trade show already come in the read of the next step. To unlock a company that is not in an unlocked trade show, use /buy_companies with the event_id of a trade show it takes part in. It costs 0.5 credits per company, opens it in that trade show only and also asks for confirm.
4. Read the companies page by page
Request the companies with /get_companies, with source set to by_event. You can add filters, for example country_business with ISO-2 codes.
{
"source": "by_event",
"event_id": "60b984b1-b68a-4de3-a745-ee00f3db7bcd",
"country_business": ["ES"],
"limit": 2
} The response includes the companies list and the offset_next field. For the next page, send that value as offset. Inside a trade show the maximum is 1000 companies per page, and errors arrive as an HTTP code. This loop reads all the pages.
import requests
URL = "https://api.dataorigin.es/get_companies"
HEADERS = {"X-API-Token": "<token>"}
body = {"source": "by_event", "event_id": "60b984b1-b68a-4de3-a745-ee00f3db7bcd", "limit": 100}
companies = []
while True:
response = requests.post(URL, headers=HEADERS, json=body)
response.raise_for_status()
data = response.json()
page = data.get("companies", [])
if not page: break
companies += page
if not data.get("offset_next"): break
body["offset"] = data["offset_next"] Each company includes company_id, name_business, country_code_business, city_business, industry_business, employees_range, linkedin_business, main_email_business and main_phone_business. The agents list holds the representatives of the company, with name, role, email, phone and LinkedIn.
5. Load the companies into your CRM
Turn each company into a record of your CRM. Use company_id as the external key, so a second load updates the records and does not duplicate them.
def to_crm_record(company):
return {
"external_id": company["company_id"],
"name": company.get("name_business"),
"country": company.get("country_code_business"),
"city": company.get("city_business"),
"industry": company.get("industry_business"),
"employees": company.get("employees_range"),
"linkedin": company.get("linkedin_business"),
"email": company.get("main_email_business"),
"phone": company.get("main_phone_business"),
"representatives": [
{"name": agent.get("name"), "role": agent.get("role"), "email": agent.get("email"), "phone": agent.get("phone"), "linkedin": agent.get("linkedin")}
for agent in company.get("agents", [])
],
}
records = [to_crm_record(company) for company in companies] Send the records with the API of your CRM, in batches if your CRM supports them. When the trade show or the filter changes, repeat step 4 and load again.