I am new to twitter API. Is there any way that i can get number of retweet of any URL.
I want to calculate it without any login into twitter.
This will return a simple json with a count property of re-tweets for a specific URL
http://urls.api.twitter.com/1/urls/count.json?url=SOME_URL_HERE
Example:
API CALL:
http://urls.api.twitter.com/1/urls/count.json?url=http://techcrunch.com/2011/07/05/kissmetrics-now-lets-sites-analyze-their-users-browsing-habits-%E2%80%94%C2%A0before-they-even-sign-up/
JSON RESPONSE:
{"count":235,"url":"http://techcrunch.com/2011/07/05/kissmetrics-now-lets-sites-analyze-their-users-browsing-habits-%E2%80%94%C2%A0before-they-even-sign-up/"}
What do you want to calculate? How effective your marketing strategy is?
This is not possible via twitter.
Of course you can do: use the search API via link:yourlink or you could use bit.ly and their statistics to see who tweeted about destinct urls. Another solution could be http://jetwick.com which is open source now
Related
I want to get the timeline post of the other user using weibo api but not getting.weibo API. I am using few API Call like user_timeline,trends but not getting any proper data. please, let me know if I missing any API or any settings in App. I have appKey, secret key and redirect url.
As far as I can tell, the API calls that would get you this info have all been restricted. The English documentation is not updated, but the chinese documentation specifies for example that you can only use User_timeline to get your own timeline, not others.
http://open.weibo.com/wiki/2/statuses/user_timeline
接口升级后:uid与screen_name只能为当前授权用户
For months, I have used the following hash to get all follows of a given logged in users back from the Instagram API:
https://api.instagram.com/v1/users/self/follows?count=-1&access_token=%#
The count=-1 being the key parameter to achieve that.
My app started to return empty dictionaries back from the Instagram API from one day to the next.
I found out that this was linked to the count=-1 no longer working on the Instagram API.
Would anyone know what the new syntax might be now?
I couldn't find anything on other web sources.
Thanks!
Just update the url to
https://api.instagram.com/v1/users/USERID/follows?access_token=TOKEN&count=COUNT
Where:
USERID - your user id
TOKEN - the access token
COUNT - how many users you want get
I've been trying to figure this out for quite some time now. I am trying to Display most recently uploaded video from a specific user. First I tried doing It with most_recent (https://gdata.youtube.com/feeds/api/standardfeeds/GB/most_recent) etc.., but I soon realized that It is only able to get most recent video from a specific country, not user specific like I want. So the question is, what IS The url to get to user specific latest upload? All the google's pages about their API didn't mention a word about it(or I'm blind)
Pages I've read:
https://developers.google.com/youtube/2.0/reference?csw=1
https://developers.google.com/youtube/2.0/developers_guide_protocol#Standard_feeds
Getting most recent youtube video links for a user using API
https://developers.google.com/youtube/2.0/developers_guide_protocol_video_feeds
I suggest to use Data API v3 instead of GData since it's the supported API. Support and new features will only come to Data API v3.
The way to do in v3 is, you first do a channels->list with part=contentDetails and mine=true to get authorized user's channel or id=USERS_CHANNEL_ID or forUsername = USERS_USERNAME
like GET https://www.googleapis.com/youtube/v3/channels?part=contentDetails&mine=true&key={YOUR_API_KEY}
in the response you get uploads playlist id and put it into playlistItems->list call in "id" parameter
GET https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&id={ID}&key={YOUR_API_KEY}
Uploads playlist is in order, so first result is the most recent upload. If you just want that result, in the call you can set maxResults=1
If you want to use api version 2 instead of 3: Here is the documentation link:
https://developers.google.com/youtube/2.0/developers_guide_protocol_video_feeds#User_Uploaded_Videos
The url to use is:
https://gdata.youtube.com/feeds/api/users/userId/uploads
;Where you replace userId, with the id of the specific user.
Use: https://gdata.youtube.com/feeds/api/users/userId/uploads?max-results=1 , if only 1 result is needed.
I am trying to get all the playlist feed URLs from the YouTube channel in my iOS application.
Below is the URL to get the XML data consists of the required contents.
https://gdata.youtube.com/feeds/api/users/thenewboston/playlists?v=2
This is working fine, which results in the response of an XML with data.
But when I change this to my username nothing is retrieved. I have couple of playlists in my channel.
My Attempts:
Attempt 1:
I have googled and cross checked my channel's privacy settings which is Public in default.
Am I making any wrong? Please let me know your comments.
Attempt 2:
When I try like this in browser, http://www.youtube.com/user/myusername
getting "This channel is not available at the moment. Please try again later.".
The same url is working fine for thenewboston.
Try this
https://gdata.youtube.com/feeds/api/videos?v=2&author=USER_NAME&orderby=published
This will fetch all the user videos.
I have found the solution:
Below is the format that I have tried.
https://gdata.youtube.com/feeds/api/users/userId/playlists?v=2
But it seems there is some change in the API.
To request a feed of another user's playlists, send a GET request to the following URL. This request does not require authentication.In the URL above, you should replace the text userId with the user's YouTube user ID. For backward compatibility purposes, the API also supports having the user's YouTube username specified instead.
To find the userId in YouTube : (Follow the steps below)
Click the arrow on top right after login to your YouTube account.
Select YouTube settings.
Select the link Advanced and find the YouTube User Id there.
Reference : YouTube API v.2.0
I am trying to use Facebook's Graph API to get nearby places but when I try https://graph.facebook.com/search?type=place¢er=37.76,122.427&distance=1000 , I get an authentication error. I registered my mobile application on Facebook but I am not sure how to authorize it so that I can search. How can I do this?
You need to add the access_token to the GET params you're sending. Also, you can add a q='query' param to search for an exact term like airport or cafe...
https://graph.facebook.com/search?type=place¢er=37.76,122.427&distance=1000&access_token=2227470867|2.BsVGGHo_rW5YzHPWjk4UMw__.3600.1304935200.0-100001037215362|5jSEZH-iCmFUB7A8myjG98IZVVQ