blackdark
Claude

public-apis + Claude Code: 1,000+ free APIs, 10 with no key and the exact sentence to connect them

public-apis is the biggest list of free APIs on GitHub (almost 500,000 stars). How to read it, 10 APIs that work with no key (tested), the exact sentence to get Claude Code to connect them and how to keep your keys in a .env file without leaking them.

By Updated on 5 min read
Jump straight to the sentence for Claude Code

A weather app, a recipe finder with real calories, a currency converter… Almost every app you can imagine uses data that another website already gives away for free through an API.

The place to find them is public-apis, the biggest list of free APIs on GitHub. And to connect them without knowing how to code there’s Claude Code: you give it the docs, tell it what you want and it builds it.

From the list to a working app

  1. Pick an API

    On public-apis, by category: weather, food, currencies, books…

  2. Open its documentation

    The link in the list itself takes you there.

  3. Hand it to Claude Code

    With the exact sentence below.

  4. Claude writes and tests the code

    If it needs a key, it reads it from your .env file.

  5. You have the data

    And from there, to a website, a bot or a spreadsheet.

What public-apis is

  • Repo: public-apis/public-apis, “A collective list of free APIs”.
  • Almost 500,000 stars on GitHub (497,159 as of November 8, 2026), one of the most popular repos on the whole platform. MIT license.
  • Over 1,000 APIs that are free or have a free tier, in more than 50 categories: weather, food, finance, games, books, transport, health…

Each API takes up one row of a table with five columns. These are the ones to look at:

ColumnWhat it tells youWhat to look for as a beginner
AuthWhether it needs a key: No, apiKey or OAuthNo
HTTPSWhether the connection is encryptedYes
CORSWhether it can be called directly from a websiteYes (or Unknown, and you test)

Note

“Free” doesn’t always mean “unlimited”. Many have a free tier with a cap on requests per day or per month. For practice and small projects it’s more than enough. If you’re building something serious, read their terms first.

10 no-key APIs to start with today

We called them one by one on November 8, 2026 and all of them responded with no key and no sign-up:

APIWhat it gives youQuick idea
Open-MeteoCurrent weather and forecast for anywhereYour own weather app
PokéAPIEvery bit of Pokémon dataThe best one to practice with
Open LibraryBooks, authors and coversBook finder
Nager.DatePublic holidays for every countryLong-weekend calendar
FrankfurterCurrency exchange ratesCurrency converter
Wikipedia REST APIArticle summaries“Explain X in 3 lines”
Open Food FactsCalories and ingredients by barcodeRecipes with real calories
Dog CEODog photos by breedA widget to brighten your day
JokeAPIJokes (in several languages)A joke bot
Sunrise-SunsetSunrise and sunset timesGolden-hour photo alerts

Two that almost made it, but not quite:

  • TheMealDB (recipes): works with a public test key, the number 1, which is in its own documentation. Fine for practice; to publish an app they ask for your own key.
  • CoinGecko (crypto prices): now requires a free Demo key. It’s free, but you have to sign up.

The exact sentence for Claude Code

  1. Open the API’s documentation (the link in the list).
  2. Open Claude Code in a new folder for the project.
  3. Paste the sentence, changing the link and what you want:
Connect an API with Claude Code
Read this documentation: [LINK TO THE API DOCUMENTATION]. Use it to make me a function that [WHAT YOU WANT, for example: gives me the current temperature in Chicago]. If it needs a key, read it from a .env file and don't write it in the code.
  1. When it’s done, ask it to test it:
Test it
Run it and show me the result. If it fails, tell me why and fix it.

Tip

A first example to try. Go with Open-Meteo: “Read this documentation: https://open-meteo.com/en/docs. Use it to make me a function that gives me the current temperature and tomorrow’s in Chicago.” It needs no key, so it works first time.

Once you have the data, the next step is to ask for whatever you want to build on top of it: “make a simple web page that shows it”, “send it to me on Telegram every morning”, “save it in a spreadsheet”.

App ideas to practice with

  • Recipes with real calories: TheMealDB for the recipe + Open Food Facts for the nutrition values.
  • Travel dashboard: weather (Open-Meteo) + the country’s public holidays (Nager.Date) + exchange rate (Frankfurter).
  • Live crypto prices: CoinGecko with its free Demo key.
  • Today’s headlines: you need a news API with a key (NewsAPI, GNews…). A good exercise for your first .env.

If the API needs a key: the .env file

An API key is like the password to your account on that API. If someone copies it, they use up your quota (or your money). Three rules:

  1. Store it in a .env file in the project folder:
API_NAME_KEY=paste_your_key_here
  1. Add .env to .gitignore so it never gets pushed to GitHub:
echo ".env" >> .gitignore
  1. Never paste it into the chat or the code. Tell Claude Code “the key is in .env as API_NAME_KEY” and to read it from there.

If one has already leaked, revoke it on the API’s website right away and generate a new one: deleting it from the code isn’t enough, because it stays in the Git history.

What it doesn’t do

  • public-apis isn’t an API. It’s a list: every API has its own rules, limits and documentation.
  • Not everything is still alive. It’s maintained by the community and some APIs may have shut down or changed (it happened to us with REST Countries, which has changed version). If one fails, try another in the same category.
  • Claude Code doesn’t guess. If the docs are bad or the API is down, the code will fail. Ask it to tell you why.

Is it worth it?

Yes, especially if you want to learn to build things without knowing how to code. With a no-key API and one sentence, in ten minutes you have real data on your screen. And it’s the best way to understand what an API is: use one.

FAQ

They’re free or have a free tier. Many ask you to sign up to get a key (API key) and some have usage limits. And since the list is maintained by the community, some may be down or have changed: test one before you build anything on top of it.

A plug between programs: your app asks for a piece of data (tomorrow’s weather, an exchange rate) and another website sends it back in a format code understands.

Not to get started. Claude Code reads the docs, writes the code and runs it. You tell it what you want and check the result. Understanding what a key is and where it’s stored is a must, though.

Sign up on the API’s website, copy the key and save it in a .env file in your project. Tell Claude Code to read it from there. Add .env to .gitignore so it never ends up on GitHub.

CoinGecko now requires a free Demo key for its public API. It’s free, but you have to sign up, so we don’t include it in the no-key list.

Claude on claude.ai can explain the API and write the code for you, but it doesn’t run it on your computer. With Claude Code it writes it, runs it and shows you the result right away.

Keep digging into the same topic.

Share
Newsletter

Get the next guides in your inbox

AI and marketing ideas and resources, no filler. What works and how to apply it.

Ideas and resources, no spam. Unsubscribe anytime.

Finding this guide useful?

Subscribe