REST API gratuita

HispAPI

Datos falsos en español para prototipos, demos y frontends. Sin clave, sin registro, sin límite de uso.

curl https://hisp-api.vercel.app/api/users?limit=5

Prueba en vivo

{ "endpoint": "/api", "aviso": "Pulsa «Llamar» para probar un endpoint." }

Endpoints

Base: /api. Todos devuelven JSON con cabeceras CORS, así que puedes llamarlos desde el navegador.

RutaDescripciónParámetros
/apiÍndice con todos los endpoints
/api/namesNombres en españolgender, limit
/api/usersUsuarios completoslimit, seed
/api/postsPublicacioneslimit, seed
/api/commentsComentarioslimit, seed
/api/productsProductos con preciocategory, limit
/api/addressesDirecciones colombianaslimit, seed
/api/companiesEmpresas falsaslimit
/api/refranesRefranes populareslimit
/api/quotesCitas célebreslimit
/api/jokesChistes cortoslimit
/api/randomElemento aleatorio

limit: de 1 a 50 (por defecto 5). seed: si lo pones, los resultados son siempre los mismos para la misma combinación de valores. gender: woman, man o random.

Uso

Con fetch

const res = await fetch("https://hisp-api.vercel.app/api/users?limit=3");
const body = await res.json();
console.log(body.data);

Respuesta

{ "endpoint": "/api/users", "count": 3, "data": [...] }