# OpenAlex Search

The open scholarly graph — papers by relevance, with authors, venue, open-access flag, and citation counts.

- Method: `GET`
- Path: `/v1/papers/openalex`

**Parameters**

| Name | Type | | Description |
|---|---|---|---|
| `q` | string | required | Search terms. |
| `limit` | integer | optional | 1 to 50 works. |
| `max_age` | integer (seconds) | optional | Ask for data no older than this. Clamped to the product's own floor, so it can narrow the window but never force a refresh on every call. |

**Example request**

```bash
curl https://api.diraz.ae/v1/papers/openalex \
  -H "Authorization: Bearer drz_live_…"
```

**Example response**

```json
{
  "data": {
    "query": "graphene",
    "total": 775542,
    "works": [
      {
        "id": "https://openalex.org/W1234567890",
        "doi": "https://doi.org/10.1126/science.1102896",
        "title": "Electric Field Effect in Atomically Thin Carbon Films",
        "publication_year": 2004,
        "cited_by_count": 45000,
        "authors": ["K. S. Novoselov", "A. K. Geim"],
        "venue": "Science",
        "is_open_access": false
      }
    ]
  },
  "meta": {
    "request_id": "req_7Q2fK4mZ",
    "as_of": "2026-08-21T04:05:00.000Z",
    "age_seconds": 42,
    "next_update_at": "2026-08-22T04:05:00.000Z"
  }
}
```