Skip to content

Instantly share code, notes, and snippets.

@rogerblanton
Last active May 26, 2016 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rogerblanton/3b91c7560bf3b70db915 to your computer and use it in GitHub Desktop.
Save rogerblanton/3b91c7560bf3b70db915 to your computer and use it in GitHub Desktop.
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