[BREAKING CHANGE] WakaTime Stats API Changes
See original GitHub issueThe Problem
As pointed in #863 seems like wakatime changed their public API and now we can only access the resources only if the requests is authenticated.
That’s why while fetching the data it throws “FOBIDDEN” error and we cannot fetch the data.
Solution
So to fix this issue I think it would be nicer if we utilize wakatime’s embeddable share feature https://wakatime.com/share/embed
Benefits of this feature is that
- No need of authentication
- Super nice JSON responses
- Users are can change how much data they need to show (last_7_days, last_30_days etc etc)
- Lot of options to customize without us needing to tinker around with the response data
Usage
- First users would visit https://wakatime.com/share/embed
- Select “languages”
- And generate the embed code
After than it will give you HTML code like this:
And just simply copy past the highlighted part of the string intro github readme stats url
https://github-readme-stats.vercel.app/api/wakatime?shareid=yourusername/6c3e4875-6301-4b7e-955f-9251e06c7d95
And that’s it.
But there’s a catch
As I noticed this json response only shows percentage
data and does not provides us with time
data about the languages.
@alanhamlett can you help us with this issue?
Issue Analytics
- State:
- Created 3 years ago
- Comments:18 (6 by maintainers)
Top Results From Across the Web
FAQ - WakaTime
Why are my public profile and leaderboard stats different than my dashboard? Your public profile uses the default 15 minute timeout value with...
Read more >When Is A Change A Breaking Change For An API - Ben Nadel
Ben Nadel thinks about all of the changes that you can make in an API which could be considered a "breaking change" for...
Read more >where can I enter api-key of wakatime in eclipse?
To put API-key in Eclipse, let come into File > Waka Time > API Key then paste API-key. To view your api key: ......
Read more >Easiest way to set up your GitHub profile page - Aleks Popovic
We need to edit the readme file with some markdown and it will all show up ... Wakatime stats](https://github-readme-stats.vercel.app/api/ ...
Read more >Reaching $10k monthly revenue with WakaTime, my SaaS ...
With that filename in majority of cases you're violating HIPAA even ... data storage & reads - if you change your Timeout Preference...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @SP-XD @FC5570 @LFGaming @LevraGav the fix has been deployed and you can try it out now. (note that we have cache so if you see no changes, just add
&v=2
at the end of the url to bust the cache)Yeah it’s working now, thank you very much guys @anuraghazra @SP-XD