search_companies
Find Spanish companies by name and return ranked company cards (slug, status, province). Use it first when the user gives a company name, then company_history with the slug.
Matches current names, former names and name variants, ignoring accents,
case, punctuation and the legal form. Each card's match is exact, prefix,
contains or fuzzy (only when nothing else matched: a lead, not an
identification; say so); matched_on says which name matched. Ranked by
match, then active companies first, then the newest act.
Plans: the free plan's events cover 7 days, but this search is not limited
by history. Without a key a search shows 5 cards and hidden_by_plan counts
the rest (matches_beyond_limit, a lower bound when matches_is_at_least):
relay its note. The NIF is on the card from the basic plan up: send your
key in the X-API-Key header. An empty answer is not proof that a business
does not exist; relay the response's note in the user's language.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Company name or part of it, at least 3 letters or digits; accents, case, punctuation and legal form are ignored. | |
| limit | No | Cards per page, 1-50 (default 10). | |
| offset | No | Cards to skip. At most 200 cards are ranked; truncated true means more candidates existed, so add another word from the name. | |
| status | No | One of active, dissolved, extinct, sheet_closed; applied like province. | |
| province | No | The company's province, accent-insensitive, e.g. MADRID, VIZCAYA, or an autonomous community for all of its provinces, e.g. Catalonia; several values can be separated by commas, e.g. BIZKAIA,GIPUZKOA. Applied to the candidates the search reads (2,000 with a filter), so a broad name can return fewer companies than match it. |