I dont get how you learn to use API's!!!

Posted by NoTap8152@reddit | learnprogramming | View on Reddit | 61 comments

I've been learning to code full stack for about 6 months now, and I'm trying to learn how to use API's, I chose to start with stripe cause I heard it was the easiest and most straight forward cause I originally was going to try and start with airtable but that was definitely a mistake. The issue I ran into was that the "docs" if you can even call them that are so confusing and the code just doesn't work with my stack, cause my stack is react, typescript, nextjs and I chose the setup for nextjs and it was all code in js so in my mind I was thinking I could just easily fix the type issues and that was going to be it but it didn't work like that, there were no type issues it was other errors that there docs had no help with. So how am I supposed to fix this when with API's its not like other problems with crud where its usually just giving the issue to you, like every website I look at to setup stripe its completely different code across all those websites. So what I'm trying to ask is how do you learn API's cause googling has done nothing for me, and I've used AI to try to help me and gotten nowhere cause I've heard that somehow stripe is one of the easiest API's for beginners to work with. I've also heard that all API's have the same structure so getting over that initial learning hurdle is the hardest but how true is that?