Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 7653

For questions about the `site` parameter or the /sites route of the API. Or about dealing with multiple Stack Exchange sites in/with the API.

1 vote
Accepted

How to get visits per day via the API?

Your only recourse is to scrape the sites page or to use third party providers like Quantcast or Google for traffic info. … Also note that the visits/day info on the sites page is a lie, designed to inflate traffic numbers 90% of the time. …
Brock Adams's user avatar
2 votes

How do I future-proof my app to work with every SE site?

This question is nearly a duplicate of Complete list of sites to @include / @match into my script?. This is not hard. … There are only seven second-level domains to worry about and all new sites are likely to continue using a domain in the *.stackexchange.com pattern. See the above linked question for the list. …
Brock Adams's user avatar
4 votes
Accepted

How can I access a user's ID on another site (eg. SU) if I have their ID from another site (...

Use the /users/{ids} route to get account_id. Then pass the account_id to /users/{ids}/associated. Note that account_id is exactly the kind of information that should be heavily cached by your scri …
Brock Adams's user avatar
2 votes

Getting display name of the site on which question is located

But, if you are querying separate sites with concurrent AJAX queries, merely encapsulate the site name in your AJAX callback. … If you really want the English name, EG "Arqade", then look up the domain, as determined above, in a table that your app cached after calling /sites once per app session or once per day. …
Brock Adams's user avatar
1 vote
Accepted

Get all sites of type "main_site"

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. … Here's what it looks like in jQuery: $.ajax ( { type: 'GET', url: 'https://api.stackexchange.com/2.1/sites?pagesize=999&filter=! …
Brock Adams's user avatar
1 vote
0 answers
111 views

Please differentiate between meta sites for beta versus normal sites, in the /sites method

For all meta sites in beta, please change the site_state to linked_meta_beta or similar. Or add the launch_date field like normal, main sites have. … PS: I mainly care about beta sites because they are not in the Stack Exchange Data Explorer (SEDE). …
Brock Adams's user avatar