Hot answers tagged

13 votes

Stack Exchange thinks that Shog is a elected moderator

Funny story... When I first joined the team here at Stack Exchange, Jeff just went around on the trilogy sites and made me a moderator... And he used the "elected" route instead of the "...
user avatar
  • 631
11 votes
Accepted

My registered apps are not showing in my profile; where can I find them?

You can see your apps, that you registered with the registration page, by going to: stackapps.com/apps/oauth This page is different for every user and you will be forced to log-in to see it. The ...
user avatar
  • 12.6k
11 votes
Accepted

How to delete apps in StackApps?

You cannot do this. A delete feature has been requested and requested again (with status-planned given about 3.5 years ago). Register your desire for this by immediately upvoting these posts: ...
user avatar
  • 12.6k
11 votes
Accepted

Unable to get access token

Refer to the Stack Exchange API, Authentication docs. It looks like you are trying to authenticate using either a server you do not control, or a local server that is not on the public internet. ...
user avatar
  • 12.6k
11 votes

What exactly is a valid OAuth domain name for registering your app?

The OAuth Domain is either: A valid domain that you own and control, and that is hosted somewhere the client can reach. Say, for example that you owned unicorns.mil. See this answer and this answer ...
user avatar
  • 12.6k
10 votes

Is there an API to upload images to SE's imgur installation?

While this is not available I don't think SE can do much to prevent it. I don't have any easily readable code to give you code example, but the theory is following: The upload request: To upload ...
user avatar
8 votes

How to get data related to Winter Bash?

The unofficial Winterbash inbox API If you have any user's account_id then the hats information is just one call away. And the call is http://winterbash2014.stackexchange.com/api/inbox?accountId=<...
user avatar
  • 309
8 votes
Accepted

How do I get my total reputation score using the API?

Just use the plain /users/{ids} route. (For network-wide score, see the bottom section, below.) if you run it on your userid, it currently returns: { "items": [ { ... "reputation": 354, ...
user avatar
  • 12.6k
7 votes
Accepted

Can the redirect_uri contain port number?

You got that error because you set the OAuth Domain like example.com:8080, not the redirect_uri. That's not how you configure non-standard ports; see below. The redirect uri, with port, feature now ...
user avatar
  • 12.6k
7 votes
Accepted

How to create API filters?

You can create and edit filters from the documentation page of the API endpoint. So you start at the Index of all endpoints. There you'll find /users/{id}/answers. On the right at the top of the ...
user avatar
  • 1,810
7 votes
Accepted

Why is /questions API returning deleted questions?

Confirmed; see bottom section, below. However, please refer to Provide a way to retrieve questions and answers that have been deleted -- which is "status-planned". This is a feature, not a bug. And ...
user avatar
  • 12.6k
6 votes
Accepted

API throws improper error when "date" parameters are the same

Yes, that bug is annoying, especially since specifying a todate that's before the fromdate returns a valid result set, EG: { "items": [], "has_more": false, "quota_max": 10000, "...
user avatar
  • 12.6k
6 votes

Is the Stack API daily quota of 10,000 a hard limit, or can it be increased?

See How API Keys Work. It's six years old, but a leading API developer said: ... If you can demonstrate a need for a higher request quota, contact us. However, the Key limit should be ...
user avatar
  • 12.6k
6 votes
Accepted

How to get total visited days and consecutives of an user?

You cannot get the days visited, nor consecutive, information for a user because that is private information(Poster is SE representative). Stack Exchange is supposed to be about the content, not the ...
user avatar
  • 12.6k
5 votes
Accepted

Possible to get a user's flag history?

Nope. Neither the user_timeline object, nor the user object return any flagging information, at all. (as of API version 2.2). The question, answer, and comment objects can return a can_flag boolean, ...
user avatar
  • 12.6k
5 votes

How to get data related to Winter Bash?

http://winterbash2014.stackexchange.com/api/user-hats?userId=29538&host=stackapps.com This returns an array of arrays. Each inner array contains three integers: The Id of the hat The number of ...
user avatar
  • 10.9k
5 votes
Accepted

404 "This Method cannot be called this way" when getting user's inbox

I don't believe that that route accepts POST requests (as it's non-actionable), so you should have better luck sending a GET request instead. Routes that require auth tokens necessitate HTTPS, but ...
user avatar
  • 4,666
5 votes
Accepted

Can I get information about a user with their network ID?

You can use /users/{ids}/associated Try it for your network account Returns all of a user's associated accounts, given their account_ids in {ids}. {ids} can contain up to 100 semicolon delimited ids,...
user avatar
  • 1,810
5 votes
Accepted

How to increase app request quota from 300 to 10,000?

You are using the "Javascript SDK" and that's not how it works. The doc page calls the SDK "small and minimalistic".   The source code states: This file is provided to API clients to ...
user avatar
  • 12.6k
5 votes
Accepted

Bug with `badges/name` endpoint

I don't know for sure what the original problem was, but the most recent issue was a result of implementing a new badge without rebuilding the API. Once the API was pushed to production, the bug was ...
user avatar
4 votes
Accepted

Which reputation events are private?

There doesn't seem to be a place that describes the policy. That API-object, documentation page would be perfect for it. However, a lead Stack Exchange developer has stated that anything that ...
user avatar
  • 12.6k
4 votes
Accepted

What's the difference between the Stack Exchange API and the Stack Overflow API?

They are one and the same. When the API was first announced (March 31st, 2010), it was temporarily called the "Stack Overflow API" -- even though Jeff said that the API would be "for all the trilogy ...
user avatar
  • 12.6k
4 votes
Accepted

Unable to download data from the API using UNIX wget?

The API documentation states that the API always returns a compressed response: ...we guarantee that all responses are compressed, either with GZIP or DEFLATE. GZIP is the default. This means ...
user avatar
  • 12.6k
4 votes
Accepted

Limiting the number of items returned by a request?

Just set pagesize in the URL, like: https://api.stackexchange.com/2.2/tags?pagesize=10&order=desc&sort=popular&site=stackoverflow
user avatar
  • 4,666
4 votes
Accepted

Can not request info after OAuth

Your second call must be https:. You actually got an error like: "error_id":406, "error_message":"Access token sent over non-HTTPS request, it has been invalidated", "error_name":"...
user avatar
  • 12.6k
4 votes
Accepted

How do I add newlines when editing a post body via the API?

The \r\n issue was solved when I changed to a POST request. But, since I was retagging questions (didn't really need to change the body, just resend it), I ended up using the body_markdown, encoded ...
user avatar
  • 561
4 votes
Accepted

Where is "items" & "badge_counts" documentation?

items is documented in the Common Wrapper Object. It is an array of whichever object the given route returns. In the case of /me/associated,  items is an array of network_user objects. If you ...
user avatar
  • 12.6k
4 votes

Some blank properties missing

See the documentation for network_user.   top_answers and top_questions are not returned by default; you must specify them explicitly in a filter. When you ran /me/associated from the doc page ...
user avatar
  • 12.6k
4 votes
Accepted

How to include answers when fetching questions?

The various /questions routes do allow you to simultaneously retrieve answers, if you set the right filter. A good starting filter for getting questions with answers is: !gB7hjL3lhJ*Cnfe63rh6pAm74J(...
user avatar
  • 12.6k
4 votes
Accepted

Get total answers count for a specified: Tag, Userid and Date-range?

Your stated problem is considerably easier than the question you linked. You can use the /users/{ids}/answers route to get what you want -- with a little work. The trick is to use a filter that ...
user avatar
  • 12.6k

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