Skip to content

About

A curated collection of awesome free APIs for developers. Categorized, tested daily, and well-documented. Your one-stop resource for public APIs.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

ย 

History

259 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

APIDex Hub logo

๐Ÿš€ APIDex Hub

Awesome

A curated collection of awesome public APIs and web scrapers for developers. Open source and community-driven.
This repository aims to provide a comprehensive collection of public APIs and scraping solutions to help you build your next project.

GitHub Stars GitHub Forks GitHub Issues GitHub Pull Requests PRs Welcome License: MIT Maintained Visitors Buy Me A Coffee


๐Ÿ“š Code Examples

โœจ New! Check out practical code examples showing how to use popular APIs from this collection.
Includes Python & JavaScript examples for Pokemon, Cryptocurrency, AI Chat, and more!


๐Ÿ“˜ General API Usage Guide

๐Ÿ‘‹ New to APIs? Don't worry! This guide will help you understand the basics and get started quickly.


๐Ÿ’ก What is an API?

API stands for Application Programming Interface. It's a way for different applications to communicate with each other.

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”      โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”      โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   YOU   โ”‚ โ”€โ”€โ”€โ–ถโ”‚   API   โ”‚ โ”€โ”€โ”€โ–ถ โ”‚ SERVER  โ”‚
โ”‚  (App)  โ”‚ โ—€โ”€โ”€โ”€โ”‚ (Waiter)โ”‚ โ—€โ”€โ”€โ”€ โ”‚(Kitchen)โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜      โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜      โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
   Request         Process          Response

Think of it like a restaurant:

  • ๐Ÿ™‹ You (the app) place an order
  • ๐Ÿฝ๏ธ Waiter (the API) takes your request to the kitchen
  • ๐Ÿ‘จโ€๐Ÿณ Kitchen (the server) prepares your food (data)
  • โœจ The waiter brings it back to you!

๐Ÿ“ Authentication Methods

Different APIs have different ways to verify who you are:

Method Icon Description Example
No Auth ๐ŸŒ Open for everyone - just call it! Weather APIs, public data
API Key ๐Ÿ”‘ Secret code you get when registering ?api_key=abc123 or Authorization: abc123
OAuth ๐Ÿ” Secure login (like "Login with Google") Social media integrations
Apify Key ๐Ÿ”‘ Token required to run Apify scrapers/actors Authorization: Bearer apify_api_...

๐Ÿ’ก Pro Tip: Always keep your API keys secret! Never commit them to GitHub.


๐Ÿ“ก HTTP Request Methods

Learn the common ways to interact with APIs:

Method Icon Purpose Real-World Example
GET ๐Ÿ“ฅ Retrieve data Get a list of cat pictures
POST ๐Ÿ“ค Create new data Upload a new photo
PUT โœ๏ธ Replace existing data Update entire user profile
PATCH ๐Ÿ”ง Modify specific fields Change just your username
DELETE ๐Ÿ—‘๏ธ Remove data Delete a comment

Example GET Request:

curl https://api.example.com/cats

Example POST Request:

curl -X POST https://api.example.com/cats \
  -H "Content-Type: application/json" \
  -d '{"name":"Fluffy","age":3}'

๐Ÿšฆ HTTP Status Codes

The API responds with a status code to tell you what happened:

โœ… Success Codes (2xx)

Code Icon Meaning
200 โœ… OK - Request succeeded!
201 ๐ŸŽ‰ Created - New resource created!
204 ๐Ÿ“ญ No Content - Success but no data to return

โš ๏ธ Client Error Codes (4xx)

Code Icon Meaning What to Do
400 โŒ Bad Request - Invalid syntax Check your request format
401 ๐Ÿ”’ Unauthorized - Authentication required Add your API key
403 ๐Ÿšซ Forbidden - You don't have permission Check your access rights
404 ๐Ÿ” Not Found - Resource doesn't exist Verify the URL
429 ๐ŸŒ Too Many Requests - Rate limit hit Wait and try again

๐Ÿ”ด Server Error Codes (5xx)

Code Icon Meaning
500 ๐Ÿ’ฅ Internal Server Error - API is broken
503 ๐Ÿ”ง Service Unavailable - API is down

๐Ÿ› ๏ธ Essential Tools for Testing APIs

Tool Best For Platform Free?
Postman ๐ŸŽฏ Complete API testing & documentation Desktop/Web โœ… Yes (free tier)
Thunder Client โšก Lightweight testing in VS Code VS Code Extension โœ… Yes
cURL ๐Ÿ’ป Command-line requests Terminal โœ… Yes (built-in)
Insomnia ๐ŸŽจ Beautiful UI for API testing Desktop โœ… Yes

๐Ÿš€ Quick Start Example

Let's try a real API call! Here's how to get a random cat fact:

1๏ธโƒฃ Using cURL (Terminal):

curl https://catfact.ninja/fact

2๏ธโƒฃ Using JavaScript (Browser):

fetch('https://catfact.ninja/fact')
  .then(response => response.json())
  .then(data => console.log(data.fact));

3๏ธโƒฃ Using Python:

import requests
response = requests.get('https://catfact.ninja/fact')
print(response.json()['fact'])

๐Ÿ“ฆ Expected Response:

{
  "fact": "Cats have 32 muscles in each ear.",
  "length": 38
}

๐Ÿ“š Additional Resources


๐Ÿ“Š API Catalog

We maintain a curated catalog of 4,239 public APIs across 70 categories; 1 of them has a recorded API endpoint, and the rest link to official documentation. You can browse the categories directly:

Category Category Category
๐Ÿค– AI Models & LLM Providers ๐Ÿถ Animals ๐ŸŒธ Anime
๐Ÿ›ก๏ธ Anti-Malware ๐Ÿ” Authentication & Identity ๐Ÿ—„๏ธ Backend & Serverless Databases
โ›“๏ธ Blockchain & Web3 ๐Ÿ“š Books & Literature ๐Ÿ’ผ Business
๐Ÿ“… Calendar, Holidays & Time โ˜๏ธ Cloud Storage & Files โš™๏ธ Continuous Integration
๐Ÿช™ Cryptocurrency ๐Ÿ’ฑ Currency Exchange โœ… Data Validation
๐Ÿ‘ค Demographic Analysis ๐ŸŽจ Design & Colors ๐Ÿ’ป Development
๐Ÿ“– Dictionaries ๐Ÿ“„ Documents & Productivity ๐ŸŽ“ Education
๐Ÿ“ง Email & SMS ๐ŸŽฎ Entertainment ๐ŸŒฟ Environment & Climate
๐ŸŽช Events ๐Ÿ’ฐ Finance ๐Ÿ’ช Fitness & Wellness
๐Ÿ” Food & Drink ๐ŸŽฎ Games & Comics ๐ŸŒ Geocoding
๐ŸŒŽ Geography & Countries ๐Ÿ›๏ธ Government & Civic โค๏ธ Health
๐Ÿ  IoT & Smart Devices ๐Ÿ’ผ Jobs & Career ๐Ÿง  Machine Learning
๐Ÿ”ข Math & Computation ๐Ÿ˜‚ Memes & Fun ๐Ÿงช Mock Data & Testing
๐Ÿ“ˆ Monitoring & Observability ๐Ÿ›๏ธ Museums & Art ๐ŸŽต Music
๐ŸŒ Networking, DNS & WHOIS ๐Ÿ“ฐ News ๐Ÿ”“ Open Source Projects
๐Ÿ“œ Patents & Prior Art ๐Ÿ’ณ Payments & Billing ๐Ÿ’ญ Personality & Quotes
๐Ÿ“ฑ Phone & Telephony ๐Ÿ“ท Photography ๐ŸŽ™๏ธ Podcasts
๐Ÿ“Š Public Data & Datasets ๐Ÿ”ณ QR & Barcode โญ Reviews & Ratings
๐Ÿ”ฌ Science & Space ๐Ÿ” Security & Validation ๐Ÿ›๏ธ Shopping
๐Ÿ’ฌ Social โšฝ Sports ๐Ÿ“ Text Analysis & NLP
๐Ÿ“ฆ Tracking & Logistics ๐Ÿš† Transportation โœˆ๏ธ Travel & Tourism
โš ๏ธ Unofficial & Community APIs ๐Ÿ”— URL Shorteners ๐Ÿ”ง Utilities & Tools
๐Ÿš— Vehicle & Mobility ๐Ÿ“น Video ๐ŸŒค๏ธ Weather
๐Ÿ•ท๏ธ Web Scraping & AI Search

Note: The API database is automatically synchronized with our APIDex Hub Website.

๐Ÿค Contributing

Contributions are welcome. Please read CONTRIBUTING.md before opening a pull request.

You can also use the GitHub issue templates to suggest new APIs, report bugs, or request improvements.

๐Ÿ›ก๏ธ Code of Conduct

This project follows the Code of Conduct. Please be respectful and constructive.

๐Ÿ“„ License

This project is licensed under the MIT License.


๐Ÿ“ˆ Star History

Star History Chart


Don't forget to โญ this repo if you found it useful!

About

A curated collection of awesome free APIs for developers. Categorized, tested daily, and well-documented. Your one-stop resource for public APIs.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages