/v1/sites
Directory of Stack Exchange sites
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
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_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"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",
…