I'm trying to fetch card-data as it is fetched on https://stackexchange.com/sites (request example below as a Node.js fetch), but can't find cards (or, hence, card IDs) for CS50 or Programming Language Design and Implementation, so I can't make the request. Both these sites are returned from https://api.stackexchange.com/2.3/sites, so I don't see why they wouldn't be there. Do they have IDs that I can't find or what's going on?
fetch("https://stackexchange.com/sites/card-data", {
"headers": {
"accept": "*/*",
"content-type": "application/x-www-form-urlencoded; charset=UTF-8"
},
"body": "siteId={id}&fetchHotQuestion=true&fetchTopUsers=true",
"method": "POST"
});
Site ID can be found in the HTML for each card, extracting it from the element's ID in the format "gv-site-{id}".
{hotQuestionHtml, topUsersHtml}
), but "hot question" was just "-" (could be that no questions have been asked there recently). I think this is as far as it'll go. Thanks for the help