{"action":"closed","issue":{"url":"https://api.github.com/repos/badges/shields/issues/626","repository_url":"https://api.github.com/repos/badges/shields","labels_url":"https://api.github.com/repos/badges/shields/issues/626/labels{/name}","comments_url":"https://api.github.com/repos/badges/shields/issues/626/comments","events_url":"https://api.github.com/repos/badges/shields/issues/626/events","html_url":"https://github.com/badges/shields/issues/626","id":125115753,"number":626,"title":"[Request] Bitbucket issue badges","user":{"login":"SamWhited","id":512573,"avatar_url":"https://avatars.githubusercontent.com/u/512573?v=3","gravatar_id":"","url":"https://api.github.com/users/SamWhited","html_url":"https://github.com/SamWhited","followers_url":"https://api.github.com/users/SamWhited/followers","following_url":"https://api.github.com/users/SamWhited/following{/other_user}","gists_url":"https://api.github.com/users/SamWhited/gists{/gist_id}","starred_url":"https://api.github.com/users/SamWhited/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamWhited/subscriptions","organizations_url":"https://api.github.com/users/SamWhited/orgs","repos_url":"https://api.github.com/users/SamWhited/repos","events_url":"https://api.github.com/users/SamWhited/events{/privacy}","received_events_url":"https://api.github.com/users/SamWhited/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/badges/shields/labels/feature-request","name":"feature-request","color":"006b75"},{"url":"https://api.github.com/repos/badges/shields/labels/new-badge","name":"new-badge","color":"fad8c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-06T05:51:04Z","updated_at":"2016-04-11T07:04:23Z","closed_at":"2016-04-11T07:04:23Z","body":"I would like to request badges similar to the GitHub issue badges but for Bitbucket.\r\n\r\nThis can be accomplished quite easily using the v1 API, eg. using something like this:\r\n\r\n```\r\nhttps://bitbucket.org/api/1.0/repositories/{accountname}/{repo_slug}/issues/?limit=0\r\n```\r\n\r\nwhich returns a JSON blob like the following:\r\n\r\n```json\r\n{\r\n  \"count\": 15,\r\n  \"filter\": {},\r\n  \"search\": null,\r\n  \"issues\": []\r\n}\r\n```\r\n\r\nTags, releases, and commits are also GitHub badges that would be nice to have for Bitbucket, but this ticket is for the issues list in particular."}}