# News Feeds API

> Returns the latest articles of a news site, overall or by section, from its RSS or Atom feed.

Category: News & Media. Region: global. 2 endpoints at `https://api.hoshime.com/v1/news/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/news
## GET /v1/news/latest

Latest articles of one news site, newest first, from its public RSS or Atom feed.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `source` | string | no | News site to read. Defaults to bbc. (one of bbc, guardian, theverge, arstechnica, coindesk, cointelegraph, marketwatch, techcrunch, aljazeera, googlenews; default bbc) |
| `limit` | integer | no | Items per page, 1 to 50. (default 20) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `author` (Author), `author.avatarUrl` (string), `author.id` (string), `author.name` (string), `author.url` (string), `author.username` (string), `id` (string), `imageUrl` (string), `publishedAt` (string), `source` (string), `summary` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/news/latest" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/news/section

Latest articles of one section of a news site, newest first, from its section feed.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `source` | string | yes | News site to read. (one of bbc, cointelegraph, guardian, marketwatch; e.g. bbc) |
| `section` | string | yes | Section of the site, such as technology. For cointelegraph, a tag or category slug such as bitcoin. (e.g. technology) |
| `sectionType` | string | no | Cointelegraph only: whether section names a tag or a category. (one of category, tag; default tag) |
| `limit` | integer | no | Items per page, 1 to 50. (default 20) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `author` (Author), `author.avatarUrl` (string), `author.id` (string), `author.name` (string), `author.url` (string), `author.username` (string), `id` (string), `imageUrl` (string), `publishedAt` (string), `source` (string), `summary` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/news/section?source=bbc&section=technology" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
