# Redbubble Design Search API Documentation

Scrappa's `GET /api/redbubble/search` returns designs from a search query. Pass `product_type`, `sort` and `page` to refine it. The `id` of each result feeds the product endpoint. Search stops at ten pages and the reported result count is an origin estimate, not an exact total.## Credits

A successful request costs **1 credit**. Errors and `404` answers cost nothing. The response shows the charge in `meta.credits_charged`.

- **Documentation:** [https://scrappa.co/docs/redbubble-api/redbubble_search](https://scrappa.co/docs/redbubble-api/redbubble_search)
- **API group:** Redbubble API
- **Endpoint:** `GET https://scrappa.co/api/redbubble/search`

## 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 |
| --- | --- | --- | --- |
| `query` | string | Yes | Keywords to search. |
| `product_type` | string | No | A published filter value such as u-tees. |
| `sort` | string | No | Default sort only. Omit or pass relevant. |
| `page` | integer | No | Page number, 1 to 10. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/redbubble/search?query=black+cat&page=1"
```

## Example response

```json
{
    "success": true,
    "data": {
        "query": "black cat",
        "filters": {
            "product_type": null,
            "sort": "relevant",
            "page": 1
        },
        "products": [
            {
                "id": "/i/sticker/Black-cat-by-Flora22/110162644/7sgk",
                "work_id": "110162644",
                "title": "Black cat",
                "artist": "Flora22",
                "artist_username": "flora22",
                "product_type": "Sticker",
                "price": {
                    "current": 3.5,
                    "currency": "USD",
                    "original": null,
                    "discount_amount": null,
                    "discount_percent": null
                },
                "image": "https://ih1.redbubble.net/image.110162644.0/sticker,440x400-bg,f8f8f8.u1.jpg",
                "tags": [
                    "cat"
                ]
            }
        ],
        "pagination": {
            "page": 1,
            "per_page": 90,
            "last_page": 10,
            "has_next": true,
            "total": 1574131,
            "total_is_capped": true
        },
        "result_count": 1574131,
        "available_product_types": []
    },
    "meta": {
        "endpoint_family": "redbubble-search",
        "billable": true,
        "attempts": 1,
        "credits_charged": 1
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | No public record exists for that id (`not_found`). Non-billable. |
| 422 | Validation Error | A parameter is missing, unknown or unusable. Unknown parameters are rejected, never ignored. Non-billable. |
| 503 | Source Unavailable | The source blocked the request, could not be reached or answered in an unexpected shape (`upstream_blocked`, `upstream_unavailable`, `parser_drift`). Only the first two are retryable. Clients are never rate limited. Non-billable. |

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