# Aeaweb — 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.

> 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. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-aeaweb-org-api-6e23628c/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## 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.paywithlocus.com/api/wrapped/parse-aeaweb-org-api-6e23628c/get_article \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-aeaweb-org-api-6e23628c/search_articles \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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>"}'
```
