An API is just a URL that answers with data instead of a web page. You ask https://catfact.ninja/fact a question, it answers in JSON: {"fact": "A group of cats is called a clowder."}. That is the whole magic β everything else is practice.
A key is a name tag: it tells the provider who is calling, so they can limit abuse. Keys are not scary and most are free β but for your first hour, skip them entirely. Every API on our no-key list answers strangers, instantly, forever.
1. Hitting a key-required API with no key and staring at a 401. Start keyless. 2. Calling from the browser and meeting CORS β pick APIs marked CORS β in our catalog, or read the simple CORS explainer. 3. Hard-coding a key in public code β when you graduate to keys, read how to store them safely first.
Open our JavaScript fetch guide, run the Cat Facts call in your browser console, then swap the URL for a weather call. By the end of the hour you will have used two real APIs β which is two more than most tutorials get you. Then pick a project from the weekend projects list and build something real.
Welcome in. The water is free.