# Pew Research Center — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.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.

> Search and retrieve Pew Research Center publications, reports, and expert profiles across a wide range of topics, including technology, politics, science, religion, and social trends. Access detailed report content, key findings, charts, and methodology information, and filter results by topic, format, or region to stay informed on the latest research and data.

**Category:** News & Media | **Website:** [pewresearch.org/](https://pewresearch.org/) | **Docs:** [parse.bot/marketplace/e21aa930-f35f-4f96-9fe9-53babe2e62e5/pewresearch-org-api](https://parse.bot/marketplace/e21aa930-f35f-4f96-9fe9-53babe2e62e5/pewresearch-org-api)

Pay-per-use API proxy for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/pew-research-center/`
**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 latest publications

Retrieve the most recent publications across all Pew Research Center topics. Returns paginated results ordered by recency. Optionally filterable by publication format.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `format` | string | No | Filter by publication format slug (e.g. 'report', 'fact-sheet'). |
| `page` | integer | No | Page number for pagination. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/pew-research-center/get-latest-publications \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"format":"<string>","page":"<integer>"}'
```

### Get report detail

Retrieve full details of a single Pew Research Center report page by its URL. Extracts title, subtitle, date, authors, content summary (up to 2000 characters), key findings, interactive charts, downloadable materials, and methodology information. Not all fields are present on every report page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | Full URL of the report page (e.g. 'https://www.pewresearch.org/internet/2025/04/03/how-the-us-public-and-ai-experts-view-artificial-intelligence/'). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/pew-research-center/get-report-detail \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"url":"<string>"}'
```

### Get topic publications

Retrieve publications for a specific Pew Research Center topic by its slug. Returns paginated results. The topic slug corresponds to a research area.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination. |
| `topic_slug` | string | Yes | Topic slug (e.g. 'internet-technology', 'politics-policy', 'religion', 'science', 'social-trends'). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/pew-research-center/get-topic-publications \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","topic_slug":"<string>"}'
```

### List experts

List all experts and staff members at Pew Research Center. Returns names and profile URLs for every researcher listed on the experts directory page. No pagination required.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/pew-research-center/list-experts \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Search publications

Full-text search across all Pew Research Center publications by keyword. Supports optional filters by topic, format, and region. Returns paginated results ordered by relevance. Each result includes title, URL, date, format, and excerpt. Pagination advances by integer page number.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `format` | string | No | Filter by publication format slug (e.g. 'report', 'fact-sheet', 'short-read'). |
| `page` | integer | No | Page number for pagination. |
| `query` | string | Yes | Search keyword or phrase (e.g. 'artificial intelligence', 'climate change'). |
| `region` | string | No | Filter by region/country slug (e.g. 'united-states', 'europe-russia'). |
| `topic` | string | No | Filter by topic/category slug (e.g. 'internet-technology', 'politics-policy'). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/pew-research-center/search-publications \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"format":"<string>","page":"<integer>","query":"<string>","region":"<string>","topic":"<string>"}'
```

## Next steps

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