Questions tagged [sites]

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.

Filter by
Sorted by
Tagged with
3 votes
0 answers
36 views

Add the excerpt back to the question title on hover

Screenshot / Code Snippet Quickly assess if a question is worth opening by hovering over the title. (This restores a feature that was removed for performance reasons by Stack Exchange.) Click image ...
rene's user avatar
  • 2,462
2 votes
1 answer
189 views

Main Stack Exchange network site API

The original Stack Exchange app has this cool feature where you can browse hot question from the entire network. But at the current state I am not able to see a “Stack Exchange” site listed in the ...
Daniel James Tronca's user avatar
3 votes
1 answer
70 views

How to get the user's pinned sites?

I have been trying to find the API for getting all the pinned/favorite sites of the user, but I can't.
user13414590's user avatar
1 vote
1 answer
52 views

Stack Exchange API - What does "site_state" mean?

The /sites route can return site_state. What does site state stand for and which values can it have? The values I found: normal linked_meta open_beta
Norbert Bartko's user avatar
1 vote
1 answer
41 views

How to get visits per day via the API?

At the overview page of the Stack Exchange network, one can see a list of all sites of the network with some statistics for each site (number of questions, answers etc.). Most of these statistics can ...
petzi's user avatar
  • 113
1 vote
1 answer
41 views

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

I just wrote an app for Chrome extensions and received a request to make it cross-StackExchange compatible. If there's eventually going to be more sites than just the few listed and I don't really ...
Dimas Maulana's user avatar
5 votes
1 answer
91 views

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

If I have the ID of a user from any site, how can I get that's user's ID for a site I specify? Eg. If someone's ID was 10349 on Super User, how could I get 10349's id on Stack Overflow? I know I'd ...
ᔕᖺᘎᕊ's user avatar
  • 4,365
3 votes
0 answers
36 views

Buggy HTTP header behavior with the `site` parameter. Improper caching?

In sx.el we are using url-request-extra-headers to pass API requests to Stack Exchange. When performing multiple queries in quick succession, we end up receiving the same JSON response even when the ...
Jonathan Leech-Pepin's user avatar
3 votes
1 answer
79 views

Getting display name of the site on which question is located

When using the /questions method to retrieve a particular question, I'd like to also get the display name of the site on which the question is located (e.g., User Experience). At present, the API does ...
user avatar
6 votes
1 answer
157 views

StackExchange API /sites/ does not return all the sites

I am working on one application that produces timeline of user on every site of StackExchange.. We have some users on Sharepoint.stackexchange.com.. Since I want list of all the sites, I am trying to ...
Rahul's user avatar
  • 223
3 votes
0 answers
37 views

/associated should include user's display name and the api_site_parameter

/associated should include api_site_parameter The /associated routes return the site_name and site_url but not the api_site_parameter. It would be useful if it did because api_site_parameter is ...
Jonathan.'s user avatar
  • 3,128
3 votes
1 answer
87 views

How to get a list of sites that a user is a member of?

After spending many hours trying to post a question using /questions/add and repeatedly getting the error message "The account associated with the access_token does not have a user on the site", I ...
Pwner's user avatar
  • 185
2 votes
0 answers
144 views

Quick Quran verse links

Screenshot About At Islam Stack Exchange we often refer to Quran verses in answers. This script makes it easier to add those references by adding an input field directly before the question/answer ...
Mohammad's user avatar
  • 213
1 vote
1 answer
29 views

Get points from Multiple sites in one call

Is there any way to get total points and badges from various sites (e.g. stackoverflow, sharepoint, wordpress etc.) in one call?
Rahul's user avatar
  • 223
1 vote
1 answer
102 views

Most of the url are missing the protocol

Maybe you were trying to fix the other "bug" I've pointed out, but now most of the url for the icons are missing the protocol! { "site_type": "main_site", "name": "Stack Overflow", "...
Enrichman's user avatar
  • 133
1 vote
1 answer
69 views

Get all sites of type "main_site"

Is there a way to get all sites of type main_site from the /site method? If not, what's the best way to get that list? Should I get all sites with a huge pagesize and then filter it in my App?
estebane97's user avatar
3 votes
1 answer
180 views

Array of all Stack Exchange sites with Name, URL and Description

I'm building a WordPress widget and need this array do display a dropdown where the user will select the target site. And with the selection value, the information will be built and displayed ...
brasofilo's user avatar
  • 992
1 vote
0 answers
111 views

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

Currently, in the /sites method, a site can have a site_state of: normal, open_beta, closed_beta, or linked_meta. This makes it easy to tell if a main site is in beta or not. But it becomes a 2 or 3 ...
Brock Adams's user avatar
  • 12.9k
1 vote
2 answers
112 views

How to get the site name from document to pass to API?

Most APIs take a parameter site which must be set to the name of the site your queries are about. For meta.travel or travel. But of course sites have various names, for example gaming.stackexchange....
hippietrail's user avatar
1 vote
0 answers
25 views

Why are Meta sites' "site_state" = "linked_meta"?

In 2.0 there are the site_type and site_state fields. On Meta sites these fields give the same information, site_type = meta_site and site_state = linked_meta Instead it would be more useful if ...
Jonathan.'s user avatar
  • 3,128
1 vote
1 answer
38 views

API 2.0 is not returning Programmers in list of sites

Run https://api.stackexchange.com/2.0/sites. programmers.stackexchange.com is not in the response.
Adam's user avatar
  • 809
1 vote
1 answer
67 views

Site_Type returns "main_site" for meta.stackoverflow.com

For Meta Stack Overflow, the 2.0/sites endpoint returns "main_site" rather than "meta_site". All other site_type for other stackexchange sites return correctly. URL: https://api.stackexchange.com/2.0/...
Crashthatch's user avatar
3 votes
1 answer
40 views

Can 'api_site_parameter' be added to related_site?

It would be great if the related_site type contained api_site_parameter. I realize that you probably don't want to clutter up related_site with a lot of unnecessary fields, but I think it makes sense ...
Nathan Osman's user avatar
  • 23.3k
1 vote
1 answer
48 views

Failed beta sites are showing up in the /sites method.

3D Graphics and Game of Go are both failed beta sites. I would not expect them to show up in the /sites list - but they do. Indeed, attempting to list questions on one of the sites fails: http://...
Nathan Osman's user avatar
  • 23.3k
6 votes
1 answer
75 views

Can we have a flag for sites with mature content?

To my horror today, I discovered that StackMobile was happily serving up content from the newest Stack Exchange site. (StackMobile has a cron job that runs daily, updating the list of sites using the ...
Nathan Osman's user avatar
  • 23.3k
3 votes
1 answer
114 views

Add Twitter accounts on the /sites route?

Would it be possible to add references to the site Twitter accounts in the /site listing? If your wondering what I'm talking about: blog.stackoverflow.com/2011/01/twitter-question-feeds-for-stack-...
Jonathan.'s user avatar
  • 3,128
12 votes
1 answer
347 views

How the /sites method is meant to be used

The /sites method is used to enumerate all sites in the network. If your [app] is meant to run against more than a single site (and many are) this method is how you should be discovering new sites in ...
21 votes
1 answer
866 views

Stackathlon 2.5: Leader board for users active on multiple sites

tl;dr New! See "More Athlons" below. Screenshot About It's surprising how few people are active on multiple Stack Exchange sites. Well, maybe not so surprising. But it's a big world; you'd ...
Dennis Williamson's user avatar