Twitter api 1.1 trend place only get the trend by today. It that possible I can select a specific date?
No, the API does not allow you that.
You have to get support in a third part that who keeps a record
http://twend.it/ is a good source of historical trends
Related
I am searching for historical data (last 3-4 years) from youtube/instagram/spotify/twitter.
The goal is to compare the development of views/subsription/likes over time for about 500 accounts/channels. Monthly data would be perfectly fine.
From looking at some of the APIs, it is only possible to get the data of the day. Socialblade gives you in some cases the data for the last month.
Is there an API or a Service that would help this task ?
For Twitter https://developer.twitter.com/en/docs/tweets/batch-historical/overview
For Youtube https://developers.google.com/youtube/reporting/#choose-the-right-api-for-your-application
For Instagram https://www.instagram.com/developer/endpoints/
I don't think this kind of data is available for Spotify https://developer.spotify.com/documentation/web-api/reference/users-profile/
i'm University students of South korea
I'm developing analysis application using bigdata of twitter with my advisor professor. So i'm gathering tweets contains specific keyword(relevant word of crime) at period. I use 'streaming api' and 'search api' now. I have seen that using search api and streaming api result is return tweets of only one week.
I should be get the old data that have keyword of crime and since 2006 until 2016
do you have any idea?
Sadly you can't get tweets from that time range.
From the documentation:
The Search API is not complete index of all Tweets, but instead an index of recent Tweets. At the moment that index includes between 6-9 days of Tweets.
So, you can only get recent tweets from the search API. Be careful too with the data beacuse it's about relevance not completeness, from the same documentation:
Before getting involved, it’s important to know that the Search API is focused on relevance and not completeness. This means that some Tweets and users may be missing from search results. If you want to match for completeness you should consider using a Streaming API instead.
If you really need older tweets you will have to get them from other sources like Gnip. Otherwise you will have to approach differently your problem.
If you have the names (or id's) of all the users that you want to get info you could get the timelines from each user getting up to 3200 tweets.
I am working since last 3 days to find solution about how we can get old data from twitter api around 3 month over limitation of twitter api about 1 week. can some one help me to know best solution.
You cannot get any tweet for the last 3 months apart if you store them in your own database.
The only solution for you would be to pay Twitter GNIP to access historical data.
The Twitter API only provides the most recent tweets for a given search, up to ~3200.
The so-called "firehose" and some datasets are available mostly for research or developer purposes.
There are some services which sell custom datasets, including Twitter itself (which purchased Gnip). The overview by Justin Littman at GWU is rather comprehensive.
I'm trying to analyze tweets by Insights for Twitter. I use PowerTrack. I would like to search past tweets before the track's createdDate. I use query option(posted) in order to search past tweets.
When I set the date before the track's createdDate (query 1), I got no tweet. When I set the date after the track's createdDate (query 2), I got many tweets.
Doesn't Twitter PowerTrack support past date tweets before the track's createdDate ?
track's createDate: 2015-11-05T04:27:34.747Z
query1(after createDate): posted:2015-11-05T04:28:00Z,2015-11-05T04:33:00Z
-> I got many tweets.
query2(before createData): posted:2015-11-05T04:08:00Z,2015-11-05T04:13:00Z
-> I got no tweet.
The PowerTrack API supports realtime tweets only. It indexes new tweets after you activate the track and stops when you deactivate it or the endDate property of the track is reached (this is an optional property). After track is started you can query tweets from it.
Powertrack does not index past tweets. There is another API called Historical Powertrack that can index past tweets, but it is not supported by the Insights for Tweets Bluemix service.
The two queries you created are working as expected based on the track you have.
From the GNIP web site (http://support.gnip.com/faq):
What are the technical differences between realtime PowerTrack and
Historical PowerTrack?
Realtime PowerTrack provides customers with the
ability to filter Twitter’s full realtime firehose and data is
delivered to the customer’s application through a constant stream as
Tweets are posted. See the realtime PowerTrack Questions section below
for more details. Historical PowerTrack is a RESTful API that provides
access to the entire historical archive of public Twitter data – back
to the first Tweet in March 2006 – using the same rule-based-filtering
system as realtime PowerTrack. See the Historical PowerTrack Questions
section below for more details.
PowerTrack Supports only real time streaming. That is if you create a track and setup rules it will start getting filtered data from that moment.
If you want to access the historic data Gnip has given one more tool Historical Powertrack that can give you all the tweets since the beginning.
The restriction with Historical PowerTrack is the end time should be 30 min less than the current time.
I would like to know if there is a java library or API , that can extract tweets of my interest such as i want to know which tweets have reported about the strike in upcoming days in Islamabad city or bomb blast recently occured in my city . etc. I know there are other libraries out there but they only tell about whether the specific tweet is positive , negative or neutral. Thanks
Every library for integrating twitter tweets to your application is based on the twitter apis.
For your specific example, you can try Search API.
The process is really simple: just try from here your keywords to determine which keywords best suit your need and then use the actual API like this(returns tweets with keyword:Islamabad) to return the tweets you need in a JSON format.
NOTE:
Version 1.1 of the APIS uses an OAuth Authentication(I have not tried it yet so I can not provide more details :( ).
Now for Java libraries(frameworks) that simplify this process, the only one I know is Spring Social. But in case you are not familiar with Spring framework in general, the best thing is to just read the Json url generated by the api and unmarshall it to get your results.