Hot answers tagged

11 votes

API "Hello World" code

Python: Below is python code to get minimal info results. See bottom on how to run. import requests BASEURL = "https://api.stackexchange.com/2.2/info" params = { "site" : "...
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: ...
  • 12.7k
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. ...
  • 12.7k
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 ...
  • 12.7k
11 votes

I only need a key, what do I do?

When you click the Register link you're presented with this webform: If you're in a hurry and click Register your Application you'll find this error: The fields Name, Description, Website URL and ...
  • 2,140
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 ...
10 votes
Accepted

Why has my daily quota increased from 10k to 2 billion?

After re-investigating my code, I realized what was going on here. For this particular project I wasn't using the API key and access token of my own application; I'm using the ones I sniffed from the ...
  • 6,022
9 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, ...
  • 12.7k
8 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 ...
  • 12.7k
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=<...
  • 309
8 votes

Hide the Stack Exchange sidebar

Okay, the following Stylish style should be a good start. You can also see / install it at userstyles.org. @namespace url(http://www.w3.org/1999/xhtml); @-moz-document domain("askubuntu.com"),...
  • 12.7k
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 ...
  • 2,140
7 votes
Accepted

Can I have a separate account just for testing my Stack App?

It's allowed with the caveat there's no guarantee it won't be merged, provided that you abide by the good faith criteria. If you attempt to actually run something like the script in your previous ...
  • 4,696
7 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 ...
  • 12.7k
6 votes
Accepted

Request for script, or fix, to add Edit-Reason checkboxes

Okay, went ahead and banged out a script for this; Happy Christmas! To install, click here (SE Edit Reasoner install at Github). To preview the source, click here (SE Edit Reasoner preview at ...
  • 12.7k
6 votes
Accepted

How to obtain the bibtex item for a question with a program or HTTP request?

It's pretty easy to get the bibtex, just send a GET request formatted like so: https://mathoverflow.net/posts/{POST NUMBER}/citation For example, for this Math Overflow question, you can get the ...
  • 12.7k
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 ...
  • 12.7k
6 votes
Accepted

As a user, where in the web UI could I find all the tokens I have granted for Stack Apps?

Go to your profile: https://stackapps.com/users/current Click the "Edit Profile & Settings" tab: https://stackapps.com/users/edit/current Click "Applications" on the left sidebar (no handy ...
  • 641
6 votes
Accepted

Does a closed and/or deleted Stack Apps post still provide access to the API?

I've just done a couple of tests with my placeholder app. Even though the question is closed, I was able to generate a new access token (following the regular procedure) for my sockpuppet account, and ...
  • 6,022
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 ...
  • 10.9k
5 votes
Accepted

How can I introduce my Stack Overflow app to other users?

There's no one way. Here's a recipe you can use: Make a proper app post here on StackApps. See How to list your application/library/wrapper/script here. Look for posts on Meta Stack Overflow (MSO) ...
  • 12.7k
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 ...
  • 4,696
5 votes
Accepted

How to use Stack Exchange WebSockets?

No, the WebSockets are not officially supported. They are internal to Stack Exchange, use them at your own risk. If it is at all possible to do your task with the API, use that. That's what it's ...
  • 12.7k
5 votes
Accepted

OAuth procedure for standalone user?

Refer to the API Authentication doc page, where it says: explicit grant (is) for server side applications Also, see What is the difference between the 2 workflows? and related questions. ...
  • 12.7k
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,...
  • 2,140
5 votes
Accepted

Getting "application not configured for implicit grants" error trying to setup website

Yes, it can be annoying that the API docs, the javascript SDK, and the settings pages use the terms: "Explicit" "Implicit" "Server side" "Client side" a little interchangeably. (The first 2 are ...
  • 12.7k
5 votes
Accepted

When asking/answering a question on SE sites; Is there a way to fix the page in place so that you only see the displayed output as you type?

This doesn't have anything to do with Stack Exchange pages, it's a browser thing and mostly a very good thing. You can see that the page isn't doing it by: Disable all javascript on your browser. (...
  • 12.7k
5 votes
Accepted

How do I find all questions/answers per a tag using .Net?

To get the questions in a tag you can simply use the /questions endpoint as that does accept a tagged query parameter, from that document page: To constrain questions returned to those with a set ...
  • 2,140
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 ...
  • 12.7k
5 votes
Accepted

How can I quickly get an access token for personal use?

It's possible to authenticate yourself via the command line; there's no need to set up a website or so. Open the application page via https://stackapps.com/apps/oauth and make sure the option 'Enable ...
  • 6,022

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