{"action":"created","issue":{"url":"https://api.github.com/repos/guardian/frontend/issues/11286","labels_url":"https://api.github.com/repos/guardian/frontend/issues/11286/labels{/name}","comments_url":"https://api.github.com/repos/guardian/frontend/issues/11286/comments","events_url":"https://api.github.com/repos/guardian/frontend/issues/11286/events","html_url":"https://github.com/guardian/frontend/issues/11286","id":120627225,"number":11286,"title":"Share counting on twitter is broken","user":{"login":"mchv","id":615085,"avatar_url":"https://avatars.githubusercontent.com/u/615085?v=3","gravatar_id":"","url":"https://api.github.com/users/mchv","html_url":"https://github.com/mchv","followers_url":"https://api.github.com/users/mchv/followers","following_url":"https://api.github.com/users/mchv/following{/other_user}","gists_url":"https://api.github.com/users/mchv/gists{/gist_id}","starred_url":"https://api.github.com/users/mchv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mchv/subscriptions","organizations_url":"https://api.github.com/users/mchv/orgs","repos_url":"https://api.github.com/users/mchv/repos","events_url":"https://api.github.com/users/mchv/events{/privacy}","received_events_url":"https://api.github.com/users/mchv/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/guardian/frontend/labels/bug","name":"bug","color":"cc2b12"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-06T11:19:05Z","updated_at":"2015-12-11T17:02:41Z","closed_at":"2015-12-11T17:02:41Z","body":"The [current code](https://github.com/guardian/frontend/blob/master/static/src/javascripts/projects/common/modules/social/share-count.js#L100) was using an [unofficial twitter API](https://twittercommunity.com/t/is-http-urls-api-twitter-com-1-urls-count-json-a-valid-way-to-get-the-tweet-count-for-a-url/13369):\r\n\r\n```javascript\r\n                    url: 'https://cdn.api.twitter.com/1/urls/count.json?url=' + url,\r\n```\r\n\r\nThe endpoint has [now been turned off](https://twittercommunity.com/t/a-new-design-for-tweet-and-follow-buttons/52791) (16 days ago) so every request got a `410` response and result in an error in the browser console.\r\n\r\ncc @mattosborn \r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/guardian/frontend/issues/comments/163991041","html_url":"https://github.com/guardian/frontend/issues/11286#issuecomment-163991041","issue_url":"https://api.github.com/repos/guardian/frontend/issues/11286","id":163991041,"user":{"login":"gtrufitt","id":638051,"avatar_url":"https://avatars.githubusercontent.com/u/638051?v=3","gravatar_id":"","url":"https://api.github.com/users/gtrufitt","html_url":"https://github.com/gtrufitt","followers_url":"https://api.github.com/users/gtrufitt/followers","following_url":"https://api.github.com/users/gtrufitt/following{/other_user}","gists_url":"https://api.github.com/users/gtrufitt/gists{/gist_id}","starred_url":"https://api.github.com/users/gtrufitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtrufitt/subscriptions","organizations_url":"https://api.github.com/users/gtrufitt/orgs","repos_url":"https://api.github.com/users/gtrufitt/repos","events_url":"https://api.github.com/users/gtrufitt/events{/privacy}","received_events_url":"https://api.github.com/users/gtrufitt/received_events","type":"User","site_admin":false},"created_at":"2015-12-11T17:02:41Z","updated_at":"2015-12-11T17:02:41Z","body":"FYI, "}}