# 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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/einforma/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## 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/credits/einforma/get-company-detail \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/einforma/search-autonomos \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/einforma/search-companies \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/einforma/search-executives \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>","rows":"<integer>","start":"<integer>"}'
```

## Next steps

- [All wrapped API providers](https://paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://paywithlocus.com/agent/index.md): every Locus agent page.