Tag Info

Hot answers tagged

2

You can actually just pass in window.location.hostname directly: This parameter can be the full domain name (ie. "stackoverflow.com"), or a short form identified by api_site_parameter on the site object. (emphasis mine) Since the site does not provide the short form to you directly anywhere, going the full hostname route is probably your best bet. ...


1

Yes, the sites path does not filter results on site_type. But the good news is, the path accepts a pagesize of 999, so you can get all the results at once. Then you must filter the results in your app. Here's what it looks like in jQuery: $.ajax ( { type: 'GET', url: ...



Only top voted, non community-wiki answers of a minimum length are eligible