I am working with the Microsoft Academic API to download some bibliometric data. Microsoft Academic contains just like most bibliometric databases a wide selection of entities, ranging from data on individual publications to profiles of authors and institutions.
Currently I am using this code to download relevant data for paper entities:
import requests
response = requests.get("https://api.labs.cognitive.microsoft.com/academic/v1.0/evaluate?&expr=Composite(AA.AuN==john
smith)&count=1000&attributes=Ti&subscription-key=<subscription_key>")
Yet, I would like to also download "author profile" and "institution profile" data using the Microsoft Academic API, but I am not sure whether that is possible or how I can accomplish this. With "institution profile data" I mean not just the publication output of the specific institution, but rather data on where the institution is based, the total number of citations etc.
The documentation seems to suggest that it would be possible to download data from the other entities. I have tried quite a lot of things, but to no avail, so I was wondering if someone has already managed to do this.
Search by Author ID
For author profile data, use the author profile ID via
AA.AuIdin theexpr-field.Here is an example with the author profile ID
2154179079(Emanuel A.) withcount=30(30 publications) showingattributes=Ti,VFN, that is, the title of each publication (Ti) and the venue's full name (VFN, e.g. journal name or conference name):https://api.labs.cognitive.microsoft.com/academic/v1.0/evaluate?&expr=Composite(AA.AuId=2154179079)&count=30&attributes=AuN,Ti,VFN&subscription-key={YOUR-KEY}Search by Affiliation ID
Use the Affiliation ID via
AA.AfIdin theexpr-field.If you only want to find the publications from the Hebrew University of Jerusalem (ID:
197251160), then this would be the URL (again with 30 publications only showing titles and venues):https://api.labs.cognitive.microsoft.com/academic/v1.0/evaluate?&expr=Composite(AA.AfId=197251160)&count=30&attributes=Ti,VFN&subscription-key={YOUR-KEY}Search by Author ID and Affiliation ID
To search for both author ID and affiliation ID, change the
exprfield toComposite(And(AA.AuId={AUTHOR-ID},AA.AfId={AFFILIATION-ID})).For example, if you use the same author (Emanuel A.) from above, but only want to see the papers he published at the Hebrew University of Jerusalemn, then the
exprfield would read:expr=Composite(And(AA.AuId=2154179079,AA.AfId=197251160)).The whole URL is then:
https://api.labs.cognitive.microsoft.com/academic/v1.0/evaluate?&expr=Composite(And(AA.AuId=2154179079,AA.AfId=197251160))&count=30&attributes=Ti,VFN&subscription-key={YOUR-KEY}