WakaTime API
Overview
WakaTime automatically tracks how much time you spend coding in your editor and exposes this data through a public API. You can retrieve coding stats per project, language, editor, and OS for any user who has made their profile public. Great for building developer dashboards, portfolio widgets, or team productivity tools.
Beginner Tip
You can access any public WakaTime profile without authentication using the /api/v1/users/:username/stats endpoint. If you need your own private stats, generate an API key from your WakaTime account settings and use HTTP Basic Auth with a Base64-encoded key.
Available Data
Example Response
{
"name": "Bohemian Rhapsody",
"artist": "Queen",
"album": "A Night at the Opera",
"duration_ms": 354000,
"popularity": 92,
"preview_url": "https://p.scdn.co/mp3-preview/..."
} Field Reference
data.total_seconds Total seconds of coding activity in the selected period data.languages List of programming languages used, with time breakdown per language data.projects List of projects worked on, with time breakdown per project data.editors Editors used during the period with time spent in each data.range Start and end dates of the stats period in ISO 8601 format Implementation Example
const url = "https://wakatime.com/developers";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Fully tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →Vector Express v2.0
⭐ Beginner's PickVector Express is a free, no-auth API for converting vector and raster files between formats such as SVG, PDF, DXF, EPS, and PNG.
Airtable
⭐ Beginner's PickAirtable's REST API lets you read, create, update, and delete records in any Airtable base as if it were a flexible database.
Api2Convert
Api2Convert is an online file conversion API that supports converting between hundreds of formats including documents, images, audio, and video files.
apilayer pdflayer
⭐ Beginner's PickThe pdflayer API by apilayer converts any HTML snippet or public URL into a high-quality PDF file with a simple GET or POST request.
Asana
⭐ Beginner's PickThe Asana API gives you full programmatic access to your Asana workspace — tasks, projects, users, comments, and more.