Skip to content

Latest commit

 

History

History
62 lines (46 loc) · 2.37 KB

get-lists-of-topics.md

File metadata and controls

62 lines (46 loc) · 2.37 KB

Get lists of topics

You can get lists of topics:

Which returns a response like this:

{
    "meta": {
        "count": 4516,
        "db_response_time_ms": 10,
        "page": 1,
        "per_page": 25,
        "groups_count": null
    },
    "results": [
        {
            "id": "https://openalex.org/T11475",
            "display_name": "Territorial Governance and Environmental Participation",
            // more fields (removed to save space)
        },
        {
            "id": "https://openalex.org/T13445",
            "display_name": "American Political Thought and History",
            // more fields (removed to save space)
        },
        // more results (removed to save space)
    ],
    "group_by": []
}

Page and sort topics

By default we return 25 results per page. You can change this default and page through topics with the per-page and page parameters:

You also can sort results with the sort parameter:

Continue on to learn how you can filter and search lists of topics.

Sample topics

You can use sample to get a random batch of topics. Read more about sampling and how to add a seed value here.

Select fields

You can use select to limit the fields that are returned in a list of topics. More details are here.