J535D165 / pyalex

A Python library for OpenAlex (openalex.org)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Geo Support?

OliverKulinski opened this issue · comments

Can't find support for Geo side of the API anywhere.

Will this feature be added? If not do you know another repo for it?
It would be very useful for assessing region- and continent-specific research output

Thanks

Hi @OliverKulinski,

PyAlex offers support for the geo api. See the following examples (from the OpenAlex documentation):

In [1]: from pyalex import Institutions

In [2]: Institutions().filter(continent="south_america").url
Out[2]: 'https://api.openalex.org/institutions?filter=continent:south_america'

In [3]: from pyalex import Works

In [4]: Works().group_by("institutions.continent").url
Out[4]: 'https://api.openalex.org/works?group-by=institutions.continent'

Let me know if things are missing in pyalex!