It's easy to get a topic from the API with: /topics/<entity_id>
. Here's an example:
- Get the topic with the OpenAlex ID
C71924100
:
https://api.openalex.org/topics/T11636
That will return a Topic
object, describing everything OpenAlex knows about the topic with that ID:
{
"id": "https://openalex.org/T11636",
"display_name": "Artificial Intelligence in Medicine",
// other fields removed for brevity
}
{% hint style="info" %} You can make up to 50 of these queries at once by requesting a list of entities and filtering on IDs using OR syntax. {% endhint %}
You can use select
to limit the fields that are returned in a topic object. More details are here.
- Display only the
id
anddisplay_name
for a topic object
https://api.openalex.org/topics/T11636?select=id,display\_name