# Aqarmap Agent Profile API Documentation

Scrappa's `GET /api/aqarmap/agent` returns the public profile of the seller of one listing: `id`, `name`, `type`, `active_listings`, `score`, `logo` and `personal_photo`.

## Scope

Aqarmap has no public profile route. The profile is read from the listing, so the seller's own listings are not available here. Use `/api/aqarmap/agents` for the top sellers. Phone numbers are never returned.

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

## 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. |
| `lang` | string | No | en (default) or ar. |

## Example request

```bash
#!/bin/bash

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

## Example response

```json
{
    "success": true,
    "data": {
        "agent": {
            "id": 4746422,
            "name": "Al Hoda Real Estate",
            "type": 1,
            "role": 1,
            "active_listings": 4684,
            "score": 4.42,
            "logo": null,
            "personal_photo": null,
            "has_valid_logo": false,
            "has_valid_personal_photo": false,
            "listing_id": "7360411",
            "listing_url": "https://aqarmap.com.eg/en/listing/7360411/"
        }
    },
    "meta": {
        "endpoint_family": "agent",
        "billable": true,
        "duration_ms": 500
    }
}
```

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