Example for youtube api using developer key? lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- mr-highball · 2021-08-12 23:46 Hey, I was trying to put together a small app to index youtube videos using the YouTube search resource from the Google api package. I looked at the calendar example but it requires consent from a user, and I want to use a developer key instead. I see the dev key property in the handler... but when I run the code it still complains about "not authenticated" https://github.com/mr-highball/yt-indexer/blob/40a3cbe425c6482759ea8c6 257ac6808d9bb71ce/src/yt.indexer.pas#L127 I've been paroozing the source but I figure it wouldn't hurt to ask if someone has an example out there ---------------------------------------------------------------------- Leledumbo · 2021-08-14 21:16 I don't see any where AuthMethod property is read, so my guess is that you'll always use OAuth2 for authentication, it's quite clear reading googleclient source code. If you only need to call unauthenticated APIs such as channels.list, I suggest using fphttpclient instead as it's way simpler like so: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i uses fphttpclient,fpjson,jsonparser;...JSON := TJSONObject(GetJSON(TFPHTTPC lient.SimpleGet('https://www.googleapis.com/youtube/v3/channels?forUse rname=&key=')));(* will return something like:{  "kind": "youtube#channelListResponse",  "etag": "EoDlEPBUv4rVlFusZFe1fTBsGRI",  "pageInfo": {    "totalResults": 1,    "resultsPerPage": 5  },  "items": [    {      "kind": "youtube#channel",      "etag": "jmginRTMBuf36NMFkYvfDyOTTHM",      "id": "UCc_8N8sPB8RWKRfPxWjlFCg"  }  ]}  *) ---------------------------------------------------------------------- mr-highball · 2021-08-14 21:44 Thanks for the reply. I ended up doing that and was still able to use the search list result object (with the library) to parse the json