openalexR - issue with output of institutions

51 views
Skip to first unread message

Laura Bredahl

unread,
Mar 6, 2025, 11:50:21 AM3/6/25
to OpenAlex Community
Hello,
openalexR --> not pulling all institutions with country filter. This should be a fairly simple API call to openalex but it is not doing what I expect. It is only pulling 206 institutions, missing most of the universities I would expect to see.

I have posted the code on gist.


Tijmen Altena

unread,
Mar 6, 2025, 11:59:48 AM3/6/25
to Laura Bredahl, OpenAlex Community

Hi Laura,

 

There’s an issue with country codes for the institutions, which are null for many organizations that should have one. A subset of those, that do have a ROR (and strangely also have a country in their geo object) is here: https://api.openalex.org/institutions?filter=country_code:null,ror:!null

 

There’s no way to filter for Canadian institutions there, unfortunately, but you could maybe add name filters and see if the universities you are missing are not there because the country code is null.

 

We’ve submitted an issue a while ago but they’re probably still working on it at OpenAlex.

 

Best,

Tijmen Altena
CTO at GlobalCampus

--
You received this message because you are subscribed to the Google Groups "OpenAlex Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openalex-commun...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/openalex-community/f2e935ec-8e86-40a0-aaad-62ac7fbe5003n%40googlegroups.com.

Laura Bredahl

unread,
Mar 6, 2025, 12:05:17 PM3/6/25
to Tijmen Altena, OpenAlex Community
Thanks Tijmen, 

I can try some work around. I had done this call about a month ago and it worked fine so I thought I was going crazy!

I'll post if I find a solution that might help others.
Message has been deleted

Laura Bredahl

unread,
Mar 14, 2025, 5:00:37 PM3/14/25
to OpenAlex Community
Hi All,

I thought I'd send an update to let you all know that the country filter does actually work. It is the "type" filter for entity = "institution" that is the bug. The type = 'education' is particularly affected because many institutions have been mis-categorized as "funder".

I let Kyle from OpenAlex know and he said they are aware of the issue and is working on it.

Best,

Laura

Reply all
Reply to author
Forward
0 new messages