Skip to content

Instantly share code, notes, and snippets.

@marcduiker
Last active June 29, 2022 08:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcduiker/0fd7e686d4e519ce1deb530dd26cd1e0 to your computer and use it in GitHub Desktop.
Save marcduiker/0fd7e686d4e519ce1deb530dd26cd1e0 to your computer and use it in GitHub Desktop.
Various dev.to analytics endpoints to get the reactions and pageviews for articles or an organization.
@apiKey=DEVTO_APIKEY
@orgId=DEVTO_ORGANIZATION_ID
@articleId=DEVTO_ARTICLE_ID
### Get historical analytics per day for an article since the given start date.
GET https://dev.to/api/analytics/historical?start=2022-05-01&article_id={{articleId}}
api-key: {{apiKey}}
### Get total (aggregate) analytics for an article.
https://dev.to/api/analytics/totals?article_id={{articleId}}
api-key: {{apiKey}}
### Get total (aggregate) analytics for an organization.
https://dev.to/api/analytics/totals?organization_id={{orgId}}
api-key: {{apiKey}}
### Get analytics for the past day for an article.
GET https://dev.to/api/analytics/past_day?article_id={{articleId}}
api-key: {{apiKey}}
### Get the referrers for an article
GET https://dev.to/api/analytics/referrers?article_id={{articleId}}
api-key: {{apiKey}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment