# Aqarmap Listing Units API Documentation

Scrappa's `GET /api/aqarmap/listing-children` lists the other units Aqarmap shows with one listing, grouped by `market` (`new`, `resale`, `rent`) and `property_type`. Each unit has `id`, `slug`, `url`, `price` and `area`. The response can be large for big compounds.

- **Documentation:** [https://scrappa.co/docs/aqarmap-api/aqarmap_listing_children](https://scrappa.co/docs/aqarmap-api/aqarmap_listing_children)
- **API group:** Aqarmap API
- **Endpoint:** `GET https://scrappa.co/api/aqarmap/listing-children`

## 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 |
| --- | --- | --- | --- |
| `listing_id` | string | Yes | Numeric listing id from search, for example 7360411. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/aqarmap/listing-children?listing_id=7360411"
```

## Example response

```json
{
    "success": true,
    "data": {
        "listing_id": "7360411",
        "groups": [
            {
                "market": "resale",
                "property_type": "Apartments",
                "listings": [
                    {
                        "id": "7305081",
                        "slug": "for-sale-cairo-helwan",
                        "url": "https://aqarmap.com.eg/en/listing/7305081/",
                        "price": {
                            "amount": 1400000,
                            "currency": "EGP"
                        },
                        "area": {
                            "value": 110,
                            "unit": "sqm"
                        }
                    }
                ]
            }
        ]
    },
    "meta": {
        "endpoint_family": "listing_children",
        "billable": true,
        "duration_ms": 900
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | Nothing exists with that identifier on Aqarmap (`NOT_FOUND`). Non-billable. |
| 422 | Validation Error | A query parameter is missing, unknown or unusable. Unknown parameters are rejected, never ignored. Non-billable. |
| 503 | Upstream Unavailable | Aqarmap could not be reached after retries, refused the request or answered with a body this API cannot read safely (`UPSTREAM_UNAVAILABLE`). Never billed. Retry when `meta.retryable` is true. |

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