Codex API Hub
Useful APIs for developers. Copy the code, test in your browser, and integrate into your projects.
Weather API
toolsGet 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
financeConvert 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
funGet 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
toolsFetch 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
toolsGet 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
aiGenerate 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
funGet 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
toolsGet 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
toolsGenerate 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
financeGet 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
funGet 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));