M
M
Melanitsky2011-07-01 17:23:11
API
Melanitsky, 2011-07-01 17:23:11

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

2 answer(s)
L
lafayette, 2011-07-01
@Melanitsky

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"
}
]

A
azizoid, 2012-03-22
@azizoid

But what about the fact that Twitter shortens all links? do they count?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question