Yahoo Health API endpoint
Returns a Yahoo Health section's editorial story feed: title, destination URL, category, and thumbnail image for each story, with page-based pagination. Sourced from Yahoo Health's own server-rendered section pages.
/yahoo-health/categoryQuery parameters:
category (required) -- the Yahoo Health section. Allowed values:
conditions, general, healthcare, treatments, wellness,
your-body.page (optional) -- 1-based page number. Defaults to 1.Notable response behavior:
health.yahoo.com/<category>/<page>/), not a query-param offset;
next_page is omitted when the section's own pagination control has no
higher page number./<category>/ are returned
-- a section page's cross-category recirculation modules do not leak
unrelated stories into the result set.category value returns 400.| Field | Filled in, of 27 checked | Values in the sample |
|---|---|---|
| id | 27 | |
| title | 27 | “Just 10 Minutes of Daily Exercise May Improve Sleep” and 26 other values |
| url | 27 | health.yahoo.com |
| category | 27 | wellness in all 27 |
| thumbnail_url | 25 | s.yimg.com |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| category | string | Yes | Yahoo Health section Allowed values: conditions, general, healthcare, treatments, wellness, your-body. | wellness | |
| page | integer | No | 1 | 1-based page number, defaults to 1 | 1 |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/yahoo-health/category?category=wellness&page=1" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"category": "wellness",
"items": [
{
"id": "130000290",
"title": "Sleep experts say these 6 signs mean you need a firmer mattress",
"url": "https://health.yahoo.com/wellness/article/signs-you-need-a-firmer-mattress-130000290.html",
"category": "wellness",
"thumbnail_url": "https://s.yimg.com/lo/mysterio/api/example/mattress.jpg"
}
],
"pagination": {
"page": 1,
"next_page": 2
}
}
}Request schema
No body schema
Response schema
#/definitions/yahoohealth.categoryResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | yahoohealth.CategoryResponse | No | ||||
| data.category | string | No | ||||
| data.items | array | No | StreamItem record, 5 fields: category, id, thumbnail_url, title, url. Described under Yahoo Health Home API. | |||
| data.pagination | yahoohealth.CategoryPaginate | No | ||||
| data.pagination.next_page | integer | No | 2 | |||
| data.pagination.page | integer | No | 1 | |||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/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-health/category?category=wellness&page=1" \
-H "x-api-key: $CRAWLORA_API_KEY"