# Get Instagram oEmbed data

Returns oEmbed data, including embed HTML and a thumbnail, for a public Instagram post or reel `url`. Optional `maxwidth` and `maxheight` (pixels) constrain the embed size.

- Platform: Instagram
- Request: `GET https://api.toolzerhub.com/v1/instagram/post/oembed`
- Auth: `x-api-key` header
- Cost: 1 credit per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/instagram/post/get-o-embed

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `url` | query | yes | string | Public Instagram post or reel URL, for example https://www.instagram.com/p/DZpQwxqimz2/. |
| `maxwidth` | query | no | integer | Maximum embed width in pixels. |
| `maxheight` | query | no | integer | Maximum embed height in pixels. |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/instagram/post/oembed?url=<url>" \
  -H "x-api-key: $TOOLZERHUB_API_KEY"
```

Success responses are wrapped as `{ "data": ... }`. Errors return `{ "error": { "code", "status", "message", "retryable", "details" } }`. See https://docs.toolzerhub.com/docs/responses-and-errors.
