Oh no! Some styles failed to load. 😵 Please try reloading this page
Menu â–¾ â–´

Download Stats API

The API uses URLs very similar to the existing stats URLs. Here's an example:

https://sourceforge.net/projects/openofficeorg.mirror/files/stats/json?start_date=2014-10-29&end_date=2014-11-04

To access project-wide stats, use /files/stats/json in the URL. To limit to a file or folder, use /files/some/path/stats/json

URL parameters:

  • start_date - required, date in YYYY-MM-DD format
  • end_date - required, date in YYYY-MM-DD format
  • period - optional, control the level of detail in the results. Automatically defaults based on size of date range. May specify "daily" "weekly" or "monthly"
  • os_by_country - optional, include OS by Country breakdown. On by default. For a small performance improvement, pass os_by_country=false.
  • country_codes - optional, use 2-letter country codes in result. Default is to use country names.

The return data is in JSON format. The data should be pretty self-explanatory. A few notes:

  • "messages" may contain a list of informational messages, e.g. the date range was adjusted due to out of bounds start/end date
  • "period" contains one of daily, weekly, monthly. This is auto-selected based on the size of the date range, and the "downloads" list will contain days, weeks, or months respectively
  • "countries" uses full names
  • "stats_updated" is a timestamp. Stats have been updated up to that point in time.
  • all dates are UTC

Related

Documentation: API
Documentation: ToC

Get latest updates about Open Source Projects, Conferences and News.

Sign Up No, Thank you