Is there a way to pull trending instagram hashtags in real-time? - instagram

I'm working on an app that would automatically generate instagram hashtags for the user, allowing them to snap a photo, get auto hashtags, and post right away. Is there a way I can pull the most trending instagram hashtags in real-time and have the app generate them for every user at the time they're posting?

No, there is no direct way to get this information from the API. Though you might be able to get clever with the endpoints that are there and figure out what's trending that way.
You could query a user using the users endpoint, search through all the hashtags they've used on the last 100 or so media captions, and then infer "trendy" hashtags that way.
You could query a hashtag using the hashtags endpoint, search through all the hashtags used on the last 100 or so media captions, and then infer "trendy" hashtags that way.
One thing that I do in my app (https://app.promoplanner.net) is I look at the frequency of posts for a given hashtag (i.e. what's the average time between each post for a given hashtag). Small time deltas tell me that a hashtag is popular.
Either way, you need to start your query with either a user or a hashtag, you can't as a broad question like what's trending. You can only ask questions like "what's trending relative to #kesha" or "what's trending relative to #urbanfarming"

Related

How to find data on the most-streamed songs of all time on Spotify, globally?

I'm working on a projected with Spotify data and I need a list of the most-streamed songs of all time on Spotify. (Not my own listening history, but the global stream counts) This information should be out there, because songs on Spotify publicly display their stream count, but there's no actual list of the most-streamed songs beyond the first 100 or 200. I want to be able to get as many songs as I want, or at least 1000 or 2000. I'm using python for this but could use something else if necessary. I've found SpotiPy, but it doesn't seem to have this capability as far as I can tell.
I looked for answers online but found nothing. And I've emailed Spotify and even gotten responses, but their responses weren't at all helpful. They either didn't understand my question or redirected me to their research and developer sites which don't see to have what I want.

Getting total number of streams and track release date through Spotify API

I'm trying to get a large list of songs released in year X, together with their number of plays/streams.
I've been using Spotify API, and I have a number of highly popular songs. Now, for my purposes, I also need a list of non-popular songs (low play counts). I am wondering if there is any strategy to get a list of songs (maybe last played ones?), and extract their release year and number of total plays?
I've been going through the API documentation and I can only find 'popularity', which seems different from total number of plays. Secondly, I haven't found a way to get a list of last played songs yet. Should I be considering another type of strategy?
I know that you can get a list of recently played songs of all users in certain user groups in last.fm. Perhaps there is something similar in Spotify API?
Unfortunately, there is no way to get play counts through the Spotify API, only the Popularity metric.

Similar venues with location foursquare API

I am playing with Foursquare API and I was wondering if theres an endpoint for getting a similar venue in a location given another venue?
All I found is this endpoint:
https://api.foursquare.com/v2/venues/VENUE_ID/similar
Which returns a list of venues similar to a given venue. What I want is, exactly this but I want the returned venues be close to a given location.
For example:
I love a mexican restaurant in London.
I want to find a similar restaurant but in Barcelona.
Is that possible?
Thanks!
The venues/similar endpoint will only show similar venues near the desired venue. Your best bet is probably using the query parameter with venues/explore. The query parameter is pretty smart about determining your intent if you know what you're looking for and you can specify any location.
i.e.
https://api.foursquare.com/v2/venues/explore?
query=Mexican food outdoor seating
near=Barcelona

Searching user profiles on Twitter

I found a number of similar questions on SO but they are all are either 2+ years old or aren't exactly what I am looking for.
All I would like to do is obtain a list of twitter users whose bio/profile contains certain terms (scientist, democrat, 'dog lover', etc.).
I've considered using a google site search but so far the results are incredibly noisy.
Any suggestions would be much appreciated!
CS
The Twitter API supports a People Search similar to the website's "Find on Twitter" search feature. Although you can not directly search using only profile descriptions, it appears that the description content is used as part of the search space. If you can think of a way to narrow down your results even further by directly searching the returned users' descriptions, you should be able to do what you're looking for. Check out the Twitter API documentation for more info.
Example:
Try searching for "husband father of three", and you get these results, which obviously are returned because of the profile descriptions.
I have used one tool to search twitter profiles using keywords and many advance filters. I love the information which has been provided by the FollowerSearch tool. The information was very specific, which helps me to analyze the public twitter profiles.
One of the best tools for quickly searching among the 800 million public Twitter accounts in the database is FollowerSearch.
With FollowerSearch, you can quickly conduct searches for Twitter influencers and Twitter bios across its massive database of more than 800 million Twitter profiles. You may look for Twitter profiles based on information like their location, line of work, number of followers, etc.
Twitter Influencer Profile Search
A Twitter bios search will assist you in simplifying the process, whether you're looking for influencers or new talent. You can discover Twitter folks who share your interests. Find out exact information on all the accounts whose bios contain your search term.
Identify key accounts and Twitter influencers that have required terms in their Twitter bios.
Look up new and budding talent.
Find Twitter users with similar interests.
Search Twitter profile or Search Twitter bios for any desired term.
I created a tool that does exactly what your looking for. Find70 let's you search for twitter profiles by their twitter bio. In fact, you can set up as many search filters as you want and define your own weighting for each filter. In your example above, you could search for: scientist, democrat, 'dog lover' and it would return all the accounts that have those in the bio. This can be combined with other filters too. Here it is http://www.find70.com/?t=stack

Getting locations of user's friends with Foursquare API

Is it possible to get the nearby locations of a user's friends, or, when searching for nearby venues, determine how many friends are present at each of the venues?
In other words, I would like to list all nearby venues along with a count of friends here now. Can this be done without making venue detail calls on all of the venues?
Friend information is not currently accessible via the /venues/search endpoint -- only the total number of users at the venue.
As you mentioned, you can call the /venues/VENUE_ID/herenow endpoint to get more information (including friend vs. non-friend) breakdowns for the returned venues.
You can, alternatively, make a single call to /checkins/recent and combine the data about current friend location with /venues/search results.

Resources