Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Share Count APIs

Share Counts

Twitter

GET URL:

http://cdn.api.twitter.com/1/urls/count.json?url=http://blantonmedia.com

Returns:

{
	"count":0,
	"url":"http://blantonmedia.com"
}

Facebook

GET URL:

http://graph.facebook.com/?id=http://blantonmedia.com

Returns:

{
   "id": "http://blantonmedia.com",
   "shares": 0
}

Pinterest

GET URL:

http://api.pinterest.com/v1/urls/count.json?callback=&url=http://blantonmedia.com

Result:

({"count": 0, "url": "http://blantonmedia.com"})

LinkedIn

GET URL:

http://www.linkedin.com/countserv/count/share?url=http://blantonmedia.com&format=json

Returns:

{
	"count":0,
	"fCnt":"0",
	"fCntPlusOne":"1",
	"url":"http:\/\/blantonmedia.com"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.