# Top.gg Widget Badge

Fetch the public PNG widget badge of one entity by its id from search. The response carries the image as base64, its MIME type and the full-size image URL. Fake ids fail upstream and are never charged. SVG rendering with an explicit Accept header is a named follow-up.

- **Documentation:** [https://scrappa.co/docs/topgg-api/topgg_widget](https://scrappa.co/docs/topgg-api/topgg_widget)
- **API group:** Top.gg API
- **Endpoint:** `GET https://scrappa.co/api/topgg/widget`

## 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 | Public id from search. |

## Errors

| Status | Error | Description |
| --- | --- | --- |
|  | Error | Invalid id. Not charged. |
|  | Error | Upstream failure, including a fake id. Not charged. |

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