# Trulia Neighborhood Insights

Get percentage-based neighborhood insights for the locality associated with a Trulia listing.

- **Documentation:** [https://scrappa.co/docs/trulia-api/trulia_neighborhood_insights](https://scrappa.co/docs/trulia-api/trulia_neighborhood_insights)
- **API group:** Trulia API
- **Endpoint:** `GET https://scrappa.co/api/trulia/neighborhood-insights`

## 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 |
| --- | --- | --- | --- |
| `url` | string | Yes | URL of the Trulia listing. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/trulia/neighborhood-insights?url=https%3A%2F%2Fwww.trulia.com%2Fhome%2F2-gary-ave-rehoboth-beach-de-19971-126520829"
```

## Example response

```json
{
    "data": {
        "locality": "Rehoboth Beach, DE",
        "insights": [
            {
                "question": "Is Rehoboth Beach, DE dog-friendly?",
                "answer": "As of early 2026, 88% of users say it's dog friendly",
                "percentage": 88
            },
            {
                "question": "Would people walk alone at night in Rehoboth Beach, DE?",
                "answer": "As of early 2026, 81% of users say people would walk alone at night",
                "percentage": 81
            },
            {
                "question": "Is a car needed in Rehoboth Beach, DE?",
                "answer": "As of early 2026, 79% of users say car is needed",
                "percentage": 79
            },
            {
                "question": "Is Rehoboth Beach, DE quiet?",
                "answer": "As of early 2026, 75% of users say it's quiet",
                "percentage": 75
            },
            {
                "question": "Does Rehoboth Beach, DE show holiday spirit?",
                "answer": "As of early 2026, 75% of users say there's holiday spirit",
                "percentage": 75
            },
            {
                "question": "Are yards well-kept in Rehoboth Beach, DE?",
                "answer": "As of early 2026, 70% of users say yards are well-kept",
                "percentage": 70
            }
        ],
        "count": 6
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required parameter is missing or malformed. `url` must be a valid URL of at most 2048 characters (`id` on the listing-by-id endpoint must be an integer). Returned by the form request before any upstream request is made, and never billed. |
| 422 | Invalid Listing URL | The url is well formed but is not a canonical Trulia listing URL. `error.failure_type` is `invalid_url`. Non-billable, and no upstream request is made. |
| 503 | Upstream Unavailable | The upstream service is temporarily unavailable. Please retry shortly. |

## 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)
