← Back to Core Concepts

OpenClaw + API Guide (Step-by-Step)

beginner 2/26/2026 👁 640 views 👍 18 💬 3

Transcript

So let's talk about one really important topic which is how to add APIs onto your open claw. >> And why do you want to use this Ron? >> I think this is a very core skill especially for YouTubers. Yeah. >> Or anyone uh that are that is a content creator. >> Yeah. >> Yeah. >> Or anything anything really because >> um there's so many things that your claw can do but it needs a tool to do it >> and APIs are just a way for them to do something. So we'll give you guys an example but this can extend uh this tutorial really extends beyond just the example that we give you. So the example that we want to give you is we have a video that we published um just now called is open claw overhyped and we want the the bot to actually do the description of the video and then we want him to kind of download the transcript and do the timestamps for us right because these are kind of tasks that AI excels at. So, uh, when we first started doing this, it says, "Hey, can you grab the transcript for this video?" And he says, "Sure." You know, you got to kind of wait, right? So, he as he says, "Oh, I I can't really get the transcripts right now." You kind of have to wait. But there's actually a lot of tools out there available that are very good at grabbing YouTube transcripts, >> right? So, instead of for me, instead of waiting or this may or may not work, instead of waiting, um, we can actually set a system up where we can actually get this very easily. So, I'll show you guys how. So, this is through a tool called um just wait. Oh, this is inside. This is still loading. >> This is still this is the one that failed, right? Okay. Uh let me just grab that very quickly. So, uh so YouTube Oh, this one this website. So, YouTube transanscripts.io. This this is a website that uh allows you to u grab YouTube transcripts. And you might even find this find find this very useful if you're like say for example um you want to summarize a few certain YouTubers or get your um you know get your favorite videos watched by the YouTubers get the transcripts and do that. So um right now we're just going to sign up for a free plan. I'm going to show you guys how this this is done. So basically I went on YouTube transcripts.io. Uh I I just signed in just made a new account. All right. So get YouTube uh turn uh videos into transcripts instantly. logged in and they already give you the API token here, right? This is like your password. It's a password for your bots to use. I think that's the easiest to way to know. It's like I think a lot of people get intimidated when they see, oh, it's an API, you know. Okay. No, you don't you don't have to do it. >> I have a question though. >> Um, >> so from the perspective of a beginner, >> I assume that my agent can just fetch transcript using web search or >> uh or or web fetch even. >> Yes. How is this different from you know using a YouTube transcript API? >> So the the difficulty here is sometimes websites block your agents okay >> from from accessing information. So say for example, one famous example would be Coin Gecko, right? If you want crypto prices, they don't want all the bots to get that information. That's valuable information. They want to charge you money for it. Or another good example is if you go on X, that's that's um if you want to go on Twitter, X Twitter, >> uh Twitter is horrible for bots. You know, you paste a link to a tweet and they're like, "Oh, I can't see it." Well, that's because Twitter really want to block the bot access. So finding an API that gets around this using the Twitter or using an unofficial API that will be the way to do it. And you can um the setup process for this is all the same. >> So one thing that I usually like to do is usually when you go to these account there's something there's usually a page for API documentation. What I'll do is I'll copy the documentation here and says, "Hey, I'll tell him, hey, read up on this API documentation and uh make a make a uh make a skill skill to fetch transcripts." Uh so, you know, so you're kind of telling the bot, hey, just read it. >> API documentations are usually for programmers. Um yet again, but the thing is your bot is a programmer, right? You don't need to understand any of this. Your bot is a top tier programmer, right? They they they pass all the coding exams, so don't worry about it. Your your bot knows what it's doing. Yeah. >> Right. And the other key information here is API token, right? So, just give your bot the API token. This is the API token. Obviously, I'm doing this in a video. I'm going to scrap this, but don't ever show your API tokens u to anyone uh outside. Yes. >> Uh the other thing that the key uh thing that I found useful and and save it into your env. All right. Um, this is just a command that I find very useful. The envir the env file is a um, it's a hidden file inside your um, open call directory >> and he's very comfortable saving it there because >> uh, because these the way these models are trained, they're trained not to reveal what's in the environmental folder. So, this is just um just just the way that I'd like to do it and uh do a test and see if you can get the transcript for the video. So, yet again, uh this is usually the process that I do um for any API learning >> where I post a documentation. Yeah, >> he's going to be able to access that documentation. I give it the API key, tell him to save it so he doesn't forget. Otherwise, you'd be like, "Oh, I don't have the API key. How how do I find it?" You know, like you reach that situation. Then last thing is get the test. This confirmation that it learned how to do this, right? So, uh let's again he's he's he's thinking. Banner's got a personality. >> He's I like that he's he's actually showing you the thought process. >> He's showing the thought process. He's not streaming what he's saying thinking, but he's like he's he's emojing. He's emojing it over. I kind of like that. I kind of like that. >> That's good personality. >> But I find that this is quite um useful. Yeah. >> And the other thing I make it a skill >> so that this is a skill that he knows in the future. So then when I talk about hey you know get this for my YouTube video he'll already get it for me. >> Um I'll show you the the working example. I know he's still thinking here but um I'm show you the working example where I told Stark to do the same thing at the same time as Banner. Stark is already trained on this API or he's trained to use the API. So he just he automatically just grabbed the transcript. He he found a summary for it for me without me even saying what the what I want to do with it. But he was very proactive. He got the summary and it's actually um correct actually. >> So I found that was very interesting. So once you add the API there your your bot is a lot smarter and can actually do a lot of things. Banner is still thinking here. He's he's taking a while but uh he actually found out how u and he he used the YouTube transcripts io. So he already knew that the API was there. So okay that was the the the successful use case example. But let's let's see what um let's see what banner is typing here. Got the docs simple post API. Let me build a skill and test it. So he built the skill test it. Oh, here you go. Okay. So he made an uh he he did run into some encounter some options. So this is kind of interesting. I think it's good to post this up here. So he did a first test and he found it was unsuccessful. He says, "Oh, YouTube is unlisted." But then oh, hey, it worked. Okay. So, he I think some some somehow um he uh Oh, he he got access to the um box money. Surprising. I don't know why he did this. I don't know why there's um hallucinations, but >> um can you double check that the skill works? Uh another agent already used it on the same video with the API um post. So yet again this is goes to show that I'm surprised he got the same result but I don't think he used it. So this goes to show that even though that u banner is running an opus he can sometimes deliver results incorrectly >> right so yet again just work I think it's the the key process is to work through them >> and sometimes understand that the AI will gaslight you >> um into doing um you know a few stupid things. So repetition, >> repetition, it sounds stupid, but repetition actually does help. Yeah. >> And also maybe even clearing context or starting a new session. Yeah. >> One way to start a new session um is Okay, there it goes. It's getting Oh, it's getting cloud flip block. It's not dead end. Oh, okay. Huh. Weird. I think you have to go through this. Um there's some Cloudflare block there. >> Um you shouldn't be blocked. Uh but what um let me let me do this. Okay, let me just paste the docu I I suspect that the documentation is being blocked um in Markdown. >> Yeah, this is the documentation. Oh no. Okay, it's quite interesting actually. Count back. That's why >> or you can just click click enter again and then it says there upload this file. >> Upload. All right, there you go. Uh this is the part. It's actually really funny because um I'm actually surprised uh he actually encountered this problem. Uh he actually took me through banner. Uh yet again he was he's using Opus. Uh he took me through the YouTube integration. So there was a slight difference between these two bots. Uh the way I did it was for banner I got him to integrate with the YouTube API. This is something called the YouTube data API. And yet yet again why I wanted to make this video and even show you guys the errors here is that there are some errors I encounter. Even though I'm doing this for like the third time, right? they can still encounter problems. There's a problem with with uh how these bots work. But uh he actually took me step by step. Um >> and now he's speaking Chinese. >> Okay. Anyways, it doesn't matter. I'll figure this out. Uh he he he errored out. But anyways, uh he actually took me through the process for API Google. So he took me he guided me hand by hand through the Google API to to do it. M >> so I guess he completed a task but he was using it away >> which not the result I desired but anyways it's it's a learning experience. So what I'll do is I'll show you guys maybe in the next video the success case of this u right now he's he is winking out a little bit. Um I think maybe because he's maybe backing off into another model maybe he's backing off into Miniaax maybe >> in the back end. So, I'm not going to go and fix everything there, >> but for now, I think that's kind of what I wanted to talk about in this video, which is, you know, getting them the API access gives you a lot more access to information that you actually need. >> Yeah, certainly agree. So, I guess uh the fix here would be to repeat the same step again, but for the second, >> repeat again and just just start a new session. >> Don't give up. I don't give up. I really thought it may be the reason why a lot of people are not good at AI is because the first try fails and then they give up. But what you taught me today is actually pretty important. It's like don't give up and even if it succeeds, repeat it again just to make sure you know it's >> verify. >> Yeah. And I think that's um Yeah, that's actually really important. And also like >> it sucks on a video. That's why I'm so flustered. It sucks to do it on a video to fail, but you know, it is what it is what it is. But that that was the step to do it. So I hope you guys find it useful. Pretend it was successful. I've done it a million times. This how to do it. But anyways, with that guys, thank you so much for watching. It's time for our lunch time for us now. So yeah, I hope you guys enjoy this video. We're doing a lot more. We try to oneshot these videos and then we hope it works, but sometimes oneshotting it doesn't work all the time. But hey, you know, welcome to AI. Get used to it. All right. Thank you guys so much for watching. See you next time. Make sure to subscribe. We're growing very by fast. Leave a comment. Bye.