# Get ad detail

Looks up one public Ad Library archive ID from the anonymous deeplink detail payload and returns source-provided creative and transparency metadata.

- Platform: [Facebook Ad Library](https://docs.upscrape.com/docs/platforms/fb-adlibrary)
- Capability ID: `fb-adlibrary.ad.get`
- Cost: 1 credit per request
- Maximum runtime: 120 seconds
- Execute endpoint: `POST https://data.upscrape.com/execute`

## Request

Use the exact public capability ID in the shared execute envelope.

```bash
curl --request POST \
  --url https://data.upscrape.com/execute \
  --header "Authorization: Bearer $UPSCRAPE_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Prefer: wait=30" \
  --data '{
  "input": {
    "archive_id": "1046730950862281"
  },
  "capability": "fb-adlibrary.ad.get"
}'
```

## Input


| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `archive_id` | `string` | Yes | Numeric public Ad Library archive ID |

### Example input

```json
{
  "archive_id": "1046730950862281"
}
```

## Response

Successful output is returned in `results[0].data`.

Raw platform output is intentionally open-ended and may evolve with the upstream source.

### Illustrative sample output

This example shows one response. Values and optional fields vary with the data available.

```json
{
  "ad": {
    "ad_archive_id": "1046730950862281",
    "page_id": "146705838515566",
    "page_name": "Sukeban World",
    "publisher_platform": [
      "INSTAGRAM"
    ],
    "regional_regulation_data": {
      "finserv": {
        "is_deemed_finserv": false
      }
    },
    "snapshot": {
      "body": {
        "text": "Public creative text"
      },
      "brazil_tax_id": "[redacted:brazil_tax_id]"
    }
  },
  "ad_url": "https://www.facebook.com/ads/library/?id=1046730950862281",
  "archive_id": "1046730950862281"
}
```
### Illustrative output fields

Derived from the sample above for orientation only. These fields are not a fixed response schema.

| Path | Observed type | Example |
| --- | --- | --- |
| `ad` | `object` | 6 fields |
| `ad.ad_archive_id` | `string` | 1046730950862281 |
| `ad.page_id` | `string` | 146705838515566 |
| `ad.page_name` | `string` | Sukeban World |
| `ad.publisher_platform` | `array` | 1 items |
| `ad.regional_regulation_data` | `object` | 1 fields |
| `ad.snapshot` | `object` | 2 fields |
| `ad_url` | `string` | https://www.facebook.com/ads/library/?id=1046730950862281 |
| `archive_id` | `string` | 1046730950862281 |

## Execution behavior

A `200` response completed inline. A `202` response was queued; poll `GET /jobs/{id}` until the job reaches `completed` or `failed`. Use an `Idempotency-Key` when retrying must not create a duplicate logical job.

## Related documentation

- [Authentication](https://docs.upscrape.com/docs/api/authentication)
- [Jobs and results](https://docs.upscrape.com/docs/api/jobs)
- [Errors and retries](https://docs.upscrape.com/docs/api/errors)
- [Idempotency](https://docs.upscrape.com/docs/api/idempotency)
