# Guitar Center Search API Documentation

<p><strong>Guitar Center Search API Documentation</strong> Search the public Guitar Center music gear catalogue by query, category, brand, condition, price range, page and hits per page. Prices are numbers in USD with sale price, list price and discount. Ratings are on a 1 to 5 scale, used listings carry condition grades, dates use ISO 8601 and images are full-size URLs. Sort is applied to the fetched batch and labelled as client-side. 1 credit per request. Failed requests are never billed.</p>

- **Documentation:** [https://scrappa.co/docs/guitarcenter-api/guitarcenter_search](https://scrappa.co/docs/guitarcenter-api/guitarcenter_search)
- **API group:** Guitar Center API
- **Endpoint:** `GET https://scrappa.co/api/guitarcenter/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 | No | Search text, e.g. fender strat; empty means category browse |
| `category` | string | No | Category from a search hit, e.g. Guitars |
| `brand` | string | No | Brand from a search hit, e.g. Fender |
| `condition` | string | No | Condition from a search hit, e.g. New or Used |
| `sort` | string | No | price_asc, price_desc, rating_desc or name_asc, applied to the fetched batch |
| `price_min` | number | No | Minimum sale price in USD |
| `price_max` | number | No | Maximum sale price in USD |
| `page` | integer | No | Zero-based page number, default 0 |
| `hitsPerPage` | integer | No | Results per page, default 20, max 100 |

## Example response

```json
{
    "data": {
        "hits": [
            {
                "brand": "Fender",
                "image": {
                    "url": "https://media.guitarcenter.com/is/image/MMGS7/M11732000001000-2000x2000.jpg"
                },
                "price": {
                    "amount": 659.99,
                    "currency": "USD"
                },
                "rating": {
                    "count": 24,
                    "scale": 5,
                    "average": 4.5
                },
                "discount": {
                    "amount": 220,
                    "percent": 25,
                    "currency": "USD"
                },
                "objectID": "site51500000428932",
                "condition": {
                    "level": "New"
                },
                "listPrice": {
                    "amount": 879.99,
                    "currency": "USD"
                },
                "created_at": "2024-03-29T01:17:31Z",
                "displayName": "Fender Player II Stratocaster HSS",
                "availability": {
                    "stores": [
                        "Charleston"
                    ],
                    "in_stock": true
                }
            }
        ],
        "page": 0,
        "sort": {
            "value": null,
            "applied_by": null
        },
        "query": "fender strat",
        "facets": {
            "brand": {
                "Fender": 11699
            }
        },
        "nbHits": 3789,
        "nbPages": 190,
        "hitsPerPage": 20
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "algolia_search"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A query parameter is missing or invalid. Failed requests are not billed. |
| 503 | Upstream Unavailable | The upstream source is temporarily unavailable. Failed requests are not billed. |

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