Youtube API beginner, searching for a list of different terms automatically - youtube

I have no idea if I'm allowed to ask questions here, because I'm a complete beginner and I need help for a university paper I want to write. I need to search for quite a big list of terms in the YouTube API with a specific regioncode, location, locationradius, publishedafter and publishedbefore term.
So basically I need to do queries like these, but for the same search term I have to change these parameters a few times and I have to do that for a lot of search terms.
Does anyone have a good guide that shows how to do this? Or would someone be willing to help me with this?
Thanks in advance

You can find YouTube API search examples in every major language in this Github repository. The reference for this API endpoint as well as the list of parameters available for the search.list call is available here.
You'll need an API key to use the API which you can get by:
Going to the API Console (create an developer account and API project if you haven't already).
Enabling the YouTube API on your API project on this page.
Clicking Add credentials > API key and selecting "sever key"

Related

How do you build a Ruby on Rails API project WITHOUT an API key?

I have some experience building ROR projects with APIs for Google Maps, Weather Underground, etc. All of these sites had a login section with an API key. I now have a project to complete that requires an API for Github Jobs API. I have looked and looked and there is no API key provided on that page or on the regular Github API page. I have searched online at length and watched about 3 tutorials, yet I am at a loss about how to accomplish this without an API key. I would really appreciate some guidance. Thanks so much!!
Github Jobs API it's open and doesn't need API key to use, you only need to make GET requests as described here
URL: https://jobs.github.com
REQUEST: GET /positions.json
You can send a lot of parameters as query params:
description — A search term, such as "ruby" or "java". This parameter is aliased to search.
location — A city name, zip code, or other location search term.
lat — A specific latitude. If used, you must also send long and must not send location.
long — A specific longitude. If used, you must also send lat and must not send location.
full_time — If you want to limit results to full time positions set this parameter to 'true'.
Some examples of requests:
https://jobs.github.com/positions.json?description=python&location=sf&full_time=true
https://jobs.github.com/positions.json?search=ruby
https://jobs.github.com/positions.json?lat=37.3229978&long=-122.0321823
https://jobs.github.com/positions.json?location=sp&full_time=true
For use pagination just add page= at the final of query params:
https://jobs.github.com/positions.json?description=ruby&page=1
You can check all the documentation of API here

get recommended posts from own profile through api

Using the Medium API, is it possible to get all of the posts I have recommended (or clapped)?
Within my Medium profile, I can see the posts I have clapped (see image below). I wish to retrieve these through the API.
I'm not sure this is possible with the API, but you can do this using the RSS feeds. Here's the recommendations from my own Medium page:
https://medium.com/feed/#jamesjefferyuk/has-recommended
Replace the username with your own.
Based off Medium's API docs, there does not seem to be a forward facing endpoint to get your recommended posts. You could try to scrape your recommendations page, though I don't know if Medium's Terms of Service allow scraping, so if you're going to go that route, read through their terms to make sure you won't be putting your account in danger of getting banned, shutdown, etc.

Using YouTube API to retrieve information of past searches

I wonder if there is any way to get a list of the searches done with the same key using YouTube API. I could not find it on the API documentation.
I have several computers running a searching code, using YouTube API.
The keyword used is picked randomly from a list of terms. All computers use the same key.
Any idea?
Thanks in advance,
Diego
API won't do that, but you can save the searches on your end.

Fetch all feeds from my twitter timeline and show to my Android App

I know it is research topic.
I am not able to find how should I proceed and display some accounts tweet to my android application.
I am reading document by twitter and following with this.
https://dev.twitter.com/rest/tools/console
I am not able to figure out how to use this.
As per my understanding I should use
https://api.twitter.com/1.1/statuses/user_timeline.json but not able to figure out how to proceed.
If any body know about some good example or anything which make me to move ahead.
In order to achieve that you need to download one of the packages available that access the Twitter API using the proper token and key required.
Some of these packages include tweepy or sixohsix. I'm more familiar with tweepy and there's plenty of documentation that would lead you in the right direction, including Youtube videos. They're both available through GitHub.
If you need code specific questions of the two then you need to first give them a try, then ask new questions with the problems you're encountering.

using APIs with oauth for single user

I'm trying to make use of various APIs including twitter, youtube, etc because we want to embed recent entries (tweets, videos) on our website.
However, since I'm just retrieving my own data, I'm wondering how I can do this simpler than the multi-step process required by OAuth.
Twitter provides me with my own access token I can use directly, so that kinda works, but I can't find any such token in the YouTube documentation.
So how am I supposed to make use of the api if I just want to get a simple list of stuff? how exaclty am I supposed to authenticate my own website to use my own account?
I think i might have things all wrong and if so please point me in the right direction. I tried using rss feeds but they don't give me as much control over what I retrieve as using the API directly...
any insight or suggestions are appreciated!
see my comment above. summary: it depends on the requirements of the individual api

Resources