15 Real-World API Examples You Can Test and Inspect Right Now

Explore 15 real-world API examples spanning weather data, financial rates, authentication, and generative AI with complete code samples and JSON payloads.

Studying practical api examples is the fastest way to master web development and modern systems integration. Rather than memorizing abstract specifications, seeing real JSON requests and responses gives developers intuition for building rock-solid applications.

Here are 15 production-grade api examples categorized by domain that you can inspect, test, and adapt into your own web applications.

1. Weather API Example (Open-Meteo)

Weather services provide straightforward GET requests without requiring API keys, making them ideal starter examples.

GET https://api.open-meteo.com/v1/forecast?latitude=37.77&longitude=-122.41¤t_weather=true

// Response (200 OK)
{
  "latitude": 37.77,
  "longitude": -122.41,
  "current_weather": {
    "temperature": 16.4,
    "windspeed": 12.8,
    "weathercode": 3,
    "time": "2026-10-06T14:00"
  }
}

2. Currency Exchange Rate API Example

Financial conversions rely on real-time forex ticker rates updated every few seconds.

GET https://open.er-api.com/v6/latest/USD

// Response (200 OK)
{
  "result": "success",
  "base_code": "USD",
  "rates": {
    "EUR": 0.924,
    "GBP": 0.791,
    "JPY": 154.20,
    "INR": 83.95
  }
}

3. GitHub User Profile API Example

Demonstrates RESTful resource nesting and public developer profile metadata.

GET https://api.github.com/users/octocat

// Response (200 OK)
{
  "login": "octocat",
  "id": 583231,
  "public_repos": 8,
  "followers": 9840,
  "created_at": "2011-01-25T18:44:36Z"
}

Comparison Table of API Examples

Domain Example Service Primary Method Auth Requirement
Weather Open-Meteo GET None (Free)
Finance Stripe Charges POST Bearer Secret Key
AI Reasoning Gemini Pro API POST API Key Header
GeoIP Location ipapi.co GET None (Rate-Limited)

Each of these api examples illustrates the universal contract of web engineering: send a well-formed request with expected parameters, and receive reliable, structured data.