Skip to content

Instantly share code, notes, and snippets.

@dorvak
Created September 22, 2015 23:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dorvak/fb5b54296084512684f6 to your computer and use it in GitHub Desktop.
Save dorvak/fb5b54296084512684f6 to your computer and use it in GitHub Desktop.
{
"columns": [
"statistics.viewCount",
"statistics.dislikeCount",
"statistics.likeCount",
"statistics.commentCount",
"snippet.title"
],
"options": {
"urlpath": "https://www.googleapis.com/youtube/v3/videos?",
"params": {
"part": "snippet, statistics",
"id": "<Object ID>",
"key": "XY"
},
"nodedata": "items",
"objectid": "id"
},
"name": "YouTube API v3 Get Video Statistics",
"module": "Generic",
"description": "Fetch basic video statistics for a given YouTube-Video\n\n1. Obtain an API-Key: The v3-API is OAuth-based, by default. To get such a key, you must register as a Google [Developer](https://developers.google.com/) and create an app/project that uses the YouTube-API. See the https://console.developers.google.com/ for more information about how to create an project, it's simple and straighforward. \n\n2. Once you created an App and activated the YouTube-API for that app or project, you have to obtain the public API-access key to authenticate your requests with the Facepager (like you do if you login with your Facebook or Twitter-credentials, also this is purely OAuth-based). The key is located in the \"credentials\"-section\n\n3. Copy the public API access key\n\n4. Load the \"YouTube API v3\" presets in the Facepager & paste the key in the paramter field (as you might guess, as a value of the \"key\"-parameter, \"XY\" by default).\n\n5. You're now read to start with the YouTube-API. The only information you need to provide is the ID of a YouTube-Video (\"https://www.youtube.com?v=HEREISTHEID\") and add it as a node to the main window (\"Add Node\"-Button, you may copy a list of nodes in here).\n\n"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment