I wanted to use the Twitter API to get the friends status list from many users.
How many requests could I request in one moment?
Little another question:
What's faster: XML or JSON with a lot of data with PHP?
Currently, there is a rate limit of 350 requests per hour when using OAuth. I believe it's 150 when using Basic Auth which will be deprecated in June.
The number of requests per hour over REST is irrelevant here as to achieve what you require (tracking the friends of many users I assume) then you need to be using site streams rather than the REST API. This will give you an initial list of friends for a followed user then will stream you updates to that user as any changes happen.
Related
Below is my code:
$response= $fb->sendRequest('GET', '/me/feed', ['fields' => 'message,type,attachments'],
$val->api_token, 'eTag', 'v2.10');
dd($response);
Get only 25 records How to get all feed in single request what should i add them in query string.
Almost every commercial API provides Rate Limiting / Throttling and Record Limiting Per Request. Even Graph API does Rate Limiting and Record Limiting
When you are requesting let's say 100 records, the 3rd party API server is using it's resources to get you those 100 records. The thing is, there might be many API clients like you who want to use the same API for their usage. So, Rate Limiting helps the API providers to make sure each client is not requesting large set of data together.
Also, it's very unlikely that you will need all data from Graph API at once. It is suggested to use pagination so that you are requesting small number of data per API request.
If you want to save all in your database, You can save in incrementally like get 50 records and store it, then get next 50 and store them and so on..
currently working with Google analytics to get a list of companies based on GA's Service providers (which after a filter of "default ones" I can determine the leads). Now I would like to be able to get an overview of urls visited per lead. I can't find any way to get those service providers linked to visited urls in the API.
P.S. only interested in results of last 24 hours so I don't need full histories.
I would just request ga:pagePath, ga:networkLocation dimensions ga:pageViews metric then add a filter on with ga:date = today. The filter will ensure that you only get data back for today.
This should give you a list of the Network domans and what pages they viewed today.
There is a problem with this it can take a while for google to process the data i have read any where from 4 - 8 hours. I normaly filter on yesterday that way i'm almost always sure that all the data was processed. You could try with the realTime api but then there isnt much data there and there are a limited number of dimensions and metrics you can select from it. I'm not even sure that what you are looking for is available.
I am looking to add a twitter feed (using the jTweetAnywhere.js plugin) with Shopify. Although I have it working, I am concerned I will run into Twitter's API limit issues. As far as I know, Shopify does NOT allow you to use PHP, so I am not sure how to cache and recall any tweets.
Are they any suggestions as to how I can cache Tweets and then recall them WITHOUT PHP and MYSQL?
Thank you so much!
Jenn
While the Twitter rate limits apply to an IP, if there are thousands of hits on a Shop at once, it appears to Twitter that the IP's are from the various customers' computers, so hitting the limits should not count in your case. It is not as if all the hits will appear to be coming from Shopify's data centre.
I have a task to create a dynamic page (PHP or Javascript) that shows:
Number of tweets with specific hash tag
Number of tweets that came from specific country!!
most popular hash-tags for specific country
does anybody have any idea of how to get such stats or part of them??
Thanks a lot for your help
Yes, but you should really search more because there's a lot of information out there on this - start at the Twitter API Docs.
You use it as a search term
Try https://dev.twitter.com/docs/places/finding-tweets-about-places
Combine 1. & 2.
No. Twitter releases its statistics after a certain period of time. There's no definitive/official API for that. But there are a lot of third-party applications that offer that.
InsideTwitter
Twitter by Country
Twitter Counter
I am relatively new to the twitter API so the question might seem foolish but please help me out.
I am trying to get tweets from user's timeline using their API, which I know is possible.
Now the issue is I have to get tweets from multiple users (combining upto 30-40 users) timelines into one API request. How can I do this?
Would the streaming API help? I couldn't make heads or tail of it.
You can add those users to a list and pull the timeline for the list.