Request
GET
curl -H "Authorization: Bearer YOUR_TOKEN" "https://newhedge.io/api/v2/news/:query_type"
Parameters & responses
Path params
:query_type — all, bitcoin, crypto, or macro. Use all for the full feed.
Query params
Authorization: Bearer YOUR_TOKEN (required) — your 24 character API key (also accepted: the X-API-Key header or the api_token query parameter).
Responses
200 returns a JSON array of articles sorted by published_at. 400 for invalid query_type, 401 for missing/invalid token, 429 when the monthly limit is reached.
Latest news
Returns curated articles filtered by category.
Endpoint
curl -H "Authorization: Bearer YOUR_TOKEN" "https://newhedge.io/api/v2/news/bitcoin"
Replace YOUR_TOKEN with your API token. Use a category or all for the full feed.
Example response
200
Fictional example
[
{
"id": 1,
"title": "Example Bitcoin headline",
"description": "Fictional article demonstrating the News API response.",
"link": "https://example.com/article",
"image_url": null,
"published_at": "2025-01-01T12:00:00Z",
"sentiment": "neutral",
"source": "example.com",
"category": "bitcoin"
}
]
Fields
Response attributes
| Field | Description |
|---|---|
id | Stable article identifier. |
title | Headline. |
description | Summary, when available. |
link | Original article URL. |
image_url | Preview image, when available. |
published_at | Publication time in ISO 8601. |
sentiment | bullish, bearish, neutral or null. Automated keyword scoring. |
source | Publisher hostname, when available. |
category | News grouping; matches query_type when filtered. |
Retention and identity
What the feed keeps
- News rows are kept for 5 days.
- A row is a duplicate when its title or its link was already stored. The first version wins.
- Sentiment is automated keyword scoring, not an editorial judgment.
- The news endpoint has no paging.