Issue #3711 new

Downloads API (BB-1696)

Seth Jackson avatarSeth Jackson created an issue

Closely related to #2394 I would like a REST API for retrieving any "downloads" the user has uploaded to a repo.

Ex:

curl https://api.bitbucket.org/1.0/repositories/USERNAME/REPO_SLUG/downloads

would return the downloads for a repo, and all the data for each individual download (size, date uploaded, download count, url to download the file, etc.)

Comments (21)

  1. Dylan Etkin

    Hi Seth,

    There are a number of places where our API is deficient. This is certainly one of those. Thank you for reporting.

    We are hoping to make strides with the API this year so I hope we will get to this in the near to medium future.

    Cheers,

    Dylan

  2. Kevin Herrera

    GitHub has just announced that they are deprecating "uploads" (downloads) and their API.

    https://github.com/blog/1302-goodbye-uploads

    Seize the opportunity and implement support for retrieving downloads via API.

    A reasonably sized project I own requires the downloads feature, and I'm currently shopping for a new host. I cannot select Bitbucket since downloads are not supported through the API. I cannot be the only one with this type of requirement.

  3. Christoph Mewes

    You aren't. I'm also waiting for this to be implemented, as we try to automatically link to our downloads on BB and curently need the parse our project's download HTML page...

  4. Pyker

    +1 here. I think it would be a much cleaner solution to have this implemented in the API (not to mention it would make the API more complete).

  5. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.