Last active
June 29, 2022 08:37
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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