question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BREAKING CHANGE] WakaTime Stats API Changes

See original GitHub issue

The 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

image

After than it will give you HTML code like this: image

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:closed
  • Created 3 years ago
  • Comments:18 (6 by maintainers)

github_iconTop GitHub Comments

8reactions
anuraghazracommented, Feb 10, 2021

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)

3reactions
LevraGavcommented, Feb 12, 2021

Yeah it’s working now, thank you very much guys @anuraghazra @SP-XD

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found