# 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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/news-un/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## 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/credits/news-un/get-homepage-headlines \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/news-un/get-in-depth-section \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/news-un/get-region-news \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/news-un/get-rss-feed \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/news-un/get-story \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/news-un/get-topic-news \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/news-un/search-news \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"lang":"<string>","page":"<integer>","query":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://paywithlocus.com/agent/index.md): every Locus agent page.