v1

latestOpenAPI 3.1.02026-08-04134182237.9 KB
Admin

Get Download Stats

Get product download statistics (gateway, sdk_pypi, extension_vscode).

get/api/admin/downloads/stats

Query parameters

periodstring

Time period: last_day, last_week, last_month, last_90_days, last_year, custom

Time period: last_day, last_week, last_month, last_90_days, last_year, custom

start_datestring nullable

Start date for custom period (ISO format: YYYY-MM-DD)

Start date for custom period (ISO format: YYYY-MM-DD)

end_datestring nullable

End date for custom period (ISO format: YYYY-MM-DD)

End date for custom period (ISO format: YYYY-MM-DD)

sourcestring nullable

Filter by source: gateway, sdk_pypi, extension_vscode (or None for all)

Filter by source: gateway, sdk_pypi, extension_vscode (or None for all)

Response

Successful Response

successboolean
periodstring required

Time period (last_hour, last_day, etc.)

period_startstring required

Start of period (ISO)

period_endstring required

End of period (ISO)

total_downloadsinteger

Total downloads in period

by_sourceobject

Downloads by source in period: gateway, sdk_pypi, extension_vscode

by_source_totalobject

All-time downloads by source for display cards

by_osobject

Downloads by OS

by_countryobject

Downloads by country