# API Recherche d'entreprises (annuaire-entreprises.data.gouv.fr) · Search near point

Find companies, people and contact details with API Recherche d'entreprises (annuaire-entreprises.data.gouv.fr) · Search near point from Alexandria through one Spiral API key. Local market mapping: which companies operate establishments around an address or coordinates, e.g. restaurant companies (56.10A) within 1 km of a site, or groups whose head-office activity (70.10Z) has offices in a business district. It runs in the background and returns structured JSON. Pay as you go, with no subscription.

- Provider: Alexandria
- Category: Lead Gen
- Runs: In the background
- Returns: json
- Tool id: `alexandria` / `recherche-entreprises-api-gouv-fr/companies/search_near_point`
- Page: https://spiral.ai/tools/alexandria/recherche-entreprises-api-gouv-fr/companies/search_near_point

## Pricing

$0.00873 per call.

## Limits

- Longest queue wait: 1 hour
- Run deadline: 5 minutes
- Longest run, end to end: 225 minutes
- Largest inline input: 1 MB
- Largest input file: 2 GB
- Largest output: 5 GB

## Input

| Field | Kind | Allowed | Default | Description |
| --- | --- | --- | --- | --- |
| `lat` (required) | number | -90 to 90 | — | Latitude (WGS84) of the centre point. |
| `long` (required) | number | -180 to 180 | — | Longitude (WGS84) of the centre point. |
| `page` | number | 1 to 1000 | 1 | Page number (1-based). Pass `next_page` from the previous answer. page * per_page may not exceed 10,000. |
| `per_page` | number | 1 to 25 | 10 | Results per page, 1-25 (API cap). |
| `naf_codes` | list |  | — | Main activity of the legal unit, NAF rév. 2 / APE codes such as 70.10Z (7010Z accepted); any of them matches. The API applies it to the unit, not to the establishment in the radius (each matching establishment reports its own naf_code). |
| `radius_km` | number | 0.001 to 50 | 5 | Search radius in km, up to 50. |
| `naf_sections` | list |  | — | NAF sections of the main activity: A agriculture, B mining, C manufacturing, D energy, E water/waste, F construction, G wholesale/retail trade, H transport, I accommodation/food, J information/communication, K finance/insurance, L real estate, M professional/scientific/technical (incl. head offices 70.10Z), N administrative support, O public administration, P education, Q health/social, R arts/recreation, S other services, T households, U extraterritorial. |
| `sort_by_size` | true or false |  | — | true: order by company size (number of establishments) instead of relevance. |

## Example

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "recherche-entreprises-api-gouv-fr/companies/search_near_point",
    "input": {
      "lat": -90,
      "long": -180
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=alexandria&model=recherche-entreprises-api-gouv-fr%2Fcompanies%2Fsearch_near_point

## Common questions

### API Recherche d'entreprises (annuaire-entreprises.data.gouv.fr) · Search near point

**How much does API Recherche d'entreprises (annuaire-entreprises.data.gouv.fr) · Search near point cost?**

$0.00873 per call. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

**How do I use API Recherche d'entreprises (annuaire-entreprises.data.gouv.fr) · Search near point through an API?**

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "recherche-entreprises-api-gouv-fr/companies/search_near_point"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

**Do I need an account with Alexandria to use API Recherche d'entreprises (annuaire-entreprises.data.gouv.fr) · Search near point?**

No. Spiral runs it on its own Alexandria account and charges your Spiral balance.

**Can my AI agent use API Recherche d'entreprises (annuaire-entreprises.data.gouv.fr) · Search near point?**

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.

