# DOI Lookup (Crossref) (`crossref.work`)

Resolve a DOI to its bibliographic record: title, authors, journal, dates, publisher, citation count and licence.

- **Route:** `POST /v1/run/crossref.work`
- **Price:** $0.0008 per request ($0.80 per 1,000) · `cost_usd` on every response
- **Source:** Crossref REST API (`crossref`) · failover: no
- **Measured latency:** p50 333 ms · p95 333 ms · p99 333 ms (1 calls, 30d)
- **Heavy response:** no

## Input

| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
| `doi` | string | yes |  | DOI or doi.org URL |

## Output (`output` in the run envelope)

| Field | Meaning |
|---|---|
| `title` | Title of the work. |
| `authors` | Author names. |
| `journal` | Journal or container. |
| `year` | Publication year. |
| `cited_by` | Citations counted by Crossref. |
| `url` | DOI URL. |

## Example

```bash
curl -s -X POST https://getallapis.com/v1/run/crossref.work \
  -H "Authorization: Bearer $GETALLAPIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"doi":"10.1038/s41586-021-03819-2"}'
```

```python
from getallapis_client import Client
client = Client()  # reads GETALLAPIS_API_KEY
result = client.run('crossref.work', {'doi': '10.1038/s41586-021-03819-2'})
print(result['cost_usd'], result['output'])
```

```bash
getallapis run crossref.work '{"doi":"10.1038/s41586-021-03819-2"}'
```

Quote first (free, validates input): `POST /v1/quote/crossref.work` with the same body.
