# Hemnet Listing Media API

Get the gallery images and the floorplan images of one Hemnet listing in a single lookup. Every image row carries a ready-to-fetch `url` alongside the upstream `filename`. The images are served from Hemnet's public image CDN (bilder.hemnet.se) with no signature and no expiry, so the URLs stay valid. Swap the `itemgallery_L` segment for `itemgallery_M` or `itemgallery_S` on the same `filename` when you want a different size.

- **Documentation:** [https://scrappa.co/docs/hemnet-api/hemnet_media](https://scrappa.co/docs/hemnet-api/hemnet_media)
- **API group:** Hemnet API
- **Endpoint:** `GET https://scrappa.co/api/hemnet/media`

## 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 | Hemnet listing id |
| `limit` | integer | No | Gallery images per page (default 20, maximum 100) |
| `offset` | integer | No | Gallery images to skip |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/hemnet/media?id=21889893"
```

## Example response

```json
{
    "success": true,
    "data": {
        "id": "21889893",
        "floorPlanImages": [
            {
                "filename": "66/23/66236a209e35b900a9420e15b7c45287.jpg",
                "url": "https://bilder.hemnet.se/images/itemgallery_L/66/23/66236a209e35b900a9420e15b7c45287.jpg"
            }
        ]
    }
}
```

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