Learn R Programming

⚠️There's a newer version (2.0.0) of this package.Take me there.

openalexR

openalexR helps you interface with the OpenAlex API to retrieve bibliographic information about publications, authors, institutions, sources, funders, publishers, topics and concepts with 5 main functions:

  • oa_fetch: composes three functions below so the user can execute everything in one step, i.e., oa_query |> oa_request |> oa2df

  • oa_query: generates a valid query, written following the OpenAlex API syntax, from a set of arguments provided by the user.

  • oa_request: downloads a collection of entities matching the query created by oa_query or manually written by the user, and returns a JSON object in a list format.

  • oa2df: converts the JSON object in classical bibliographic tibble/data frame.

  • oa_random: get random entity, e.g., oa_random("works") gives a different work each time you run it

Copy Link

Version

Install

install.packages('openalexR')

Monthly Downloads

11,029

Version

1.4.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Massimo Aria

Last Published

April 5th, 2025

Functions in openalexR (1.4.0)

oa_generate

Iterating through records
process_topics

Process topics
publishers2df

Convert OpenAlex collection of publishers' records from list format to data frame
show_authors

Simplify the OpenAlex authors result
show_works

Simplify the OpenAlex works result
oa_ngrams

Get N-grams of works
oa_query

Generate an OpenAlex query from a set of parameters
snowball2df

Flatten snowball result
sources2df

Convert OpenAlex collection of sources' records from list format to data frame
works2df

Convert OpenAlex collection of works from list format to data frame
topics2df

Convert OpenAlex collection of topics' records from list format to data frame
oa_request

Get bibliographic records from OpenAlex database
ngram2df

Convert a "Work" entity's ngram data from list to data frame
authors2df

Convert OpenAlex collection of authors' records from list format to data frame
funders2df

Convert OpenAlex collection of funders' records from list format to data frame
concepts2df

Convert OpenAlex collection of concepts' records from list format to data frame
oa2bibliometrix

Convert OpenAlex collection from data frame to bibliometrix object
oa2df

Convert OpenAlex collection from list to data frame
institutions2df

Convert OpenAlex collection of institutions' records from list format to data frame
concept_abbrev

Concepts and abbreviations.
oa_apikey

Get apikey from options
countrycode

Index of Countries and their alpha-2 and aplha-3 codes.
oa_snowball

A function to perform a snowball search and convert the result to a tibble/data frame.
openalexR-package

openalexR: Getting Bibliographic Records from 'OpenAlex' Database Using 'DSL' API
oa_entities

Available entities in the OpenAlex database
oa_fetch

Fetching records
oa_email

Get email from options
oa_random

oa_fetch but for a random query