Ir al contenido
GET /v1/sites

Directory of Stack Exchange sites

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/stackexchange-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/stackexchange-api/v1/sites" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/stackexchange-api/v1/sites", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/stackexchange-api/v1/sites");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/stackexchange-api/v1/sites",
    headers={"x-oanor-key": "oanor_test_..."}
)

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "data": {
        "page": 1,
        "count": 50,
        "results": [
            {
                "name": "Stack Overflow",
                "slug": "stackoverflow",
                "audience": "professional and enthusiast programmers",
                "icon_url": "https://stackoverflow.com/Content/Sites/stackoverflow/Img/apple-touch-icon.png",
                "site_url": "https://stackoverflow.com",
                "site_type": "main_site"
            },
            {
                "name": "Server Fault",
                "slug": "serverfault",
                "audience": "system and network administrators",
                "icon_url": "https://serverfault.com/Content/Sites/serverfault/Img/apple-touch-icon.png",
                "site_url": "https://serverfault.com",
                "site_type": "main_site"
            },
            {
                "name": "Super User",
                "slug": "superuser",
                "audience": "computer enthusiasts and power users",
                "icon_url": "https://superuser.com/Content/Sites/superuser/Img/apple-touch-icon.png",
                "site_url": "https://superuser.com",
                "site_type": "main_site"
            },
            {
                "name": "Meta Stack Exchange",
                "slug": "meta",
                "audience": "meta-discussion of the Stack Exchange family of Q&A websites",
                "icon_url": "https://meta.stackexchange.com/Content/Sites/stackexchangemeta/Img/apple-touch-icon.png",
                "site_url": "https://meta.stackexchange.com",
                "site_type": "main_site"
            },
            {
                "name": "Web Applications",
                "slug": "webapps",
                "audience": "power users of web applications",
                "icon_url": "https://webapps.stackexchange.com/Content/Sites/webapps/Img/apple-touch-icon.png",
                "site_url": "https://webapps.stackexchange.com",
                "site_type": "main_site"
            },
            {
                "name": "Web Applications Meta",
                "slug": "webapps.meta",
                "audience": "power users of web applications",
                "icon_url": "https://webapps.meta.stackexchange.com/Content/Sites/webappsmeta/Img/apple-touch-icon.png",
                "site_url": "https://webapps.meta.stackexchange.com",
                "site_type": "meta_site"
            },
            {
                "name": "Arqade",
                "slug": "gaming",
                "audience": "passionate videogamers on all platforms",
                "icon_url": "https://gaming.stackexchange.com/Content/Sites/gaming/Img/apple-touch-icon.png",
                "site_url": "https://gaming.stackexchange.com",
                "site_type": "main_site"
            },
            {
                "name": "Arqade Meta",
                "slug": "gaming.meta",
                "audience": "passionate videogamers on all platforms",
               
…