# PagineGialle Italian business directory

> Free-text search the way the site's search box does it (what + where). The source publishes an exact total up to 200 and 'più di 200' above it; it serves 8 pages of 25. Cards carry the published phone numbers; email and P.IVA come from profile.
> ReefAPI engine `paginegialle` · 6 endpoints · clean JSON, no scraping or browsers to manage.

## How to call
- **Endpoint:** `POST https://api.reefapi.com/paginegialle/v1/<action>` with a JSON body.
- **Auth:** header `x-api-key: <YOUR_REEFAPI_KEY>` — create one free (1,000 credits, no card): https://reefapi.com/signup
- **Response (every call):** `{ ok: boolean, data: ..., meta: { record_count, credits, ... }, error: { code, message } }` — branch on `ok`. Failed calls are free.
- **One key + one shared credit pool** across every ReefAPI API. Per-call credits are listed on each endpoint below.
- **Use it from an AI agent (MCP):** connect `https://api.reefapi.com/mcp` (remote streamable-http). Clients that add connectors by URL, such as ChatGPT and the Claude app, connect with OAuth 2.1 (the user pastes their key once on a ReefAPI page; discovery at `/.well-known/oauth-protected-resource/mcp`). Config files send the key as `Authorization: Bearer <key>`. `?key=<key>` in the URL also works as a last-resort fallback.

## Endpoints

### POST https://api.reefapi.com/paginegialle/v1/search — 1 credit
Free-text search the way the site's search box does it (what + where). The source publishes an exact total up to 200 and 'più di 200' above it; it serves 8 pages of 25. Cards carry the published phone numbers; email and P.IVA come from profile.

**Parameters:**
- `query` (string, required) — What: a trade, category or free text, e.g. idraulico.
- `location` (string, required) — Where: an Italian town or city.
- `page` (integer, optional, default 1) — Results page 1-8 (25 cards each). Past 200 results split the search by town or use listing.

**Example request body:**
```json
{
  "query": "idraulico",
  "location": "Milano"
}
```

### POST https://api.reefapi.com/paginegialle/v1/listing — 1 credit
Category listing of one town or region (the site's /<region>/<town>/<category>.html pages, found with browse). Every card carries the source's structured data: email when published, phones in international format, address and coordinates. The source shows up to 7 pages of 30 (about 210 cards) per listing.

**Parameters:**
- `path` (string, required) — Listing path from browse, e.g. lombardia/rho/materiali_idraulici, or its full URL.
- `page` (integer, optional, default 1) — Results page 1-20 (30 cards each).

**Example request body:**
```json
{
  "path": "lombardia/rho/materiali_idraulici"
}
```

### POST https://api.reefapi.com/paginegialle/v1/lookup — 2 credits
Find a business by name and town (e.g. a Google Maps record). With phone, the site's own number search is tried first. Then the name as given and, if nothing matches, its distinctive words (trade words, legal form and the town dropped). Returns the cards with a name score and match reason and, by default, the best match's full profile.

**Parameters:**
- `name` (string, required) — Business name as written elsewhere.
- `city` (string, required) — Town or city.
- `phone` (string, optional) — Optional phone number of the business in any format (e.g. from Maps); a card with the same number matches regardless of name.
- `include_profile` (boolean, optional, default true) — Read the best match's profile too (email, P.IVA, website). Default true.
- `min_score` (number, optional, default 0.8) — Lowest name score counted as a match, 0-1. Default 0.8.

**Example request body:**
```json
{
  "name": "Sport Car Cambi Automatici",
  "city": "Milano"
}
```

### POST https://api.reefapi.com/paginegialle/v1/profile — 1 credit
One business profile: name, legal name, P.IVA, codice fiscale, phones, email, website, address, coordinates, categories, hours.

**Parameters:**
- `id` (string, required) — Profile path or URL from search, listing, lookup or sitemap.

**Example request body:**
```json
{
  "id": "sport-car-snc-milano"
}
```

### POST https://api.reefapi.com/paginegialle/v1/browse — 1 credit
The site's place and category index pages: regions, towns of a region, category listings of a town. Leads to listing paths.

**Parameters:**
- `path` (string, optional) — Empty = regions; categorie = national categories; a region (lombardia); region/town (lombardia/rho); or a place path browse returned (lombardia/rho/categorie = all searches of a town).

**Example request body:**
```json
{
  "path": "lombardia/rho"
}
```

### POST https://api.reefapi.com/paginegialle/v1/sitemap — 1 credit
The published business sitemaps: without file, the index of sitemap files; with file, the profile URLs it lists (about 1,961 per file).

**Parameters:**
- `file` (string, optional) — Sitemap file name or URL from the index, e.g. sitemap_schedeazienda_0.xml.gz.
- `offset` (integer, optional, default 0) — Skip this many URLs of the file.
- `limit` (integer, optional, default 10000) — URLs to return, up to 10000.

**Example request body:**
```json
{
  "file": "sitemap_schedeazienda_0.xml.gz"
}
```

## At scale
- **Volume:** 5M+ requests a day, measured at 60 requests a second across the fleet with no
  central bottleneck. Per-key limits are raised for high-volume accounts; volume pricing on request.
- **Missing a source:** tell us a site we do not cover and it becomes an engine. A customer asked
  for bestprice.gr on 21 Sep 2026 and it was in the catalog on 22 Sep.
- **Support:** 2 minute median time from a question in the live chat to the first answer. Setup
  help included, no support tier to buy.
- **One key, one credit pool** across every API. No per-site plans, no separate subscriptions.

## More
- Try it live, no code: https://reefapi.com/playground?engine=paginegialle
- Human docs page: https://reefapi.com/docs/paginegialle
- Overview page: https://reefapi.com/paginegialle-api
- Every ReefAPI API in one file (for your AI): https://reefapi.com/llms-full.txt
