njall / Orctrix

Beautify and enhance your portfolio with enriched ORCID and Altmetrix data
MIT License
5 stars 2 forks source link

Integrate alt metrics percentile information #7

Open njall opened 8 years ago

njall commented 8 years ago

Or whatever little info altmetrics gives. Good to show a 'what we would have done if we had more API permission'

jenshnielsen commented 8 years ago

The simple solution is to embed a badge from doi as seen here: https://www.altmetric.com/products/altmetric-badges/

API (free/ commercial ) levels are documented here https://www.altmetric.com/products/altmetric-api/

Use of the free API is (sparsely) documented here http://api.altmetric.com/

jenshnielsen commented 8 years ago

With the free API we can get num tweets, number of news mentions etc but we can't actually get the sources.

jenshnielsen commented 8 years ago

A free api call gives something like

curl 'http://api.altmetric.com/v1/doi/10.1038/480426a'
{"title":"365 days: 2011 in review.","doi":"10.1038/480426a","pmid":"22193080","tq":["Top 40 countries by the number of scientific papers published. Source","Top 40 countries by the number of scientific papers published.","Top 40 countries by the number of scientific papers published. Source #dataviz: #science","Countries numbers of scientific papers published"],"ads_id":"2011Natur.480..426V","altmetric_jid":"4f6fa62f3cf058f6100082d3","issns":["0028-0836","1744-7933"],"journal":"news@nature.com","cohorts":{"sci":322,"doc":57,"com":82,"pub":1902},"context":{"all":{"count":4907871,"mean":5.8349917919618,"rank":159,"pct":99,"higher_than":4907889},"journal":{"count":296,"mean":115.97811525424,"rank":1,"pct":99,"higher_than":295},"similar_age_3m":{"count":237697,"mean":4.4269931593297,"rank":4,"pct":99,"higher_than":237693},"similar_age_journal_3m":{"count":127,"mean":107.44544444444,"rank":1,"pct":99,"higher_than":126}},"type":"news","altmetric_id":502878,"schema":"1.5.4","is_oa":false,"cited_by_fbwalls_count":22,"cited_by_feeds_count":4,"cited_by_gplus_count":33,"cited_by_posts_count":2598,"cited_by_tweeters_count":2363,"cited_by_accounts_count":2422,"last_updated":1458655840,"score":1710.372,"history":{"1y":388.6,"6m":244.3,"3m":139.55,"1m":45.35,"1w":10.5,"6d":10.5,"5d":9.65,"4d":6.1,"3d":6.1,"2d":6.1,"1d":6.1,"at":1710.372},"url":"http://dx.doi.org/10.1038/480426a","added_on":1324491937,"published_on":1324512000,"subjects":["science"],"readers":{"citeulike":"0","mendeley":"51","connotea":"0"},"readers_count":51,"images":{"small":"https://altmetric-badges.a.ssl.fastly.net/?size=64&score=1711&types=btttttfg","medium":"https://altmetric-badges.a.ssl.fastly.net/?size=100&score=1711&types=btttttfg","large":"https://altmetric-badges.a.ssl.fastly.net/?size=180&score=1711&types=btttttfg"},"details_url":"http://www.altmetric.com/details.php?citation_id=502878"}
jenshnielsen commented 8 years ago
{"title":"365 days: 2011 in review.",
"doi":"10.1038/480426a",
"pmid":"22193080",
"tq":["Top 40 countries by the number of scientific papers published. Source","Top 40 countries by the number of scientific papers published.","Top 40 countries by the number of scientific papers published. Source #dataviz: #science","Countries numbers of scientific papers published"],
"ads_id":"2011Natur.480..426V",
"altmetric_jid":"4f6fa62f3cf058f6100082d3",
"issns":["0028-0836","1744-7933"],
"journal":"news@nature.com",
"cohorts":{"sci":322,"doc":57,"com":82,"pub":1902},
"context":{"all":{
"count":4907871,"mean":5.8349917919618,"rank":159,"pct":99,"higher_than":4907889},
"journal":{"count":296,"mean":115.97811525424,"rank":1,"pct":99,"higher_than":295},
"similar_age_3m":{"count":237697,"mean":4.4269931593297,"rank":4,"pct":99,"higher_than":237693},
"similar_age_journal_3m":{"count":127,"mean":107.44544444444,"rank":1,"pct":99,"higher_than":126}
},
"type":"news",
"altmetric_id":502878,
"schema":"1.5.4",
"is_oa":false,
"cited_by_fbwalls_count":22,
"cited_by_feeds_count":4,
"cited_by_gplus_count":33,
"cited_by_posts_count":2598,
"cited_by_tweeters_count":2363,
"cited_by_accounts_count":2422,
"last_updated":1458655840,
"score":1710.372,
"history"{
"1y":388.6,
"6m":244.3,
"3m":139.55,
"1m":45.35,
"1w":10.5,
"6d":10.5,
"5d":9.65,
"4d":6.1,
"3d":6.1,
"2d":6.1,
"1d":6.1,
"at":1710.372},
"url":"http://dx.doi.org/10.1038/480426a",
"added_on":1324491937,
"published_on":1324512000,
"subjects":["science"],
"readers":{
"citeulike":"0",
"mendeley":"51",
"connotea":"0"},
"readers_count":51,
"images":{
"small":"https://altmetric-badges.a.ssl.fastly.net/?size=64&score=1711&types=btttttfg",
"medium":"https://altmetric-badges.a.ssl.fastly.net/?size=100&score=1711&types=btttttfg",
"large":"https://altmetric-badges.a.ssl.fastly.net/?size=180&score=1711&types=btttttfg"},
"details_url":"http://www.altmetric.com/details.php?citation_id=502878"}