# Goplaceit Agency Profile API Documentation

Scrappa's `GET /api/goplaceit/agency` returns the public profile of an agency or developer. Send the numeric `id` from listing detail (`agency.id`).

## What you get

`id`, `name`, `type` (for example Broker), `description`, `logo`, `website`, `address`, country, region and commune ids, `brand_color`, `active` and the created and updated dates.

## Gaps

Email addresses and phone numbers are private contact data and are never returned. Use agency-listings for the properties of an agency.

- **Documentation:** [https://scrappa.co/docs/goplaceit-api/goplaceit_agency](https://scrappa.co/docs/goplaceit-api/goplaceit_agency)
- **API group:** Goplaceit API
- **Endpoint:** `GET https://scrappa.co/api/goplaceit/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 |
| --- | --- | --- | --- |
| `id` | string | Yes | Agency id from listing detail (agency.id), for example 70429. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/goplaceit/agency?id=70429"
```

## Example response

```json
{
    "success": true,
    "agency": {
        "id": 70429,
        "name": "Sample Properties",
        "type": "Broker",
        "description": null,
        "logo": null,
        "website": null,
        "address": null,
        "country_id": 1,
        "region_id": 13,
        "commune_id": 288,
        "brand_color": null,
        "active": true,
        "created_at": "2023-01-17T14:49:25Z",
        "updated_at": "2023-01-23T12:16:40Z"
    },
    "meta": {
        "endpoint_family": "agency",
        "billable": true,
        "attempts": 1
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | No agency exists with that id (`not_found`). Non-billable. |
| 422 | Validation Error | A query parameter is missing, unknown or unusable. Unknown parameters and unknown sort or type values are rejected, never ignored. Non-billable. |
| 503 | Source Unavailable | Goplaceit could not be reached in time, refused the request, or its answer changed shape (`upstream_unavailable`, `request_blocked`, `deadline_exhausted`, `parser_drift`). Retryable and never billed. Clients are never rate limited. |

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