Skip to content

Latest commit

 

History

History
63 lines (47 loc) · 2.37 KB

get-lists-of-works.md

File metadata and controls

63 lines (47 loc) · 2.37 KB

Get lists of works

You can get lists of works:

Which returns a response like this:

{
    "meta": {
        "count": 245684392,
        "db_response_time_ms": 929,
        "page": 1,
        "per_page": 25
    },
    "results": [
        {
            "id": "https://openalex.org/W1775749144",
            "doi": "https://doi.org/10.1016/s0021-9258(19)52451-6",
            "title": "PROTEIN MEASUREMENT WITH THE FOLIN PHENOL REAGENT",
            // more fields (removed to save space)
        },
        {
            "id": "https://openalex.org/W2100837269",
            "doi": "https://doi.org/10.1038/227680a0",
            "title": "Cleavage of Structural Proteins during the Assembly of the Head of Bacteriophage T4",
            // more fields (removed to save space)
        },
        // more results (removed to save space)
    ],
    "group_by": []
}

Page and sort works

You can page through works and change the default number of results returned with the page and per-page parameters:

You can sort results with the sort parameter:

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

Sample works

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