v2

OpenAPI 3.1.0CC02026-07-264460181.4 KB
Subfields

List subfields

Get a list of subfields (third-level topic categories). There are 254 subfields spread across 26 fields.

get/subfields

Query parameters

filterstring

Filter subfields. Examples: field.id:17, domain.id:3, works_count:>100000 See all Subfield fields.

sortstring

Sort by: works_count, cited_by_count. Prefix with - for descending. See all Subfield fields.

group_bystring

Group by: field.id, domain.id See all Subfield fields.

searchstring

Full-text search across titles, abstracts, and other text fields. Example: search=machine learning

per_pageinteger

Number of results per page (1-100, default 25)

pageinteger

Page number for pagination. Use cursor for deep pagination beyond 10,000 results.

cursorstring

Cursor for deep pagination. Use cursor=* to start, then use the next_cursor from the response.

sampleinteger

Return a random sample of N results (max 10,000). Cannot be used with sort or page.

selectstring

Comma-separated list of fields to return. Reduces response size. Example: select=id,display_name,cited_by_count

api_keystring required

Your OpenAlex API key (required). Get a free key at https://openalex.org/settings/api

Response

Successful response

Example response

{
  "results": [
    {
      "id": "https://openalex.org/subfields/1702"
    }
  ]
}