Skip to contentAPILayer: production APIs with free plansExplore APILayer
Cover illustration: 25 Free APIs for Beginner Projects (No API Key, Works in the Browser)
Favour Onuoha

Posted on · 3 min read

25 Free APIs for Beginner Projects (No API Key, Works in the Browser)

On this page · 9 sections

The best APIs for beginners share three traits: no API key (no sign-up, no secrets to manage), HTTPS (so they work on modern sites) and CORS enabled (so a plain fetch from a web page works without a server). Every API in this list has all three. We called each one and checked for the Access-Control-Allow-Origin header in October 2026, so you won't lose an evening to a dead endpoint or a CORS error.

Not every famous "beginner API" made it. In our checks, the original Bored API and Quotable no longer responded. REST Countries now requires an API key. And NASA's DEMO_KEY timed out. Tutorials still recommend all four. Our directory health-checks all 2,166 APIs in the public-apis list daily; see the live ranking of free APIs for beginners.

#Starter code (works with every API below)

HTML
<pre id="out">Loading…</pre>
<script type="module">
  const res = await fetch("https://catfact.ninja/fact");
  const data = await res.json();
  document.querySelector("#out").textContent = JSON.stringify(data, null, 2);
</script>

Save it as index.html, open it in a browser, and swap in any URL below.

#Animals

  1. Cat Facts: https://catfact.ninja/fact Project: a "fact of the day" widget with a refresh button.
  2. Dogs: https://dog.ceo/api/breeds/image/random Project: a dog-breed guessing game. /api/breeds/list/all returns every breed.
  3. RandomFox: https://randomfox.ca/floof/ Project: a random fox wallpaper page.

#Games, movies and TV

  1. PokéAPI: https://pokeapi.co/api/v2/pokemon/pikachu Project: a Pokédex with search, types and sprites. It's the classic beginner project for good reason.
  2. Rick and Morty: https://rickandmortyapi.com/api/character/1 Project: a character browser with pagination (?page=2) and filters (?status=alive).
  3. Deck of Cards: https://deckofcardsapi.com/api/deck/new/shuffle/?deck_count=1 Project: blackjack or war. The API shuffles, draws and tracks piles for you.
  4. TVMaze: https://api.tvmaze.com/search/shows?q=office Project: a TV show search with posters and episode lists.
  5. SWAPI: https://swapi.dev/api/people/1/ Project: a Star Wars encyclopedia that follows the linked URLs (films, planets).
  6. Studio Ghibli: https://ghibliapi.vercel.app/films Project: a film gallery sorted by release year or Rotten Tomatoes score.
  7. Open Trivia: https://opentdb.com/api.php?amount=10&type=multiple Project: a quiz app with scoring and categories. Answers come HTML-encoded, so decode them before display.

#Fun and text

  1. JokeAPI: https://v2.jokeapi.dev/joke/Programming?safe-mode Project: a joke button. Use safe-mode for school projects.
  2. Chuck Norris Database: https://api.chucknorris.io/jokes/random
  3. Advice Slip: https://api.adviceslip.com/advice Project: a "random advice" card generator.
  4. kanye.rest: https://api.kanye.rest
  5. PoetryDB: https://poetrydb.org/random/1 Project: a poem-of-the-day page, or search by author with /author/Emily Dickinson.

#Real-world data

  1. Open-Meteo: https://api.open-meteo.com/v1/forecast?latitude=51.5&longitude=-0.13&current=temperature_2m Project: a weather app. Combine it with geolocation (navigator.geolocation) for the user's own forecast.
  2. Frankfurter: https://api.frankfurter.dev/v1/latest?base=USD Project: a currency converter.
  3. CoinGecko: https://api.coingecko.com/api/v3/simple/price?ids=bitcoin,ethereum&vs_currencies=usd Project: a crypto price ticker. Refresh every 60 seconds, not every second.
  4. Nager.Date: https://date.nager.at/api/v3/PublicHolidays/2026/US Project: a "next public holiday" countdown for any country.
  5. Sunrise and Sunset: https://api.sunrise-sunset.org/json?lat=36.72&lng=-4.42 Project: a golden-hour calculator for photographers.
  6. Spaceflight News: https://api.spaceflightnewsapi.net/v4/articles/?limit=10 Project: a space news reader.

#Culture and knowledge

  1. Open Library: https://openlibrary.org/search.json?q=dune Project: a reading list with covers (https://covers.openlibrary.org/b/id/{cover_i}-M.jpg).
  2. Art Institute of Chicago: https://api.artic.edu/api/v1/artworks?limit=10 Project: a "random artwork" gallery.
  3. Metropolitan Museum of Art: https://collectionapi.metmuseum.org/public/collection/v1/objects/436535
  4. Agify.io: https://api.agify.io/?name=sam (plus **Genderize.io and **Nationalize.io) Project: a "guess my age, gender and nationality from my name" toy. Note the free tier is rate-limited per day.

#A complete beginner project: a Pokédex in 30 lines

HTML
<form id="search">
  <input name="q" placeholder="pikachu" required />
  <button>Search</button>
</form>
<div id="result"></div>

<script type="module">
  const form = document.querySelector("#search");
  const out = document.querySelector("#result");

  form.addEventListener("submit", async (e) => {
    e.preventDefault();
    const name = new FormData(form).get("q").trim().toLowerCase();
    out.textContent = "Searching…";
    try {
      const res = await fetch(`https://pokeapi.co/api/v2/pokemon/${encodeURIComponent(name)}`);
      if (res.status === 404) return (out.textContent = "No Pokémon with that name.");
      if (!res.ok) throw new Error(`HTTP ${res.status}`);
      const p = await res.json();
      out.innerHTML = "";
      const img = Object.assign(document.createElement("img"), { src: p.sprites.front_default, alt: p.name });
      const info = document.createElement("p");
      info.textContent = `${p.name} · types: ${p.types.map((t) => t.type.name).join(", ")} · weight: ${p.weight / 10} kg`;
      out.append(img, info);
    } catch (err) {
      out.textContent = `Something went wrong: ${err.message}`;
    }
  });
</script>

This small project covers the skills employers look for in a junior portfolio: forms, async/await, error states (404 vs network failure), building DOM safely with textContent, and URL encoding.

#Tips for beginner API projects

  • Read the docs first. Five minutes with the docs saves an hour of guessing at URL formats.
  • Inspect responses in the browser. Open the URL directly; Firefox and Chrome both pretty-print JSON.
  • Handle the empty and error states. That's what separates a demo from a project.
  • Be gentle with free APIs. Don't call them in a tight loop. Cache results and add a button instead of auto-refreshing every second.
  • Next step: once you're comfortable, try an API that needs a free key, and learn to keep that key on a server. Our Fetch API tutorial shows how.

#FAQ

#What is the easiest API for beginners?

Cat Facts or the Dogs API: one URL, no key, no parameters, and a tiny JSON response. PokéAPI is the best next step.

#Do I need an API key for these?

No. Every API in this list works without a key. A few, like Agify, rate-limit how many free requests you can make per day.

#Why do I get a CORS error with some APIs?

The API doesn't allow browser requests from other sites. Every API here sends CORS headers. For others, call them from a server instead.

#Where can I find more free APIs?

Our directory lists 1,038 APIs that need no key. See free APIs with no API key, organised by category.