Counts
This endpoint provides information about individual research outputs. For example, you can query this endpoint using a DOI and retrieve the relevant Altmetric data. The API is optimized for querying for a single identifier or a strictly defined search.
Request
- GET /{version}/{identifier_type}/{id}
Fetch a research output using the supplied identifier type and identifier
Example request:
GET /v1/doi/10.1038/news.2011.490 HTTP/1.1 Host: api.altmetric.com
Query parameters:
Parameter
Required
Accepts
Description
version
Yes
v1
See Versioning
identifier type
Yes
doi
handle
pmid
arxiv
ads
ssrn
repec
isbn
id
nct_id
urn
uri
A valid identifier type.
identifier
Yes
A valid identifier of the type specified by
identifier_type
Identifiers should not be URL-encoded.
HTTP status codes:
Code
Description
The body of the response should contain the data you requested.
You aren’t authorized for this call. Some requests require an API key.
Altmetric doesn’t have any details for the research output or set of research outputs you requested.
You are being rate limited. If you haven’t already then apply for an API key.
The API version you are using is currently down for maintenance.
Warning
Altmetric IDs are transient and unstable over the medium term. For long term application it is recommended that persistent IDs such as DOIs, arXiv IDs or PMIDs are used instead.
Response object
A GET
request to the Counts Only endpoint returns a JSON object with the following keys where available.
Key |
Type |
Description |
---|---|---|
|
string |
Title of the publication |
|
number |
Internal ID associated with the research output. Altmetric IDs are transient and unstable over the medium term. |
|
string |
Relevant DOI. |
|
string |
Relevant Pubmed Id. |
|
string |
Relevant Pubmed Central Id. |
|
string |
URI for a captured identifier (e.g https://doi.org/xxx). |
|
string |
URL to publication page. |
|
string [] |
Relevant ISBN(s). |
|
string |
Internal identifier assigned to each journal or collection. |
|
string[] |
Relevant Handle(s). |
|
string [] |
Relevant ISSN(s). |
|
string |
Name of publication journal. |
|
number |
The print date that the publication was published. In Unix. |
|
number |
The date that the publication was published electronically. In Unix. |
|
number |
Returns the |
|
object |
See Cohorts for more information. |
|
string |
Full abstract for the article. |
|
string |
Source for the abstract (e.g PUBMED). |
|
string[] |
Author names. |
|
string |
|
|
boolean |
Deprecated. |
|
object |
See Context for more information. |
|
number |
Number of walls that have mentioned the output on Facebook. |
|
number |
Number of blogs that have mentioned the publication. |
|
number |
Number of accounts that have shared on Google+. |
|
number |
Number of news sources that have mentioned the publication. |
|
number |
Number of Redditors that have posted about this publication. |
|
number |
Number of forum and Stack Exchange based sites accounts that have mentioned this publication. |
|
number |
Number of twitter accounts that have tweeted this publication. |
|
number |
Number of wikipedia pages that have cited this publication. |
|
number |
Number of policies that have mentioned this publication. |
|
number |
Number of patents that have mentioned this publication. |
|
number |
Number of Youtube channels. |
|
number |
The number of unique sources referencing the research output and is the sum of all |
|
number |
A |
|
number |
Last time the score changed. In UNIX. |
|
decimal |
Current Altmetric Attention Score. |
|
object |
See History for more information. |
|
number |
Date when Altmetric first captured attention. In UNIX. |
|
string[] |
Initially imported from Scopus in 2011 (Deprecated). |
|
string[] |
Subjects for journal. Originally enriched from National Academy of Medicine (Deprecated). |
|
object[] |
See Publisher subjects for more information. |
|
object |
See Readers for more information. |
|
number |
Total number of unique users who have saved this article in Mendeley, CiteULike or Connotea. |
|
object |
See Images for more information. |
|
string |
URL to relevant Altmetric Details Page. |
|
string[] |
Author and editor names. |
|
string |
Source of data. For example Google Books. |
Cohorts
Cohorts of users who have mentioned the publication on Twitter.
Key |
Type |
Description |
---|---|---|
|
number |
Somebody who doesn’t link to scholarly literature and doesn’t otherwise fit any of the categories below. |
|
number |
Somebody who carries out academic or scientific research. |
|
number |
Somebody who links frequently to scientific articles from a variety of different journals / publishers. |
|
number |
A clinician, or a researcher working in clinical science. |
Context
Contains details of the Altmetric score and, where possible, provides some context. See Breakdown for a breakdown of context.
Key |
Type |
Description |
---|---|---|
|
object |
Contains statistics about the entire Altmetric database. |
|
object |
Contains statistics about all articles from the same journal that have been tracked by Altmetric. |
|
object |
Contains statistics about articles from any journal published within 6 weeks on either side of this one. |
|
object |
Contains statistics about articles from the same journal and published within 6 weeks on either side of this one. |
Note
Only research outputs that have a score greater than 0 and are associated with a journal (has an altmetric_jid
) will have a score in context.
Breakdown
Available types are all
journal
similar_age_3m
similar_age_journal_3m
.
Key |
Type |
Description |
---|---|---|
|
number |
Number of publications in this journal in this time period. |
|
decimal |
Mean score for publications in this journal in this time period. |
|
number |
Score in context rank within publications in the journal in this time period. |
|
number |
% of publications from this journal with fewer mentions in this time period. |
|
number |
Number of publications from this journal with fewer mentions in this time period. |
Note
We split the representative sample in percentiles and put the highest score in each 10% into the spark-lines array. Thus the first element of that array is the highest scoring article in the sample set, the second element is the highest score in the 90th %ile, the third element in the 80th %ile and so on.
History
Provides details on how much of the score occurred in a given timeframe.
Key |
Type |
Description |
---|---|---|
|
decimal |
Score change in the last year. |
|
decimal |
Score change in the last six months. |
|
decimal |
Score change in the last 3 months. |
|
decimal |
Score change in the last one month. |
|
decimal |
Score change in the last week. |
|
decimal |
Score change in the last six days. |
|
decimal |
Score change in the last five days. |
|
decimal |
Score change in the last four days. |
|
decimal |
Score change in the last three days. |
|
decimal |
Score change in the last two days. |
|
decimal |
Score change in the last one day. |
|
decimal |
Current Altmetric Attention Score. |
Publisher subjects
Subjects for journal set by the publisher.
Key |
Type |
Description |
---|---|---|
|
string |
Name of subject |
|
string |
Available schemes are |
Readers
Note
Mendeley counts aren’t updated in real time and there can sometimes be lag of up to a week between the reader count reported by Altmetric and the count on mendeley.com.
Key |
Type |
Description |
---|---|---|
|
number |
Readers in Mendeley. |
|
number |
Readers in Connotea (no longer updated). |
|
number |
Readers in CiteULike (no longer updated). |
Images
Contains links to PNG versions of the donut.
Key |
Type |
Description |
---|---|---|
|
string |
64px x 64px PNG of the donut. |
|
string |
100px x 100px PNG of the donut. |
|
string |
180px x 180px PNG of the donut. |
Example response
{
"title": "Number of species on Earth tagged at 8.7 million",
"doi": "10.1038/news.2011.498",
"nlmid": "0410462",
"journal": "Nature News",
"altmetric_id": 243700,
"cited_by_posts_count": 138,
"cited_by_tweeters_count": 134,
"score": 114.5,
"history": {
"1d": 114.5,
"2d": 114.5,
"3d": 114.5,
"4d": 114.5,
"5d": 114.5,
"6d": 114.5,
"1w": 114.5,
"1m": 114.5,
"3m": 114.5,
"1y": 114.5,
"at": 114.5
},
"url": "http://www.nature.com/news/2011/110823/full/news.2011.498.html",
"added_on": 1314135172,
"published_on": 1314054000,
"subjects": [
"science"
],
"readers": {
"mendeley": -1,
"downloads": -1
},
"images": {
"small": "http://api.altmetric.com/donut/241939_64x64.png",
"medium": "http://api.altmetric.com/donut/241939_100x100.png",
"large": "http://api.altmetric.com/donut/241939_180x180.png"
},
"details_url": "http://www.altmetric.com/details.php?citation_id=657451"
}
Try it yourself
Click on any of the URLs below to view example responses for the listed scenarios.
Scenario |
URL |
---|---|
Fetch a research output by its Altmetric Id |
|
Fetch a research output by its Digital Object Identifier |
|
Fetch a research output by its PubMed Id |
|
Fetch a research output by its arXiv Id |
|
Fetch a research output by its bibcode Id |
|
Fetch a research output by its ISBN number |