# LandSearch Profiles API Documentation

<p><strong>LandSearch Profiles API</strong> searches agents, lenders and land service providers by type, location slug and name keywords, with the real total and page count. Each item carries the profile id for the profile routes. Failed requests are not billed.</p>

- **Documentation:** [https://scrappa.co/docs/landsearch-api/landsearch_profiles](https://scrappa.co/docs/landsearch-api/landsearch_profiles)
- **API group:** LandSearch API
- **Endpoint:** `GET https://scrappa.co/api/landsearch/profiles`

## 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 |
| --- | --- | --- | --- |
| `type` | string | No | agent, lender or service. |
| `location` | string | No | Location slug from the autocomplete route. |
| `keywords` | string | No | Name or brokerage text. |
| `sort` | string | No | -promoted, -newest or newest. |
| `page` | integer | No | One-based page number. The site reports at most 100 pages per query; a page past the last returns an empty list. |
| `limit` | integer | No | Results per page, 1 to 100. Default 50. |

## Example response

```json
{
    "data": {
        "items": [
            {
                "id": 855100,
                "url": "https://www.landsearch.com/agents/refugio-juan-rodriguez/855100",
                "name": "Refugio Juan Rodriguez",
                "type": "agent",
                "phone": null,
                "teams": [
                    {
                        "name": "eXp Realty",
                        "profile_id": null,
                        "profile_url": null
                    }
                ],
                "location": null,
                "promoted": false,
                "image_url": null,
                "specialties": [],
                "listing_count": 5,
                "location_label": "Austin, TX"
            },
            {
                "id": 853973,
                "url": "https://www.landsearch.com/agents/central-metro-realty/853973",
                "name": "Central Metro Realty",
                "type": "agent",
                "phone": null,
                "teams": [],
                "location": null,
                "promoted": false,
                "image_url": null,
                "specialties": [],
                "listing_count": 3,
                "location_label": "Austin, TX"
            }
        ],
        "pagination": {
            "page": 1,
            "limit": 2,
            "total": 244,
            "has_next": true,
            "returned": 2,
            "total_pages": 100
        },
        "applied_filters": {
            "type": "agent",
            "location": "austin-tx"
        }
    },
    "meta": {
        "billable": true,
        "endpoint_family": "profiles"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A parameter is missing or invalid. This response is not billable. |
| 422 | Unknown Location | The location slug is unknown. This response is not billable. |
| 503 | Upstream Unavailable | LandSearch could not be reached. Retry shortly. This response is not billable. |

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