Free for Developers

Codex API Hub

Useful APIs for developers. Copy the code, test in your browser, and integrate into your projects.

Weather API

Weather API

tools

Get real-time weather data for any city worldwide using OpenWeatherMap.

Requires API key from openweathermap.org

fetch("https://api.openweathermap.org/data/2.5/weather?q=Accra&appid=YOUR_API_KEY&units=metric")
  .then(res => res.json())
  .then(data => console.log(data));
Currency Exchange API

Currency Exchange API

finance

Convert currencies in real-time. Get USD to GHS, EUR, and more.

Free, no API key required

fetch("https://api.exchangerate-api.com/v4/latest/USD")
  .then(res => res.json())
  .then(data => console.log(data.rates.GHS));
Joke API

Joke API

fun

Get random programming jokes and dad jokes for your apps.

Free, no API key required

fetch("https://official-joke-api.appspot.com/random_joke")
  .then(res => res.json())
  .then(data => console.log(data));
GitHub API

GitHub API

tools

Fetch user profiles, repositories, and commit history from GitHub.

Free for public data, rate limited

fetch("https://api.github.com/users/octocat")
  .then(res => res.json())
  .then(data => console.log(data));
IP Location API

IP Location API

tools

Get user location, city, country, and timezone from their IP address.

Free tier available

fetch("https://ipapi.co/json/")
  .then(res => res.json())
  .then(data => console.log(data.city, data.country));
Google Gemini AI

Google Gemini AI

ai

Generate AI responses, chat completions, and content with Gemini Pro.

Requires API key from Google AI Studio

const API_KEY = "YOUR_API_KEY";
fetch(`https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key=${API_KEY}`, {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    contents: [{ parts: [{ text: "Hello" }] }]
  })
})
.then(res => res.json())
.then(data => console.log(data));
Quotes API

Quotes API

fun

Get random inspirational and motivational quotes for your apps.

Free, no API key required

fetch("https://api.quotable.io/random")
  .then(res => res.json())
  .then(data => console.log(data.content, "-", data.author));
Dictionary API

Dictionary API

tools

Get word definitions, synonyms, pronunciation and examples.

Free, no API key required

fetch("https://api.dictionaryapi.dev/api/v2/entries/en/hello")
  .then(res => res.json())
  .then(data => console.log(data[0].meanings));
QR Code API

QR Code API

tools

Generate QR codes for URLs, text, or any data instantly.

Free, returns image directly

// Generate QR code image URL
const text = "https://codex-technologies.com";
const qrUrl = `https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=${encodeURIComponent(text)}`;
// Use in <img src={qrUrl} />
Crypto Prices API

Crypto Prices API

finance

Get real-time cryptocurrency prices for Bitcoin, Ethereum and more.

Free tier available, rate limited

fetch("https://api.coingecko.com/api/v3/simple/price?ids=bitcoin,ethereum&vs_currencies=usd")
  .then(res => res.json())
  .then(data => console.log("BTC:", data.bitcoin.usd, "ETH:", data.ethereum.usd));
Cat Facts API

Cat Facts API

fun

Get random fun facts about cats for entertainment apps.

Free, no API key required

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