adsabs / adsabs-dev-api

Developer API service description and example client code
163 stars 58 forks source link

Citation stats are all zeros for 2018ApJ...856L..18M using Metrics API #57

Closed pkgw closed 4 years ago

pkgw commented 4 years ago

I've been looking into the Metrics API. For the first bibcode I tried, 2018ApJ...856L..18M, the citation stats that I get out are all zero:

json.loads(requests.post(
  'https://api.adsabs.harvard.edu/v1/metrics', 
  headers={'Authorization': 'Bearer ' + token}, 
  json={'bibcodes': ['2018ApJ...856L..18M']}
).text)

=>

...
 'citation stats': {'number of self-citations': 0,
  'average number of refereed citations': 0.0,
  'median number of citations': 0.0,
  'self-citations': [],
  'number of citing papers': 0,
  'average number of citations': 0.0,
  'median number of refereed citations': 0.0,
  'total number of refereed citations': 0,
  'normalized number of refereed citations': 0,
  'normalized number of citations': 0,
  'total number of citations': 0},
...

For the second bibcode I tried, 2014ApJ...785...10C, the citation stats look fine. The first bibcode shows up with a bunch of citations in the UI and indeed should have a lot.

The fact that I saw this with the very first bibcode I tried suggests that it's not a rare issue. It would be noticed if it were happening in the main UI regularly, so I'm guessing that it's more localized to the Metrics API?

pkgw commented 4 years ago

Based on Twitter traffic, there was some issue with metrics recently, and this API call works now, so I'm going to go ahead and close this.