APIs públicas destacadas

Tabla con ejemplos rápidos. Puedes agregar/editar filas desde WordPress (TablePress o Elementor).

OpenWeather

Datos meteorológicos por ciudad.

api.openweathermap.org/data/2.5/weather?q=Bogota&appid=YOUR_KEY

Probar

The Cat API

Imágenes aleatorias de gatos.

https://api.thecatapi.com/v1/images/search

Probar

PokéAPI

Información detallada de Pokémon.

https://pokeapi.co/api/v2/pokemon/ditto

Probar

NASA APOD

Imagen astronómica del día.

https://api.nasa.gov/planetary/apod?api_key=DEMO_KEY

Probar

Ejemplo de consumo (JS – Fetch)

async function fetchExample(url){
  const res = await fetch(url);
  if(!res.ok) throw new Error('HTTP '+res.status);
  const data = await res.json();
  console.log(data);
  return data;
}

// uso:
// fetchExample('https://api.thecatapi.com/v1/images/search')

cURL (ejemplo)

curl "https://api.nasa.gov/planetary/apod?api_key=DEMO_KEY"

Python (requests)

import requests
r = requests.get('https://pokeapi.co/api/v2/pokemon/pikachu')
print(r.json())

Prueba rápida (resultado en esta página)

Haz clic en Probar para ver la respuesta JSON de la API.

Aquí aparecerá la respuesta…