Skip to main content
Question

Python Integration to fetch daily revenue through API call

  • December 10, 2025
  • 1 reply
  • 10 views

Forum|alt.badge.img

Hello, I am trying to fetch the daily revenue for a project through API Call in python. I have the API key and the project ID. However, I am unable to locate the endpoint to get the daily revenue for a specified date range. All I can get is a snapshot of their dashboard (containing the last 28 day revenue) with the following code: 

 

url = f"https://api.revenuecat.com/v2/projects/{project_id}/metrics/overview"
headers = {
    "Authorization": f"Bearer {API_KEY}",
    "Accept": "application/json"
}

 

response = requests.get(url, headers=headers)
response.raise_for_status()

metrics = response.json().get('metrics', [])

df = pd.DataFrame(metrics).rename(columns={'id': 'metric', 'value': 'value'})
print(df)

 

Can someone please help me with the code, that will take date range as input in parameters and give me a breakdown of daily revenue for the date range?

1 reply

hussain
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • December 12, 2025

Hi ​@akanksha-e75142,

Thanks for reaching out. I’m happy to help.

At the moment, there isn’t currently a public REST API endpoint that will return time-series / per-day revenue for an arbitrary date range.

The Overview Metrics v2 API endpoint you’re calling:

GET https://api.revenuecat.com/v2/projects/{project_id}/metrics/overview

only returns a snapshot of high-level metrics, including Revenue for the last 28 days, and it doesn’t support parameters for a custom date range or daily breakdowns. In other words.

Hope this helps, let me know if you have any other questions.

Best,

Hussain