> Documentation index: https://docs.scrapier.io/llms.txt
> Auth: header `X-API-Key: <key>` · Base: https://api.scrapier.io/api/v2 · Synchronous; paginate with `cursor` ← `data.next_cursor`.

# Industry Email Scraper

Structured Utilities data: send `queries` and `location`. Cursor-paginated, 2 credits per successful call.

`GET|POST https://api.scrapier.io/api/v2/industry-email/` · 2 credits per successful call · Cursor-paginated

## Overview

Call `GET /api/v2/industry-email/` with `queries` and `location`. The results are in `data.places`; send `data.next_cursor` back as `cursor` to get the next page. 14 optional parameters refine the call (see Parameters).

## Request

```bash
curl -G "https://api.scrapier.io/api/v2/industry-email/" \
  -H "X-API-Key: YOUR_API_KEY" \
  --data-urlencode "queries=dentist" \
  --data-urlencode "location=Houston, TX" \
  --max-time 210
```

```python
import requests

resp = requests.get(
    "https://api.scrapier.io/api/v2/industry-email/",
    headers={"X-API-Key": "YOUR_API_KEY"},
    params={"queries": "dentist", "location": "Houston, TX"},
    timeout=210,
)
body = resp.json()
if not resp.ok:
    raise RuntimeError(body.get("error") or body.get("detail"))

print(body["data"]["places"])
```

POST with a JSON body works too (same parameters; the body is merged over the query string).

## Parameters

| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| `X-API-Key` (header) | string | yes | — | Your API key. |
| `queries` | string | yes | e.g. `dentist` | Business type / search term. Required first call. |
| `cursor` | string | no | — | Pagination cursor returned in the previous response's `next_cursor`. Pass it back unchanged to fetch the next page. When `next_cursor` is null, you have reached the last page. |
| `location` | string | yes | e.g. `Houston, TX` | Place name or "lat,lng". Required first call. Locked in cursor. |
| `scrape_leads` | boolean | no | `true` | Crawl websites for leads. Locked in cursor. |
| `fetch_review_count` | boolean | no | `true` | Fill total_reviews. Locked in cursor. |
| `max_pages_per_site` | integer | no | `4` | Website pages per business. Locked in cursor. |
| `only_with_website` | boolean | no | `false` | Locked in cursor. |
| `only_with_email` | boolean | no | `false` | Locked in cursor. |
| `min_rating` | string | no | — | Locked in cursor. |
| `min_reviews` | integer | no | — | Locked in cursor. |
| `tag_filter` | string | no | — | Comma-separated category words. Locked in cursor. |
| `in_area_only` | boolean | no | `false` | Locked in cursor. |
| `language` | string | no | `en` | Locked in cursor. |
| `include_all_emails` | boolean | no | `false` | Locked in cursor. |
| `include_all_phones` | boolean | no | `false` | Locked in cursor. |
| `include_crawl_info` | boolean | no | `false` | Locked in cursor. |
| `use_proxy` | boolean | no | `true` | Route the request through Scrapier's residential proxy pool. Default: `true`. Leave as is unless support tells you otherwise. |
| `raw_data` | boolean | no | `false` | When true, the response carries the full raw upstream payload(s) the scraper received (GraphQL / JSON API bodies, HTML, embedded JSON-LD -- exactly as the platform returned them) under `raw_responses`, in place of the formatted items. When false (default) you get the formatted output. Pagination (`cursor` / `next_cursor`) works the same in both modes. |

## Response

HTTP 200. Results are in `data.places`. Sample from the live catalog, arrays trimmed to 3 items.

```json
{
  "success": true,
  "data": {
    "query": "dentist",
    "location": "Houston, TX",
    "page": 1,
    "page_size": 10,
    "places": [
      {
        "name": "Dentiq Dentistry Houston",
        "place_id": "ChIJ_Ru-FaHAQIYRByxtRN6K3Ck",
        "street_address": "1355 W Gray St",
        "city": "Houston",
        "zip": "77019",
        "state": "Texas",
        "country_code": "US",
        "full_address": "1355 W Gray St Houston Texas 77019 US",
        "lat": 29.7528037,
        "long": -95.3976492,
        "website": "https://www.dentiq.dental/",
        "avg_rating": 4.9,
        "total_reviews": 1312,
        "tags": [
          "Dentist",
          "Cosmetic dentist",
          "Teeth whitening service"
        ],
        "lead": {
          "website": "https://www.dentiq.dental/",
          "title": "Top-Rated Houston Dentist | Dentiq Dentistry",
          "phone": "(713) 526-2904",
          "email": "date@dentiq.net",
          "social_media": {
            "facebook": "https://www.facebook.com/dentiqdentistry",
            "instagram": "https://www.instagram.com/dentiqdentistry",
            "twitter": null,
            "linkedin": null,
            "youtube": "https://www.youtube.com/channel/UCd4c-mFQaBZ4cJGhYS8GEuA",
            "pinterest": null,
            "tiktok": "https://www.tiktok.com/@dentiqhtx",
            "snapchat": null,
            "reddit": null,
            "tumblr": null
          }
        },
        "keyword": "dentist",
        "location": "Houston, TX",
        "scraped_at": "2026-10-03T07:14:08.716Z"
      }
    ],
    "next_cursor": "eyJsayI6eyJsb2NhdGlvbiI6IkhvdXN0b24sIFRYIn0sInAiOjIsInEiOiJkZW50aXN0IiwicyI6WyJDaElKX1J1LUZhSEFRSVlSQnl4dFJONkszQ2siXX0"
  }
}
```

## Response fields

| Field | Type | Example | Description |
|---|---|---|---|
| `query` | string | `dentist` |  |
| `location` | string | `Houston, TX` |  |
| `page` | integer | `1` |  |
| `page_size` | integer | `10` |  |
| `places` | array | `[1 item]` | The results. |
| `next_cursor` | string | `eyJsayI6eyJsb2NhdGlvbiI6IkhvdXN0b24sIFRYIn0sI…` | Pass back as `cursor` for the next page. `null` on the last page. |
| `places[].name` | string | `Dentiq Dentistry Houston` |  |
| `places[].place_id` | string | `ChIJ_Ru-FaHAQIYRByxtRN6K3Ck` |  |
| `places[].street_address` | string | `1355 W Gray St` |  |
| `places[].city` | string | `Houston` |  |
| `places[].zip` | string | `77019` |  |
| `places[].state` | string | `Texas` |  |
| `places[].country_code` | string | `US` |  |
| `places[].full_address` | string | `1355 W Gray St Houston Texas 77019 US` |  |
| `places[].lat` | number | `29.7528037` |  |
| `places[].long` | number | `-95.3976492` |  |
| `places[].website` | string | `https://www.dentiq.dental/` |  |
| `places[].avg_rating` | number | `4.9` |  |
| `places[].total_reviews` | integer | `1312` |  |
| `places[].tags` | array | `[3 items]` |  |
| `places[].lead` | object | `{…}` |  |
| `places[].keyword` | string | `dentist` |  |
| `places[].location` | string | `Houston, TX` |  |
| `places[].scraped_at` | string | `2026-10-03T07:14:08.716Z` |  |

## Pagination

Pass `data.next_cursor` back as `cursor` until it is `null`. Required inputs are ignored once a cursor is sent. Each page is one billed call.

```python
import requests

URL = "https://api.scrapier.io/api/v2/industry-email/"
HEADERS = {"X-API-Key": "YOUR_API_KEY"}
params = {"queries": "dentist", "location": "Houston, TX"}
items = []

for _ in range(10):  # each page is one billed call
    resp = requests.get(URL, headers=HEADERS, params=params, timeout=210)
    resp.raise_for_status()
    data = resp.json()["data"]
    items.extend(data.get("places") or [])
    if not data.get("next_cursor"):  # None = last page
        break
    params = {"cursor": data["next_cursor"]}
```

## Errors

Failed calls are free. Branch on HTTP status; the message is in `error` (or `detail`). See https://docs.scrapier.io/errors.md

- **400** Bad input. The exact message varies by endpoint. `{"success":false,"error":"…"}`
- **402** Balance below the endpoint's price. `{"error":"Insufficient credits. Buy more to scrape more.","balance":1,"required":2}`
- **403** Invalid or unknown API key. `{"detail":"Authentication service unavailable or invalid API key."}`
- **429** Throttled — wait for Retry-After. `{"detail":"Request was throttled. Expected available in N seconds."}`
- **404** unknown slug · **503** busy (retry after `Retry-After`) · **5xx** upstream failure or timeout (retry with backoff).

## Notes

- Locked into the cursor: `location`, `scrape_leads`, `fetch_review_count`, `max_pages_per_site`, `only_with_website`, `only_with_email`, `min_rating`, `min_reviews`, `tag_filter`, `in_area_only`, `language`, `include_all_emails`, `include_all_phones`, `include_crawl_info`. Set them on the first call; later pages reuse them.

## Related

- [Contact Extractor](https://docs.scrapier.io/api-reference/utilities/contact-extractor.md): Structured Utilities data: send `urls`. Cursor-paginated, 2 credits per successful call.
- [Social Media Platform Email Scraper](https://docs.scrapier.io/api-reference/utilities/social-media-platform-email.md): Structured Utilities data: send `keywords`. Cursor-paginated, 1 credit per successful call.
- [Website Content Crawler](https://docs.scrapier.io/api-reference/utilities/website-content-crawler.md): Structured Utilities data: send `urls`. Cursor-paginated, 1 credit per successful call.
