# Einforma — 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.

> Search for companies, self-employed individuals, and executives across Spain's business directory, then access detailed company profiles including financial and operational information. Perfect for business research, lead generation, and competitive intelligence.

**Category:** Business Directories | **Website:** [einforma.com/](https://einforma.com/) | **Docs:** [parse.bot/marketplace/6e86ba13-dcc9-4153-a981-0fc11f0e771f/einforma-com-api](https://parse.bot/marketplace/6e86ba13-dcc9-4153-a981-0fc11f0e771f/einforma-com-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-einforma-com-api-6e86ba13/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_company_detail

Fetch a company's public detail by its unique ID. Returns flattened company identification (name, NIF, DUNS, address, phones, webs), constitution date, legal form, CNAE activity, employee count, sales size, situation, and branch count. The company ID is obtained from search_companies results[*].id.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `company_id` | string | Yes | The unique company ID (e.g. 'kLfOC5ZktKdR5Ub9ALlHug'), obtainable from search_companies results[*].id. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-einforma-com-api-6e86ba13/get_company_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"company_id":"<string>"}'
```

### search_autonomos

Search for self-employed individuals (autónomos) by name or NIF. Returns paginated results with offset-based pagination via start/rows.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search term (name or NIF of the autónomo). |
| `rows` | integer | No | Number of results per page. |
| `start` | integer | No | Starting offset for pagination. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-einforma-com-api-6e86ba13/search_autonomos \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>","rows":"<integer>","start":"<integer>"}'
```

### search_companies

Full-text search over Spanish companies (empresas) by name, NIF/CIF, or DUNS number. Returns paginated results with facets for filtering by province, sector, legal form, and denomination type. Pagination is offset-based via start/rows.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `filters` | string | No | JSON object string containing filters. Keys include codProvinci (province code, e.g. '{"codProvinci": "(28)"}' for Madrid). |
| `query` | string | Yes | Search term (company name, NIF, or DUNS number). |
| `rows` | integer | No | Number of results per page. |
| `start` | integer | No | Starting offset for pagination. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-einforma-com-api-6e86ba13/search_companies \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"filters":"<string>","query":"<string>","rows":"<integer>","start":"<integer>"}'
```

### search_executives

Search for company executives and directors (administradores) by name. Returns paginated results showing the executive name and the number of companies they administer. Offset-based pagination via start/rows.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Executive name to search for. |
| `rows` | integer | No | Number of results per page. |
| `start` | integer | No | Starting offset for pagination. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-einforma-com-api-6e86ba13/search_executives \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>","rows":"<integer>","start":"<integer>"}'
```
