# Yellow Pages Business Reviews API Documentation

Get the public customer reviews of one Yellow Pages business by the id from the search, 10 per page: author, rating, title, text, date (ISO 8601) and the total count. Costs 9 credits per request. Failed requests are free.

- **Documentation:** [https://scrappa.co/docs/yellowpages-api/yellowpages_reviews](https://scrappa.co/docs/yellowpages-api/yellowpages_reviews)
- **API group:** Yellow Pages API
- **Endpoint:** `GET https://scrappa.co/api/yellowpages/reviews`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | Yes | Business id from the search results (the business path). A full Yellow Pages business link is accepted too. Example: /austin-tx/mip/clarke-kent-plumbing-10674347. |
| `page` | integer | No | Page number, 1 to 100. Each page holds up to 10 reviews. A page past the end returns an empty list and the real total. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/yellowpages/reviews?id=%2Faustin-tx%2Fmip%2Fclarke-kent-plumbing-10674347"
```

## Example response

```json
{
    "success": true,
    "data": {
        "id": "/austin-tx/mip/clarke-kent-plumbing-10674347",
        "page": 1,
        "per_page": 10,
        "total": 15,
        "has_more": true,
        "next_page": 2,
        "reviews": [
            {
                "id": "06e3e23e-af9e-45d2-997f-ee139fbd2ad9",
                "author": "Maria M.",
                "rating": 5,
                "title": null,
                "text": "Josh was wonderful and very professional.",
                "date": "2017-01-09",
                "additional_ratings": {
                    "Expertise": 5,
                    "Professionalism": 5,
                    "Promptness": 5
                }
            }
        ]
    },
    "meta": {
        "endpoint_family": "business_reviews",
        "billable": true,
        "credits": 9
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | The id is missing or not a Yellow Pages business id. This response is not billable. |
| 404 | Business Not Found | No business has this id. This response is not billable. |
| 502 | Upstream Unavailable | Yellow Pages did not answer with usable data. This response is not billable. Retry later. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
