# News Un — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Access UN News headlines, stories, and articles organized by topic and region across multiple languages. Search news content, retrieve in-depth reports, and subscribe to RSS feeds for updates on global events and UN initiatives.

**Category:** News & Media | **Website:** [news.un.org/](https://news.un.org/) | **Docs:** [parse.bot/marketplace/baa5c671-2f0d-4b70-8c5f-bff38eb704d1/news-un-org-api](https://parse.bot/marketplace/baa5c671-2f0d-4b70-8c5f-bff38eb704d1/news-un-org-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-news-un-org-api-baa5c671/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_homepage_headlines

Fetch news headlines and featured stories from the UN News homepage for a specific language. Returns all visible stories including top stories, featured content, and editorial picks. No pagination; returns a single page of current homepage content.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `lang` | string | No | Language code for the homepage content. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-news-un-org-api-baa5c671/get_homepage_headlines \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"lang":"<string>"}'
```

### get_in_depth_section

Fetch stories from editorial sections like In Focus, Interviews, Features, and Photo Stories. Returns a list of stories from the selected section with title, URL, summary, date, topic, and region.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `lang` | string | No | Language code for the content. |
| `section` | string | No | Section slug for the editorial section. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-news-un-org-api-baa5c671/get_in_depth_section \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"lang":"<string>","section":"<string>"}'
```

### get_region_news

Fetch news articles filtered by geographic region. Returns paginated results with 10 articles per page including title, URL, summary, date, topic, and region.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `lang` | string | No | Language code for the content. |
| `page` | integer | No | Page number (0-indexed) |
| `region` | string | No | Region slug for filtering news. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-news-un-org-api-baa5c671/get_region_news \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"lang":"<string>","page":"<integer>","region":"<string>"}'
```

### get_rss_feed

Fetch and parse an RSS feed from UN News. Returns structured feed items with title, link, description, publication date, and categories. Works with language-variant all-news feeds. Returns all items currently in the feed (typically 10-20).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `feed_url` | string | No | Full URL of the RSS feed. Supported pattern: https://news.un.org/feed/subscribe/{lang}/news/all/rss.xml where lang is en, fr, es, ar, zh, ru, pt, sw |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-news-un-org-api-baa5c671/get_rss_feed \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"feed_url":"<string>"}'
```

### get_story

Fetch full content of a specific news article by its URL. Returns article title, full body text, publication date, associated topics and regions. The URL must point to a valid UN News story page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | Full URL of the story (e.g. https://news.un.org/en/story/2026/05/1167450) or relative path (e.g. /en/story/2026/05/1167450) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-news-un-org-api-baa5c671/get_story \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"<string>"}'
```

### get_topic_news

Fetch news articles filtered by a specific topic. Returns paginated results with 10 articles per page including title, URL, summary, date, topic, and region.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `lang` | string | No | Language code for the content. |
| `page` | integer | No | Page number (0-indexed) |
| `topic` | string | No | Topic slug: human-rights, peace-and-security, climate-change, economic-development, health, women, humanitarian-aid, sdgs, culture-and-education, law-and-crime-prevention, migrants-and-refugees |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-news-un-org-api-baa5c671/get_topic_news \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"lang":"<string>","page":"<integer>","topic":"<string>"}'
```

### search_news

Search for news articles across the UN News site by keyword. Returns paginated results with 10 articles per page. Query must be a single word without spaces due to site URL constraints; multi-word queries will return a 406 upstream error.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `lang` | string | No | Language code for the content. |
| `page` | integer | No | Page number (0-indexed) |
| `query` | string | Yes | Search keyword (single word, no spaces). Examples: climate, humanitarian, peace, health, refugees |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-news-un-org-api-baa5c671/search_news \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"lang":"<string>","page":"<integer>","query":"<string>"}'
```
