# ZVG-Portal Locations API Documentation

<p><strong>ZVG-Portal Locations API</strong> finds German lands and Amtsgerichte by name and returns the land code and court id that the search and court routes need. The portal has no city or postal code suggest, so use the <code>city</code> and <code>plz</code> search filters for those. Without <code>q</code> the route lists all lands.</p>

- **Documentation:** [https://scrappa.co/docs/zvg-portal-api/zvg_portal_locations](https://scrappa.co/docs/zvg-portal-api/zvg_portal_locations)
- **API group:** ZVG-Portal API
- **Endpoint:** `GET https://scrappa.co/api/zvg-portal/v1/locations`

## 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 |
| --- | --- | --- | --- |
| `q` | string | No | Text to match in a land or court name. Example: bremen. |
| `land` | string | No | Land code to list only that land and its courts. Example: be. |

## Example response

```json
{
    "data": {
        "land": null,
        "query": "bremen",
        "total": 3,
        "locations": [
            {
                "land": "hb",
                "name": "Bremen",
                "type": "land",
                "court_id": null,
                "court_count": 3
            },
            {
                "land": "hb",
                "name": "Amtsgericht Bremen",
                "type": "court",
                "court_id": "H1101",
                "court_count": null
            },
            {
                "land": "hb",
                "name": "Amtsgericht Bremen-Blumenthal",
                "type": "court",
                "court_id": "H1103",
                "court_count": null
            }
        ]
    },
    "meta": {
        "billable": true,
        "endpoint_family": "locations"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required parameter or a value is invalid. This response is not billable. |
| 503 | Upstream Unavailable | ZVG-Portal could not be reached. This response is not billable and is retryable. |
| 503 | Unexpected Upstream Data | ZVG-Portal returned data in an unexpected shape. This response is not billable and is retryable. |

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