Prada API endpoint
Returns Prada's own search-box typeahead suggestions for a partial query -- a ranked list of suggested search phrases with the live result count each one would return. Pass a suggestion straight through to prada-search's own q parameter for product results. A query with no genuine matches returns a well-formed empty result rather than an error.
/prada/suggestq is required, 1 to 200 characters.
limit is optional, maximum suggestions, defaults to 10, maximum 20.
Notable response behavior:
prada-search's own q parameter for product results.suggestions[].result_count is the live number of products prada-search would return for that exact suggested query text.suggestions[].popularity reflects Prada's own relative popularity ranking for that phrase (higher is more popular); it is not a product count.count: 0, suggestions: []) rather than an error.| Field | Filled in, of 10 checked | Values in the sample |
|---|---|---|
| query | 10 | “bags” and 9 other values |
| result_count | 10 | 19 to 3,435, median 138 |
| popularity | 10 | 13 to 330, median 32 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| q | string | Yes | Partial search query | bag | |
| limit | integer | No | 10 | Maximum suggestions, defaults to 10, maximum 20 | 10 |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/prada/suggest?q=bag&limit=10" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"query": "bag",
"count": 2,
"suggestions": [
{
"query": "bags",
"result_count": 3367,
"popularity": 309
},
{
"query": "bag charm",
"result_count": 138,
"popularity": 277
}
]
}
}Request schema
No body schema
Response schema
#/definitions/prada.suggestResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | prada.SuggestResponse | No | ||||
| data.count | integer | 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[].result_count | 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/prada/suggest?q=bag&limit=10" \
-H "x-api-key: $CRAWLORA_API_KEY"