Grailed API endpoint
Returns Grailed's own search-box typeahead suggestions for a partial query -- a flat list of suggested search phrases with a popularity score and live active-listing match count, no listing data. Pass a suggestion straight through to grailed-search/grailed-sold-listings' own q parameter. A query with no genuine matches returns a well-formed empty result rather than an error.
/grailed/suggestq is required, a partial search query, up to 100 characters.
Notable response behavior:
suggestions[].query is directly usable as grailed-search/grailed-sold-listings's own q parameter.suggestions[].total_results is that suggested query's own live active-listing match count on Grailed.suggestions: []) rather than an error.| Field | Filled in, of 10 checked | Values in the sample |
|---|---|---|
| query | 10 | “gucci” and 9 other values |
| popularity | 10 | 2,597 to 20,484, median 3,070 |
| total_results | 5 | 2,346 to 202,372, median 10,626 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| q | string | Yes | Partial search query | guc | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/grailed/suggest?q=guc" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"query": "guc",
"suggestions": [
{
"query": "gucci",
"popularity": 89,
"total_results": 259659
},
{
"query": "gucci hat",
"popularity": 40,
"total_results": 4200
}
]
}
}Request schema
No body schema
Response schema
#/definitions/grailed.suggestResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | grailed.SuggestResponse | No | ||||
| data.fetched_at | string | No | ||||
| data.query | string | No | ||||
| data.suggestions | array | No | ||||
| data.suggestions[].popularity | integer | No | ||||
| data.suggestions[].query | string | No | ||||
| data.suggestions[].total_results | integer | No | ||||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 429 | Too Many Requests | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/grailed/suggest?q=guc" \
-H "x-api-key: $CRAWLORA_API_KEY"