# Instagram Profile Embed

Retrieve the official embeddable HTML page Instagram serves for a public profile, ready to drop into an iframe. A completed lookup costs one credit, including a definitive not-found result, because every lookup uses costly dedicated Instagram proxies.

- **Documentation:** [https://scrappa.co/docs/instagram-api/instagram_user_embed](https://scrappa.co/docs/instagram-api/instagram_user_embed)
- **API group:** Instagram API
- **Endpoint:** `GET https://scrappa.co/api/instagram/user/embed`

## 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 |
| --- | --- | --- | --- |
| `username` | string | Yes | Instagram username (without @) |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/instagram/user/embed?username=natgeo"
```

## Example response

```json
{
    "success": true,
    "found": true,
    "username": "natgeo",
    "embed_url": "https://www.instagram.com/natgeo/embed/",
    "embed_html": "<!DOCTYPE html><html>..."
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | The username parameter is missing or not a valid Instagram username. |
| 503 | Instagram Upstream Unavailable | Instagram rejected or failed all bounded attempts through approved proxies. Retry the request later. The request is retryable and does not consume credits. |

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