Yahoo Search API endpoint
Returns Yahoo's local-business-search results for a query: name, category, price range, address, phone, open status, rating, and review count. Location is resolved from the query text itself, the same way a user would type into Yahoo's own local search box (e.g. "pizza near seattle wa"), not a separate coordinate parameter. Results are fetched from Yahoo's own server-rendered local-search page.
/yahoo-search/localQuery parameters:
q (required) — the search query, including any location intent (e.g.
pizza near seattle wa). Yahoo resolves location from the query text
itself, the same way a user would type into its own local search box --
there is no separate coordinate parameter.Notable response behavior:
id is Yahoo's own internal listing id, carried in case a caller wants
to distinguish repeat listings. Yahoo's list view does not link out to
the business's own website -- there is no url field.rating is a 0-5 integer star count (Yahoo's own list view does not
expose a finer-grained decimal rating).results array, not an error.| Field | Filled in, of 15 checked | Values in the sample |
|---|---|---|
| position | 15 | 1 to 15, median 8 |
| id | 15 | |
| name | 15 | “Serious Pie Downtown” and 14 other values |
| category | 15 | Pizza (14), Pizza, Italian Restaurant (1) |
| price_range | 15 | $$ (12), $ (3) |
| address | 15 | |
| phone | 15 | |
| open_status | 15 | Closed in all 15 |
| rating | 15 | 4 |
| review_count | 15 | 269 to 4,877, median 647 |
| image_url | 15 | s.yimg.com |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| q | string | Yes | Search query, including any location intent | pizza near seattle wa | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/yahoo-search/local?q=pizza+near+seattle+wa" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"query": "pizza near seattle wa",
"results": [
{
"position": 1,
"id": "36383310",
"name": "Serious Pie Downtown",
"category": "Pizza",
"price_range": "$$",
"address": "2001 4th Ave",
"phone": "(206) 838-7388",
"open_status": "Closed",
"rating": 4,
"review_count": 4870,
"image_url": "https://s.yimg.com/fz/api/res/example.jpg"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/yahoosearch.localResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | yahoosearch.LocalResponse | No | ||||
| data.query | string | No | pizza near seattle wa | |||
| data.results | array | No | ||||
| data.results[].address | string | No | 2001 4th Ave | |||
| data.results[].category | string | No | Pizza | |||
| data.results[].id | string | No | 36383310 | |||
| data.results[].image_url | string | No | ||||
| data.results[].name | string | No | Serious Pie Downtown | |||
| data.results[].open_status | string | No | Closed | |||
| data.results[].phone | string | No | (206) 838-7388 | |||
| data.results[].position | integer | No | 1 | |||
| data.results[].price_range | string | No | $$ | |||
| data.results[].rating | number | No | 4 | |||
| data.results[].review_count | integer | No | 4870 | |||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 429 | Too Many Requests | #/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/yahoo-search/local?q=pizza+near+seattle+wa" \
-H "x-api-key: $CRAWLORA_API_KEY"