Mercari API endpoint
Returns Mercari's own search-suggestion list for a partial keyword, in its own relevance order. An empty suggestion list is a normal outcome for obscure or gibberish input.
/mercari/autocompleteQuery parameters:
query (required) — partial keyword to get suggestions for.Notable response behavior:
suggestions is an empty array (not an error) when Mercari has nothing to
suggest for sufficiently obscure or gibberish input — a true "nothing
matched" outcome.query returns 400 before any upstream request is made.| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| query | string | Yes | Partial keyword to get suggestions for | nike | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/mercari/autocomplete?query=nike" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"query": "nike",
"suggestions": [
"nikes shoes women",
"nikes shoes men",
"nikes",
"nikes shoes",
"Nike pro biker shorts",
"Nike biker shorts",
"nikes air max",
"Nike bike shorts",
"nikeskims",
"nikes women"
]
}
}Request schema
No body schema
Response schema
#/definitions/mercari.autocompleteResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | mercari.AutocompleteResponse | No | ||||
| data.query | string | No | ||||
| data.suggestions | array | No | ||||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 500 | Internal Server Error | #/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/mercari/autocomplete?query=nike" \
-H "x-api-key: $CRAWLORA_API_KEY"