Skip to content

Latest commit

 

History

History
63 lines (47 loc) · 2.42 KB

get-lists-of-concepts.md

File metadata and controls

63 lines (47 loc) · 2.42 KB

Get lists of concepts

You can get lists of concepts:

Which returns a response like this:

{
    "meta": {
        "count": 65073,
        "db_response_time_ms": 26,
        "page": 1,
        "per_page": 25
    },
    "results": [
        {
            "id": "https://openalex.org/C41008148",
            "wikidata": "https://www.wikidata.org/wiki/Q21198",
            "display_name": "Computer science",
            // more fields (removed to save space)
        },
        {
            "id": "https://openalex.org/C71924100",
            "wikidata": "https://www.wikidata.org/wiki/Q11190",
            "display_name": "Medicine",
            // more fields (removed to save space)
        },
        // more results (removed to save space)
    ],
    "group_by": []
}

Page and sort concepts

By default we return 25 results per page. You can change this default and page through concepts 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 concepts.

Sample concepts

You can use sample to get a random batch of concepts. 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 concepts. More details are here.