# Aeaweb — 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 for academic papers across American Economic Association journals to instantly access abstracts, author information, JEL classifications, and citation metrics. Retrieve detailed article information to stay current with the latest economic research and citations from premier sources like the American Economic Review.

**Category:** Education | **Website:** [www.aeaweb.org/journals](https://www.aeaweb.org/journals) | **Docs:** [parse.bot/marketplace/6e23628c-6d61-41a1-b1c9-764e204b865f/aeaweb-org-api](https://parse.bot/marketplace/6e23628c-6d61-41a1-b1c9-764e204b865f/aeaweb-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/aeaweb/`
**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 article

Retrieve full metadata for a single article by DOI. Returns the title, authors, journal name, volume/issue/pages, publication date, abstract text, JEL classification codes with descriptions, and a formatted citation string. A 404 or 410 upstream response indicates the DOI does not exist.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `doi` | string | Yes | Article DOI (e.g., '10.1257/aer.20200636') |

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

### Search articles

Full-text search across all AEA journals by keyword. Matches against title, abstract, and author fields (each togglable). Results are paginated; each page returns article summaries (DOI, title, authors, publication date). Filter by journal code to scope to a single publication. The server returns up to per_page results per request.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `journal` | string | No | Filter by journal code. Empty string searches all journals. |
| `page` | integer | No | Page number for pagination |
| `per_page` | integer | No | Results per page |
| `query` | string | Yes | Search keyword or phrase |
| `search_in_abstract` | string | No | Search in article abstracts. Accepted values: '1' (yes), '0' (no). |
| `search_in_author` | string | No | Search in author names. Accepted values: '1' (yes), '0' (no). |
| `search_in_title` | string | No | Search in article titles. Accepted values: '1' (yes), '0' (no). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/aeaweb/search-articles \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"journal":"<string>","page":"<integer>","per_page":"<integer>","query":"<string>","search_in_abstract":"<string>","search_in_author":"<string>","search_in_title":"<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.