Learn R Programming

openalexR

openalexR helps you interface with the OpenAlex API to retrieve bibliographic information about publications, authors, institutions, sources, funders, publishers, topics and keywords 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

2.0.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Massimo Aria

Last Published

April 5th, 2025

Functions in openalexR (2.0.0)

oa_entities

Available entities in the OpenAlex database
oa2df

Convert OpenAlex collection from list to data frame
oa2bibliometrix

Convert OpenAlex collection from data frame to bibliometrix object
oa_email

Get email from options
topics2df

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

Generate an OpenAlex query from a set of parameters
oa2df_coverage

Coverage of OpenAlex entity fields after converting to data frame.
oa_apikey

Get apikey from options
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
works2df

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

Process paper authorships
publishers2df

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

Process affiliations
process_topics

Process topics
show_authors

Simplify the OpenAlex authors result
show_works

Simplify the OpenAlex works result
sources2df

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

Get bibliographic records from OpenAlex database
oa_random

oa_fetch but for a random query
snowball2df

Flatten snowball result
countrycode

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

Convert keywords from list to data frame
institutions2df

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

Get coverage of OpenAlex fields in openalexR
funders2df

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

Get N-grams of works
concept_abbrev

Concepts and abbreviations.
ngram2df

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

Iterating through records
oa_fetch

Fetching records
concepts2df

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

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

Build abstract from inverted index