Here we'll show you how to use cURL to search for videos on YouTube.
1 Log in to Temboo. If you don't already have an account, you can register for free here.
2 Go to the YouTube > Search > ListSearchResults Choreo in our Library. Select REST API from the drop down menu at the top of the page.
3Fill in the Query input to search YouTube for your favorite topic.
4 Click Generate Code to test the Choreo from our website, and you'll see a JSON formatted list of videos in the Response output in the Output section.
5Scroll down to find the Code section of the Choreo page and copy the auto-generated cURL command.
6To run the command, paste it directly into your terminal or console. Your code should look something like this:
curl --basic -u APP_NAME: APP_KEY --header "x-temboo-domain: /ACCOUNT_NAME/master" --header "Content-Type: application/json" --header "Accept: application/json" -X POST --data '{"inputs": [{"name":"Query", "value":"Karen O & The Kids"}]}' "https://ACCOUNT_NAME.temboolive.com/temboo-api/1.0/choreos/Library/YouTube/Search/ListSearchResults"
7Run the code and check out your YouTube search results.
We're all finished! Now you're searching for YouTube videos via our REST API. Check out what else you can do by exploring the 2000+ Choreos in our Library.
Once you've got your code up and running, you're ready to move on and do more. From monitoring your running applications, to moving your generated Temboo code to your preferred development environment and sharing it with colleagues, collaborators and friends - we've got you covered.
We're always happy to help. Just email us at support@temboo.com, and we'll answer your questions.