WakaTime Commits API

Per-project commits enriched with coding time.

Operations 2

GET /users/current/projects/{project}/commits List Project Commits #
GET /users/current/projects/{project}/commits/{hash} Get Project Commit #

Documentation

Specifications

Schemas & Data

Other Resources

🔗
Signup
https://wakatime.com/signup
🔗
OAuth
https://wakatime.com/developers#authentication
🔗
APIKeys
https://wakatime.com/api-key
🔗
ChangeLog
https://wakatime.com/changelog
🔗
Status
https://wakatime.com/status
🔗
Embeddable
https://wakatime.com/share
🔗
DataExport
https://wakatime.com/settings/account
🔗
Webhooks
https://wakatime.com/settings/webhooks
🔗
JSONLD
https://raw.githubusercontent.com/api-evangelist/wakatime/refs/heads/main/json-ld/wakatime-context.jsonld
🔗
SpectralRules
https://raw.githubusercontent.com/api-evangelist/wakatime/refs/heads/main/rules/wakatime-rules.yml
🔗
Vocabulary
https://raw.githubusercontent.com/api-evangelist/wakatime/refs/heads/main/vocabulary/wakatime-vocabulary.yml
🔗
Plans
https://raw.githubusercontent.com/api-evangelist/wakatime/refs/heads/main/plans/wakatime-plans-pricing.yml
🔗
RateLimitsPolicy
https://raw.githubusercontent.com/api-evangelist/wakatime/refs/heads/main/rate-limits/wakatime-rate-limits.yml
🔗
FinOps
https://raw.githubusercontent.com/api-evangelist/wakatime/refs/heads/main/finops/wakatime-finops.yml
🔗
SDKs
https://github.com/wakatime/wakatime-cli
🔗
CLI
https://github.com/wakatime/wakatime-cli
🔗
Integrations
https://wakatime.com/integrations
🔗
Embeddables
https://wakatime.com/share
🔗
APIsJSON
https://raw.githubusercontent.com/api-evangelist/wakatime/refs/heads/main/apis.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/wakatime/refs/heads/main/arazzo/wakatime-daily-activity-audit-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/wakatime/refs/heads/main/arazzo/wakatime-data-dump-export-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/wakatime/refs/heads/main/arazzo/wakatime-goals-review-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/wakatime/refs/heads/main/arazzo/wakatime-leaderboard-to-user-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/wakatime/refs/heads/main/arazzo/wakatime-private-leaderboard-rankings-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/wakatime/refs/heads/main/arazzo/wakatime-project-deep-dive-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/wakatime/refs/heads/main/arazzo/wakatime-send-heartbeat-and-verify-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/wakatime/refs/heads/main/arazzo/wakatime-stats-range-comparison-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/wakatime/refs/heads/main/arazzo/wakatime-summaries-to-durations-workflow.yml
🔗
Arazzo
https://raw.githubusercontent.com/api-evangelist/wakatime/refs/heads/main/arazzo/wakatime-user-profile-overview-workflow.yml

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/wakatime-commits-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

wakatime-commits-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WakaTime Commits API
  version: v1
  description: WakaTime API v1 provides automated time-tracking analytics for software developers.
  contact:
    name: WakaTime Support
    url: https://wakatime.com/contact
    email: support@wakatime.com
  termsOfService: https://wakatime.com/terms
  license:
    name: WakaTime Terms of Service
    url: https://wakatime.com/terms
  x-generated-from: documentation
  x-source-url: https://wakatime.com/developers
  x-last-validated: '2026-05-30'
servers:
- url: https://wakatime.com/api/v1
  description: WakaTime production API
- url: https://api.wakatime.com/api/v1
  description: WakaTime alternate hostname
security:
- oauth2: []
- apiKey: []
- bearerAuth: []
tags:
- name: Commits
  description: Per-project commits enriched with coding time.
paths:
  /users/current/projects/{project}/commits:
    get:
      operationId: listProjectCommits
      summary: List Project Commits
      description: Returns commits for the specified project, each enriched with coding-time totals.
      tags:
      - Commits
      parameters:
      - $ref: '#/components/parameters/ProjectPath'
      - name: page
        in: query
        schema:
          type: integer
          minimum: 1
        example: 1
      - name: author
        in: query
        description: Filter by commit author.
        schema:
          type: string
        example: example
      responses:
        '200':
          description: Commits list.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Commit'
              examples:
                ListProjectCommits200Example:
                  summary: Default listProjectCommits 200 response
                  x-microcks-default: true
                  value:
                    data:
                    - id: 5f8a2c7f-8b3a-4c2c-9b3f-1d2c4f5b6a7c
                      author_avatar_url: https://wakatime.com/photo/5f8a2c7f-8b3a-4c2c-9b3f-1d2c4f5b6a7c
                      author_date: '2026-05-30T12:34:56Z'
                      author_email: kin@apievangelist.com
                      author_html_url: https://github.com/kinlane
                      author_id: 5f8a2c7f-8b3a-4c2c-9b3f-1d2c4f5b6a7c
                      author_name: Kin Lane
                      author_url: https://wakatime.com/@kinlane
                      author_username: kinlane
                      branch: main
                      committer_avatar_url: https://wakatime.com/photo/5f8a2c7f-8b3a-4c2c-9b3f-1d2c4f5b6a7c
                      created_at: '2026-05-30T12:34:56Z'
                      hash: 9b8c4d2e6f1a3b5c7d9e8f0a1b2c3d4e5f6a7b8c
                      html_url: https://github.com/wakatime/wakatime-cli/commit/9b8c4d2e6f1a3b5c7d9e8f0a1b2c3d4e5f6a7b8c
                      human_readable_natural_total_time: about 4 hours
                      human_readable_total: 4 hrs 12 mins
                      human_readable_total_with_seconds: 4 hrs 12 mins 5 secs
                      is_authored_by_user: true
                      message: Initial commit
                      ref: refs/heads/main
                      total_seconds: 4
                      truncated_hash: 9b8c4d2
                      url: https://wakatime.com/@kinlane/projects/wakatime-cli
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /users/current/projects/{project}/commits/{hash}:
    get:
      operationId: getProjectCommit
      summary: Get Project Commit
      description: Returns a single commit for the specified project.
      tags:
      - Commits
      parameters:
      - $ref: '#/components/parameters/ProjectPath'
      - name: hash
        in: path
        required: true
        description: Commit hash.
        schema:
          type: string
        example: example
      responses:
        '200':
          description: Commit details.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Commit'
              examples:
                GetProjectCommit200Example:
                  summary: Default getProjectCommit 200 response
                  x-microcks-default: true
                  value:
                    data:
                      id: 5f8a2c7f-8b3a-4c2c-9b3f-1d2c4f5b6a7c
                      author_avatar_url: https://wakatime.com/photo/5f8a2c7f-8b3a-4c2c-9b3f-1d2c4f5b6a7c
                      author_date: '2026-05-30T12:34:56Z'
                      author_email: kin@apievangelist.com
                      author_html_url: https://github.com/kinlane
                      author_id: 5f8a2c7f-8b3a-4c2c-9b3f-1d2c4f5b6a7c
                      author_name: Kin Lane
                      author_url: https://wakatime.com/@kinlane
                      author_username: kinlane
                      branch: main
                      committer_avatar_url: https://wakatime.com/photo/5f8a2c7f-8b3a-4c2c-9b3f-1d2c4f5b6a7c
                      created_at: '2026-05-30T12:34:56Z'
                      hash: 9b8c4d2e6f1a3b5c7d9e8f0a1b2c3d4e5f6a7b8c
                      html_url: https://github.com/wakatime/wakatime-cli/commit/9b8c4d2e6f1a3b5c7d9e8f0a1b2c3d4e5f6a7b8c
                      human_readable_natural_total_time: about 4 hours
                      human_readable_total: 4 hrs 12 mins
                      human_readable_total_with_seconds: 4 hrs 12 mins 5 secs
                      is_authored_by_user: true
                      message: Initial commit
                      ref: refs/heads/main
                      total_seconds: 4
                      truncated_hash: 9b8c4d2
                      url: https://wakatime.com/@kinlane/projects/wakatime-cli
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
components:
  parameters:
    ProjectPath:
      name: project
      in: path
      required: true
      description: Project name.
      schema:
        type: string
      example: example
  schemas:
    Commit:
      type: object
      properties:
        id:
          type: string
          example: 5f8a2c7f-8b3a-4c2c-9b3f-1d2c4f5b6a7c
        author_avatar_url:
          type:
          - string
          - 'null'
          format: uri
          example: https://wakatime.com/photo/5f8a2c7f-8b3a-4c2c-9b3f-1d2c4f5b6a7c
        author_date:
          type: string
          format: date-time
          example: '2026-05-30T12:34:56Z'
        author_email:
          type:
          - string
          - 'null'
          format: email
          example: kin@apievangelist.com
        author_html_url:
          type:
          - string
          - 'null'
          format: uri
          example: https://github.com/kinlane
        author_id:
          type:
          - string
          - 'null'
          example: 5f8a2c7f-8b3a-4c2c-9b3f-1d2c4f5b6a7c
        author_name:
          type: string
          example: Kin Lane
        author_url:
          type:
          - string
          - 'null'
          format: uri
          example: https://wakatime.com/@kinlane
        author_username:
          type:
          - string
          - 'null'
          example: kinlane
        branch:
          type:
          - string
          - 'null'
          example: main
        committer_avatar_url:
          type:
          - string
          - 'null'
          format: uri
          example: https://wakatime.com/photo/5f8a2c7f-8b3a-4c2c-9b3f-1d2c4f5b6a7c
        created_at:
          type: string
          format: date-time
          example: '2026-05-30T12:34:56Z'
        hash:
          type: string
          example: 9b8c4d2e6f1a3b5c7d9e8f0a1b2c3d4e5f6a7b8c
        html_url:
          type:
          - string
          - 'null'
          format: uri
          example: https://github.com/wakatime/wakatime-cli/commit/9b8c4d2e6f1a3b5c7d9e8f0a1b2c3d4e5f6a7b8c
        human_readable_natural_total_time:
          type:
          - string
          - 'null'
          example: about 4 hours
        human_readable_total:
          type:
          - string
          - 'null'
          example: 4 hrs 12 mins
        human_readable_total_with_seconds:
          type:
          - string
          - 'null'
          example: 4 hrs 12 mins 5 secs
        is_authored_by_user:
          type: boolean
          example: true
        message:
          type: string
          example: Initial commit
        ref:
          type:
          - string
          - 'null'
          example: refs/heads/main
        total_seconds:
          type:
          - number
          - 'null'
          format: float
          example: 4
        truncated_hash:
          type: string
          example: 9b8c4d2
        url:
          type:
          - string
          - 'null'
          format: uri
          example: https://wakatime.com/@kinlane/projects/wakatime-cli
  securitySchemes:
    oauth2:
      type: oauth2
      description: OAuth 2.0 authorization code flow.
      flows:
        authorizationCode:
          authorizationUrl: https://wakatime.com/oauth/authorize
          tokenUrl: https://wakatime.com/oauth/token
          refreshUrl: https://wakatime.com/oauth/token
          scopes:
            email: Read user email.
            read_summaries: Read coding-activity summaries.
            read_stats: Read aggregate stats.
            read_goals: Read coding goals.
            read_heartbeats: Read raw heartbeats.
            write_heartbeats: Send heartbeats.
            read_orgs: Read organization data.
            write_orgs: Modify organization data.
        implicit:
          authorizationUrl: https://wakatime.com/oauth/authorize
          scopes:
            email: Read user email.
            read_summaries: Read coding-activity summaries.
            read_stats: Read aggregate stats.
            read_goals: Read coding goals.
            read_heartbeats: Read raw heartbeats.
            write_heartbeats: Send heartbeats.
            read_orgs: Read organization data.
            write_orgs: Modify organization data.
    apiKey:
      type: http
      scheme: basic
      description: HTTP Basic with the WakaTime API key as the username. Alternatively, pass `?api_key=...` as a query parameter.
    bearerAuth:
      type: http
      scheme: bearer
      description: OAuth access token in the Authorization header as `Bearer waka_tok_...`.