# SS.lv Agency API Documentation

<p><strong>SS.lv Agency API</strong>: SS.lv has no agency profile page. This route reads the agency block of one ad: name, address, working hours, website and logo. Phone numbers and e-mail addresses are never returned. An ad from a private seller answers 404. The site is in Latvian: text such as titles, descriptions and series stays Latvian or Russian, field names are English. Bedrooms and bathrooms do not exist on SS.lv, only rooms.</p>

- **Documentation:** [https://scrappa.co/docs/ss-lv-api/ss_lv_agency](https://scrappa.co/docs/ss-lv-api/ss_lv_agency)
- **API group:** SS.lv API
- **Endpoint:** `GET https://scrappa.co/api/ss-lv/agency`

## 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 | The url of a search item or of an agency ad. The ad must have an agency block. |

## Example response

```json
{
    "data": {
        "agency": {
            "logo": "https://i.ss.lv/images/logo/1102/1101293.jpg?v=3",
            "name": "Sia One development",
            "address": null,
            "website": null,
            "working_hours": null
        },
        "listing_id": "56729972",
        "listing_url": "https://www.ss.lv/msg/lv/real-estate/offices/riga/centre/olkbg.html"
    },
    "meta": {
        "billable": true,
        "endpoint_family": "agency"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A parameter is missing, unknown or not supported, or the location has no list. This response is not billable. |
| 404 | Not Found | The ad does not exist any more or has no agency block. This response is not billable. |
| 503 | Upstream Unavailable | SS.lv could not be reached or returned a page that does not match the request. 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)
