Skip to main content
GET

Prerequisites

You need an active API key, available rate-limit capacity, and one credit from your included allowance or purchased balance. Search your company directory by name or NIF. Each admitted request consumes one credit.

Query parameter

string
required
Company name or NIF. You must supply a non-empty value after trimming leading and trailing whitespace.

Name matching

Your name query is normalized to lowercase, with accents removed, punctuation replaced by spaces, repeated whitespace collapsed, and common trailing legal suffixes such as Lda or SA removed. You receive companies whose normalized legal name begins with your normalized query, with exact matches first and remaining matches ordered by legal name. You receive at most 20 results. There is no pagination or total count. Use a more specific prefix to narrow a broad search. You search legal names, not addresses or activity codes.

NIF matching

If your query contains nine digits, optionally separated by spaces, hyphens, or periods, it is treated as a NIF and matched exactly. You do not receive NIF checksum validation on this endpoint; use Get a company for a validated company lookup. A NIF with no directory entry returns an empty array. A missing search entry does not prevent you from trying a direct company lookup.

Response

You receive 200 OK with this envelope:
object[]
required
Zero to 20 company directory matches. No matches are represented by [].
null
required
Always null on success. Failures use a separate problem response.
Each object in data has these fields: Use the NIF with Get a company when you need address, status, activity, or legal structure details.

Errors

You receive 400 validation if q is missing or whitespace-only, or 500 search-failed if the directory search fails. Authentication and quota failures are described in Errors.