# Contribuinte — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Access data from contribuinte.pt.

**Category:** Business Directories | **Website:** [contribuinte.pt/](https://contribuinte.pt/) | **Docs:** [parse.bot/marketplace/70878842-fdc5-4537-ae60-ec0cf92c2dd7/contribuinte-pt-api](https://parse.bot/marketplace/70878842-fdc5-4537-ae60-ec0cf92c2dd7/contribuinte-pt-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-contribuinte-pt-api-70878842/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_company

Retrieve detailed information for a single Portuguese company by its 9-digit NIF. Returns company name, registration status, address, last-updated date, and CAE economic activity codes when available.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `nif` | string | Yes | 9-digit Portuguese tax identification number (NIF/NIPC), e.g. 505134730. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-contribuinte-pt-api-70878842/get_company \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"nif":"<string>"}'
```

### search_companies

Full-text search over Portuguese companies by name or NIF. Returns all matching companies with their NIF and registered name. Results are returned in a single page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Company name or NIF to search for. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-contribuinte-pt-api-70878842/search_companies \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```
