API Search Local Trending Videos - wordpress

Playing with the idea of making a video blog of locally trending videos that pulls from Youtube's API and posts trending videos related to Houston.
If I simply query for recent videos with the word Houston, I get a mix of car videos no one has seen, some Whitney Houston videos and some interesting local uploads.
Any suggestions for better paramaters? Could I get more specific with Youtube Trends? The Youtube Trends blog lets me search for trending videos in Houston, but there doesn't seem to be an API...

I'm not sure that there's currently a way to get videos via the API recently trending in Houston or the Houston area, but one idea for getting recent videos about Houston would be to use the topicId field in v3 of the API -- using Freebase topics yields much more semantically relevant results than a simple keyword search. For example, this query (you'll have to be oAuth authenticated to make this call):
GET https://www.googleapis.com/youtube/v3/search?part=snippet&topicId=%2Fm%2F03l2n
(/m/0312n is the Freebase Topic ID for the city of Houston) will return videos of live concerts in Houston, the Houston coffee & cars series, etc. If you were to collect a series of Freebase IDs that you think your viewers would be interested in (sports teams, local cuisine, etc. etc.), you could then aggregate your results and sort them by date or by view count.

Related

Can I get reviews or stars for hotels or restaurants in HERE Geocoding & Search API?

I can't seem to find anything in the documentation (link), but the previous version of the Places API (link) said:
Certain types of categories, such as restaurants or hotels, are ranked via a "recommendations-style" algorithm where measures of popularity or quality, such as number of stars or reviews, are taken into account.
Does that mean that I would be able to retrieve info on number of starts for a hotel or ratings for restaurants?
Rating is Rich content. Rich content is not covered within the base or extended content and is generally provided by third-party data
suppliers.
See more on references from Geocoding and Search API 7 Discover API here https://developer.here.com/documentation/geocoding-search-api/dev_guide/topics/endpoint-discover-brief.html

How to find Competitors using social media data

I am working on social media project in which I am trying to find the list of my competitor using my social media data. For example, suppose Nokia is our client. He registered his facebook account into our platform and provide following details such as he is working on Mobile and electronic category and its head office is in US. So based on these details I want to find who are may be his customers.
Right now I start with facebook and generate all the required token and keys also fetch some facebook page data using the getPage() and searchPage() function in Rfacebook package in R.
How can I find the name of competitors from this data?
What you can do is maybe use Twitter instead of Facebook, and then aggregate the list of twitter handles mentioned in the tweets addressed to the brand.
For example, customers generally mention a brand along with its competitors when they are posting an issue on the twitter page of a brand. A customer dissatisfied with Nokia will also mention other smartphone companies like Apple and Samsung in its tweets, and when you aggregate all the twitter handles mentioned in Nokia tweets, smartphone companies will feature at the top.
R has a twitteR package which makes it fairly easy to pull tweets addressed to a twitter handle.

Google news topic url parameter list?

I'm currently trying to build a news reader that gets rss feeds from different google news topics and I found this website that breaks down the url parameters pretty well, but under the topic parameter, the link that it has for a list of topics brings you to this page which says nothing about topic keywords. The only topic key that I've been able to find is tc being the key for the tech topic.
Does anybody know where I could find a list of these topics or if the topic=[topic] parameter is deprecated what I could use instead?
It will depend of country.
Example (for US):
WORLD
NATION
BUSINESS
TECHNOLOGY
ENTERTAINMENT
SPORTS
SCIENCE
HEALTH
RSS business (US)
https://news.google.com/news/headlines/section/topic/BUSINESS?ned=us&hl=en
But, if you query other country, the topic will change.
Example (Colombia):
WORLD.es_co
NATION.es_co
BUSINESS.es_co
TECHNOLOGY.es_co
ENTERTAINMENT.es_co
SPORTS.es_co
SCIENCE.es_co
HEALTH.es_co
Here is the RSS about economy/business in Colombia:
https://news.google.com/news/rss/headlines/section/topic/BUSINESS.es_co/Econom%C3%ADa?ned=es_co&hl=es
Check too the ned and hls parameters added.

Organic Keyword Data vs. SEO Queries in Google Analytics

What is the difference between Keywords>Organic data and Search Engine Optimization>Queries data? Aren't they both showing (or in the case of Organic Keywords, not showing) keywords that visitors clicked to go to your URLs?
Organic search data in the acquisition reports is the search term plucked from the referring search engine url that brought a visitor to the page and is connected to other data points (so for example for a provided search keywords you can see if it lead to a conversion).
SEO data are Google search keywords imported from Google Webmaster Tools. This report shows you what has been searched for in connection with your site (even if it didn't result in a visit) but is not really connected to other data points in your reports.
To be a bit more concise, organic keywords is what brings visitors to your site. SEO Queries is what makes your site show up in Googles search result pages.

Freshness of a YouTube API channel playlist feed?

I am writing an application to read the updates happening in khan academy youtube playlists, by parsing their feeds, but the feed is not upto date
According to this feed url, the last update was on Aug,2012, how to get the latest feed?
http://gdata.youtube.com/feeds/api/users/khanacademy/playlists?v=2
Please tell me if there is anyway to get a new feed
Reg,
Karthi
The youtube method or organizing videos seems like something Khan academy has abandoned at some point in favor or organizing the lists separately. That is why newer videos don't appear in previous lists you would think they would. They now have a JSON returning RESTful API. For example to see the playlists visit this. There is a wiki entry explaining more on how to consume these lists and example client code is available on their github channel for a deeper direct use or code dive to emulate in your code.
http://gdata.youtube.com/feeds/api/users/khanacademy/playlists?v=2 returns a list of the most recent 25 playlists that are in the "khanacademy" channel, and that's what I see being returned. It matches what you see in the web interface at http://www.youtube.com/user/khanacademy/videos?shelf_index=5&sort=dd&tag_id=&view=1

Resources