Skip to content

Using end=2025-01-01 (without time) in API is confusing #836

@alinovian

Description

@alinovian

Hi there,

I'm experiencing an issue with the API for my account. The /api/v0/stats/total endpoint works correctly, but the /api/v0/stats/hits endpoint consistently fails or returns an empty array, even for dates that I can see have data in my dashboard.

My site code is: alinovian

Here are the API calls for diagnostics.

This call SUCCEEDS and returns the correct total:

curl -H "Authorization: Bearer [API_KEY]" \
    "https://[sites]/api/v0/stats/total"

This call FAILS (returns empty or error) even though my dashboard shows N/A visits for this date:

curl -H "Authorization: Bearer [API_KEY]" \
    "https://[sites]/api/v0/stats/hits?from=2025-08-24&to=2025-08-24"

It seems there might be an issue with the /stats/hits endpoint for my account. Could you please look into this?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions