# Buscar empresas

Source: https://won.dev/es/docs/enrich/companies-search

`POST https://api.won.dev/v1/enrich/companies/search`

Lista las empresas que encajan con un perfil: una industria, dónde está la sede, cuántas personas trabajan ahí y el software con el que funciona su sitio web. Devuelve el nombre y el sitio web de cada empresa, primero las empresas de las que conocemos a más personas, con `total` para el tamaño del mercado. Cuesta USD 0.002 por cada empresa devuelta; si no hay ninguna es gratis. Se revisa que cada sitio web sea el propio de una empresa: los marketplaces, las redes sociales y los proveedores de correo quedan fuera, así que una página puede tener menos de `limit`. Para encontrar importadores o exportadores de un producto, usa en su lugar `POST /trade/companies/search`, que lee registros aduaneros. Siguiente paso: `POST /enrich/companies/find` para el perfil de una empresa, `POST /enrich/people/search` para su gente y `POST /enrich/companies/website/read` para los contactos que da su sitio web.

- **Cobro:** `company_listing` USD 0.002: Una empresa en una búsqueda de empresas: su nombre y su sitio web.
- **Modo:** `proxy` ([qué significa cada modo](/es/docs/trade#modes))

Una clave de prueba (`won_test_...`) responde esta solicitud con la misma empresa y las mismas personas de muestra, sin costo.

## Parámetros [#parameters]

Los parámetros van en el cuerpo JSON. Las solicitudes `POST` también aceptan el encabezado `Idempotency-Key`; consulta [Idempotencia](/es/docs/idempotency).

| Parámetro | Tipo | Obligatorio | Descripción (texto original de la API) |
| --- | --- | --- | --- |
| `industry` | string[] | no | Industries, in your words or by name: `furniture` stands for every industry with that word (its makers, wholesalers and retailers), a full name such as `Furniture and Home Furnishings Manufacturing` for that one alone. Names are LinkedIn's. Up to 5; `query.industry` says which names were searched. |
| `country` | string[] | no | Where the headquarters are: ISO codes such as `DE`, or English names. Up to 10. |
| `size` | (`1-10` \| `11-50` \| `51-200` \| `201-500` \| `501-1000` \| `1001-5000` \| `5001-10000` \| `10001+`)[] | no | How many people work there, as the company states it: any of `1-10`, `11-50`, `51-200`, `201-500`, `501-1000`, `1001-5000`, `5001-10000`, `10001+`. |
| `technology` | string[] | no | Software the company's website runs, such as `Shopify`, `WooCommerce` or `HubSpot`: companies with any of them. Up to 10. Give it with an `industry` or a `size`. |
| `exclude_domains` | string[] | no | Websites to leave out, such as the companies already in your CRM. Up to 100. |
| `limit` | integer | no | How many results to return, 1 to 100. You pay for the results returned. Default: `25`. |
| `cursor` | string | no | To get the next page, pass `next_cursor` of the previous response back unchanged, with the same parameters. |
| `max_cost` | number | no | Spending cap for this call in US dollars. If the call could cost more, it fails with `budget_exceeded` before anything is charged. |
| `dry_run` | boolean | no | If true, only return the maximum cost of this call. Nothing runs, nothing is charged. Default: `false`. |

## Respuesta [#response]

Con `dry_run: true` no se ejecuta nada y `data` trae solo lo máximo que puede costar la llamada; consulta [Simulaciones](/es/docs/responses#dry-run). Los errores se describen en [Errores](/es/docs/errors).

| Campo | Tipo | Descripción (texto original de la API) |
| --- | --- | --- |
| `data` | object[] | The companies of this page. |
| `data[].name` | string | Company name. |
| `data[].domain` | string | Its website, such as `example.com`. Pass it as `domain` to the company and people endpoints. |
| `total` | integer | How many companies match in all. Use it to size a market, or to decide between paging on and narrowing the search. |
| `has_more` | boolean | Whether more companies follow this page. |
| `next_cursor` | string \| null | Pass it as `cursor` to get the next page. Null on the last page. |
| `query` | object | The request as it was understood: country names as codes, the default dates filled in. |
| `notice` | string \| null | A plain sentence when there is something to know about this result: why a part is missing, or what to try next. Null otherwise. |
| `usage` | object | What this call was charged, and the balance left. |
| `usage.unit` | `person_record` \| `person_profile` \| `person_email` \| `person_phone` \| `email_verification` \| `company_listing` \| `company_record` \| `company_channels` \| `company_technologies` \| `company_funding` \| `company_news` \| `company_lookalikes` \| `job_posting` | What is counted. |
| `usage.records` | integer | How many were returned and charged. |
| `usage.already_paid` | integer | How many more were returned for free, because this organization paid for them in the last 30 days. |
| `usage.cost` | number | What this call cost, in US dollars. |
| `usage.balance` | number | The balance left after this call, in US dollars. |
| `usage.replayed` | boolean | True when this is a repeat of a request from the last 24 hours. Repeats are free. |

## Ejemplo [#example]

```bash
curl https://api.won.dev/v1/enrich/companies/search \
  -H "Authorization: Bearer $WON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "industry": [
    "furniture"
  ],
  "country": [
    "US"
  ],
  "size": [
    "51-200",
    "201-500"
  ],
  "limit": 3
}'
```

```json
{
  "data": [
    {
      "name": "SAMPLE Northfield Home Furnishings",
      "domain": "northfield-home.example"
    },
    {
      "name": "SAMPLE Harborside Seating Co",
      "domain": "harborside-seating.example"
    },
    {
      "name": "SAMPLE Pine & Loom Interiors",
      "domain": "pineandloom.example"
    }
  ],
  "total": 1874,
  "has_more": true,
  "next_cursor": "cur_Qm4tR2x9LpZ0aWl1Lm1xNHo",
  "query": {
    "industry": [
      "Furniture",
      "Furniture and Home Furnishings Manufacturing",
      "Household and Institutional Furniture Manufacturing",
      "Office Furniture and Fixtures Manufacturing",
      "Retail Furniture and Home Furnishings",
      "Reupholstery and Furniture Repair",
      "Wholesale Furniture and Home Furnishings"
    ],
    "country": [
      "US"
    ],
    "size": [
      "51-200",
      "201-500"
    ],
    "limit": 3
  },
  "notice": null,
  "usage": {
    "unit": "company_listing",
    "records": 3,
    "already_paid": 0,
    "cost": 0.006,
    "balance": 48.994,
    "replayed": false
  }
}
```