---
title: "Companies of a fair or search by name | DataOrigin API"
description: "With source by_event and an event_id, the companies of that fair (needs access to the fair). With source companies and a query of 2 characters or more, a search across every company. Errors arrive as an HTTP code."
canonical: https://dataorigin.es/en/docs/api/get-companies/
lang: en
site: https://dataorigin.es
llms: https://dataorigin.es/llms.txt
---
[Documentation](https://dataorigin.es/en/docs/)[API Reference](https://dataorigin.es/en/docs/api/)[MCP](https://dataorigin.es/en/docs/mcp/)

[Introduction](https://dataorigin.es/en/docs/api/)

Account

[Credits and subscription POST](https://dataorigin.es/en/docs/api/availability/) [Payments POST](https://dataorigin.es/en/docs/api/get-billing/) [Fairs unlocked POST](https://dataorigin.es/en/docs/api/usage-events/) [Company contacts unlocked POST](https://dataorigin.es/en/docs/api/usage-companies/) [Ideal customer profile POST](https://dataorigin.es/en/docs/api/get-target-profile/)

Fairs

[Search fairs POST](https://dataorigin.es/en/docs/api/get-events/) [Find a fair by its name POST](https://dataorigin.es/en/docs/api/event-status/) [Fair details POST](https://dataorigin.es/en/docs/api/get-event-info/) [Filter values for fairs POST](https://dataorigin.es/en/docs/api/get-events-filters/)

Companies

[Companies of a fair or search by name POST](https://dataorigin.es/en/docs/api/get-companies/) [Company card POST](https://dataorigin.es/en/docs/api/get-company-by-normalized-name/) [Filter values for companies POST](https://dataorigin.es/en/docs/api/get-companies-filters/)

Saved

[Saved filters POST](https://dataorigin.es/en/docs/api/get-bookmarked-filters/) [Save a filter POST](https://dataorigin.es/en/docs/api/add-bookmarked-filters/) [Change a saved filter POST](https://dataorigin.es/en/docs/api/update-bookmarked-filters/) [Save a fair or a company POST](https://dataorigin.es/en/docs/api/add-bookmarked/)

Credits

[Unlock a fair POST](https://dataorigin.es/en/docs/api/buy-events/) [Unlock a company's contacts POST](https://dataorigin.es/en/docs/api/buy-companies/)

Documentation menu

[Introduction](https://dataorigin.es/en/docs/api/)

Account

[Credits and subscription POST](https://dataorigin.es/en/docs/api/availability/) [Payments POST](https://dataorigin.es/en/docs/api/get-billing/) [Fairs unlocked POST](https://dataorigin.es/en/docs/api/usage-events/) [Company contacts unlocked POST](https://dataorigin.es/en/docs/api/usage-companies/) [Ideal customer profile POST](https://dataorigin.es/en/docs/api/get-target-profile/)

Fairs

[Search fairs POST](https://dataorigin.es/en/docs/api/get-events/) [Find a fair by its name POST](https://dataorigin.es/en/docs/api/event-status/) [Fair details POST](https://dataorigin.es/en/docs/api/get-event-info/) [Filter values for fairs POST](https://dataorigin.es/en/docs/api/get-events-filters/)

Companies

[Companies of a fair or search by name POST](https://dataorigin.es/en/docs/api/get-companies/) [Company card POST](https://dataorigin.es/en/docs/api/get-company-by-normalized-name/) [Filter values for companies POST](https://dataorigin.es/en/docs/api/get-companies-filters/)

Saved

[Saved filters POST](https://dataorigin.es/en/docs/api/get-bookmarked-filters/) [Save a filter POST](https://dataorigin.es/en/docs/api/add-bookmarked-filters/) [Change a saved filter POST](https://dataorigin.es/en/docs/api/update-bookmarked-filters/) [Save a fair or a company POST](https://dataorigin.es/en/docs/api/add-bookmarked/)

Credits

[Unlock a fair POST](https://dataorigin.es/en/docs/api/buy-events/) [Unlock a company's contacts POST](https://dataorigin.es/en/docs/api/buy-companies/)

# Companies of a fair or search by name

With source by\_event and an event\_id, the companies of that fair (needs access to the fair). With source companies and a query of 2 characters or more, a search across every company. Errors arrive as an HTTP code.

POST `/get_companies`

## Parameters

-   `query` string

    Free text on the company name or description

-   `event_id` string

    List the companies of this fair (id from /get\_events)

-   `company_id` string

    Return this one company as a listing row

-   `type` array of string

    Only companies with this role at the fair. Exact values: Exhibitor, Attendee, Partner, Speaker

-   `country_business` array of string

    ISO-2 country codes, for example \["ES", "FR"\]. Country names find nothing

-   `city_business` array of string

-   `region` array of string

-   `industry_business` array of string

-   `categories_business` array of string

-   `employees_business` array of string

    Size ranges from /get\_companies\_filters

-   `funding_stage_business` array of string

-   `founded_year_from` array of integer,string

-   `founded_year_to` array of integer,string

-   `linkedin_business` array of string

    \["yes"\] = only companies with a LinkedIn page

-   `web_business` array of string

-   `email_business` array of string

-   `language` string

    Language of labels and descriptions (default es)

-   `limit` integer

    Companies per page (default 100; maximum 1000 inside a fair and 50 in a search across all fairs)

-   `offset` integer

    Companies to skip. For the next page send the offset\_next of the previous answer

-   `source` string

    companies (default): search by query. by\_event: the companies of event\_id. bookmarked: the companies the account saved


[PreviousFilter values for fairs](https://dataorigin.es/en/docs/api/get-events-filters/) [NextCompany card](https://dataorigin.es/en/docs/api/get-company-by-normalized-name/)

Request (cURL)

```
curl -X POST https://api.dataorigin.es/get_companies \
  -H "X-API-Token: <token>" \
  -H "Content-Type: application/json" \
  -d '{"source":"by_event","event_id":"60b984b1-b68a-4de3-a745-ee00f3db7bcd","country_business":["ES"],"limit":2}'
```

Response

```
{
  "can_view_attendee_linkedin": true,
  "can_view_attendee_phone": true,
  "can_view_attendees": true,
  "can_view_column_permission": false,
  "companies": [
    {
      "agent_business": [
        {
          "email": "…",
          "linkedin": null,
          "name": "…",
          "phone": null,
          "role": null
        }
      ],
      "agent_name": [
        "…"
      ],
      "agents": [
        {
          "app_profile": "…",
          "app_profiles": [
            {
              "type": "…",
              "url": "…"
            }
          ],
          "email": null,
          "id": "…",
          "linkedin": null,
          "name": "…",
          "phone": null,
          "role": "…"
        }
      ],
      "bookmarked": false,
      "categories_business": [
        "Equipment"
      ],
      "city_business": "Madrid",
      "city_population": 3506730,
      "company_id": "0b83ac9e-b25c-4713-941b-741f503e6eaf",
      "contact_points": [
        {
          "confidence": null,
          "country": null,
          "is_primary": true,
          "kind": "…",
          "line_type": null,
          "prefix": null,
          "source": "…",
          "status": "…",
          "value": "…"
        }
      ],
      "contacts_business": [],
      "country_business": "Spain",
      "country_code_business": "ES",
      "email_agent": [],
      "email_business": [
        "…"
      ],
      "employees_range": "51 – 200",
      "enriched_agents": [],
      "events_assistants_id": "88553d7f-1a28-4a04-acfc-6998a54bc952",
      "events_id": "60b984b1-b68a-4de3-a745-ee00f3db7bcd",
      "executive_team": [],
      "founded_year_business": 2008,
      "funding_stage_business": null,
      "gov_entity_id": null,
      "gov_level": null,
      "gov_name": null,
      "gov_population": null,
      "image_business": "https://img.dataorigin.es/logos/0b83ac9e-b25c-4713-941b-741f503e6eaf-abc25097.webp",
      "industry_business": [
        "Industrial"
      ],
      "info_business": {
        "address_business": null,
        "cif_business": null,
        "cnae": null,
        "commercial_register": null,
        "employees_range": "51 – 200",
        "founded_year_business": 2008,
        "last_deposit_of_account": null,
        "legal_form": null,
        "legal_name_business": null,
        "revenue_range": null,
        "social_capital": null
      },
      "is_government": false,
      "legal_representatives": [],
      "linkedin_agent": [],
      "linkedin_business": "…",
      "main_email_business": "…",
      "main_phone_business": "…",
      "name_business": "Afp",
      "normalized_name_business": "afp",
      "org_type": "private_company",
      "phone_agent": [],
      "phone_business": [
        "…"
      ],
      "products": []
    }
  ],
  "fit_enabled": false,
  "limit": 2,
  "offset_next": "2",
  "offset_previous": null,
  "page": 1,
  "status": "200 OK",
  "total_results": 3,
  "total_results_query": 2
}
```
