Skip to content

Add API Endpoint for Last Updated Timestamp #16

@jagdish-15

Description

@jagdish-15

Currently, there is no way to determine when the leaderboard data was last updated. Since all leaderboard JSON files (overall, monthly, weekly, daily) are updated together via workflow, we can expose the last modified timestamp of one of these files through a new API endpoint.

Expected Behavior

  • Create a new API endpoint: /api/last-updated
  • The endpoint should return the last modified time of one of the data files (e.g., data/overall.json)
  • Response should be in JSON format

Example response:

{
  "lastUpdated": "2026-04-07T10:30:00.000Z"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    BackendTask mainly involving backendDifficulty: MediumIndicates the difficultyenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions