Answer the question
In order to leave comments, you need to log in
Google plus1 button API?
In the documentation for the API, I did not find how to get the number of plus signs for a specific url.
Can someone come across, if such a possibility? (It's just that the tweeter has , but it's not in the documentation either)
If the API does not have such an opportunity, will it be legal to execute js and parse the page?
Answer the question
In order to leave comments, you need to log in
I have not tried it in practice, but after studying the requests, it turns out something like this:
Send a request to clients6.google.com/rpc?key= [developer key] with a post request of the form
and in response you get
[
{
"method":"pos.plusones.get",
"id":"p",
"params": {
"nolog":true,
"id":"http://habrahabr.ru/",
"source":"widget",
"userId":"@viewer",
"groupId":"@self"
},
"jsonrpc":"2.0",
"key":"p",
"apiVersion":"v1"
}
]
[
{
"result": {
"kind": "pos#plusones",
"id": "http://habrahabr.ru/",
"isSetByViewer": false,
"metadata": {
"type": "URL",
"globalCounts": {
"count": 6.0
}
}
},
"id": "p"
}
]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question