You need help with the use of the Stack Exchange API, apps built on the API, or assistance building scripts that work on Stack Exchange websites.

learn more… | top users | synonyms

1
vote
0answers
29 views

API error: 500, “this error has been logged” when retrieving questions

I am using the following URL to get new questions: https://api.stackexchange.com/2.2/questions?pagesize=100&page=1&fromdate=1423639578&site=stackoverflow&key=MY_KEY_HERE I get: ...
2
votes
0answers
152 views

OAuth2 Authentication Redirection error in PHP

I'm trying to authenticate into Stack Exchange's API with the following URL: ...
48
votes
2answers
9k views

How to list your application/library/wrapper/script here

If you've created an application, script, or library for use on the Stack Exchange network, that's fantastic! Now publicize it by creating a question with the correct tag: app ...
1
vote
0answers
48 views

Array boolean values are returning empty

I am trying to convert a JSON array to a PHP array, and the boolean values are being lost. I think I need to loop round using foreach() and cast the items as they are placed in to the new array, but I ...
2
votes
1answer
23 views

Limiting the number of items returned by a request?

How can I limit the amount of items returned to me when performing an API call? I only want the top 10 most commonly used tags, by default I'm sent back 30. EG: ...
0
votes
0answers
22 views

Showing Different user on posting a comment on test environment

I am testing stack exchange API to post a comment to the test environment(http://meta.stackexchange.com/questions/3122/formatting-sandbox).I am providing the client_id and key for my current ...
0
votes
0answers
9 views

Unable to post a question through api again [duplicate]

I am testing an application to create a question on Stack Overflow. After i created my first question through the API , i am not able to do so as it says "we are no longer accepting questions from ...
2
votes
1answer
40 views

Question's body rendering in Android's webview

I've developed an app that get questions from Stack using REST APIs and shows them in a WebView. My problem now is that the body often contains placeholders that must be "replaced" with the real ...
0
votes
0answers
21 views

Okay to use Stack Exchange's icon? [duplicate]

I'm developing an app for the Stack Exchange network, and I'd like to use SE's icon as a texture for my app's icon. Is this permitted? (from a legal point of view, I mean)
0
votes
0answers
30 views

How can I show recently answered questions and answers in my blog site?

I would like to showcase some of my Stack Exchange answers in my blog site. I couldn't find a relevant post on how to implement this. Also, from what I can see, in order to use the API a user needs ...
2
votes
2answers
57 views

How can a userscript detect when a post's been edited in place, so that it can do stuff to the newly edited post?

I recently built a userscript for Board Games Stack Exchange. On page load, it scans questions and answers for certain plaintext patterns and replaces them with some HTML, making the posts prettier. ...
1
vote
0answers
36 views

How to retrieve the body of an accepted answer using the API?

I would like to retrieve accepted answers with complete answer body for a given question (using id) or a free form text (q). I have tried the /search/advanced and /search/excerpts routes -- setting: ...
0
votes
0answers
24 views

Is it okay to use the Stack Exchange API to get all tags as a one time call for a commercial application? [duplicate]

I want to get all tags that stackoverflow lists, and I can do that with: https://api.stackexchange.com/2.2/tags?site=stackoverflow I'm only going to make the request once to get a list of all tags ...
2
votes
1answer
71 views

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

I've found a Stack Exchange userscript which looks GREAT - it would make things so much easier for me: The Edit summary options script Unfortunately, it doesn't work at all! I'm not sure why. My ...
2
votes
1answer
35 views

Unable to download data from the API using UNIX wget?

I want to download the JSON data from this sample API call into a file. I tried using wget, like so: wget -O ~/ks/json.txt ...
2
votes
1answer
29 views

Obtain JSON equivalent of a full Q&A HTML page?

I want to write an application for which, after some logic to select a set of questions, it would be most convenient to get the whole set of stuff at once that is normally shown on a Stack Exchange ...
-1
votes
1answer
40 views

How to use the API to show the user reputation?

How do I use the Stack Exchange API to let my users enter their Stack Overflow URL and then extract their reputation and show it in a profile controller in Rails?
1
vote
1answer
75 views

Getting questions that have a specific tag or tags?

In the current API (2.1 and 2.2), how do you get questions that have a specific tag or tags? EG: All Stack Overflow questions asked in the past 2 months tagged 'ruby'? All Stack Overflow questions ...
0
votes
0answers
12 views

Get the list of question ids under a particular tag? [duplicate]

I am new to the Stack Exchange API. Stack Overflow has a tag named java, How do I get the list of all questions' ids that are tagged as java?
0
votes
1answer
49 views

Get UserId by passing email ID in the Stack Exchange API?

The Stack Exchange API is mostly based on 'ids'. IE /2.2/users/{ids}/top-tags?site=stackoverflow How can we get {ids} for a particular user using his email id or name? Is there any method available ...
2
votes
1answer
35 views

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

I heard about the Stack Overflow API. Is there a Stack Overflow API available. Or is it the same as the Stack Exchange API?
3
votes
1answer
29 views

Which reputation events are private?

I've been reading the API documentation on retrieving a user's reputation history (docs/types/reputation-history) and Stack Overflow's description of how reputation is calculated. But, I can't find ...
2
votes
0answers
28 views

Can I ask the API to tell me to back off? [duplicate]

I'm creating a bot that collects all tags from a given site (and over all sites in the network). I would obviously like to run this bot in as little time as possible, but I also do not want to overly ...
-1
votes
1answer
23 views

What about actually identical requests?

Now, it says here that I should not make lots of semantically equivalent requests. It also says that there is a lot of caching. So I was wondering, what about exactly identical requests. Should I wait ...
1
vote
1answer
87 views

How to increase the allowed number of API calls?

Stack Exchange provides the possibility to do a limited number of API calls per day from the same IP (10,000 if the customer registers the app). Is it possible to get that number increased?
2
votes
1answer
54 views

What's an example of the backoff field? Is there some way I can simulate it to test appropriate behavior?

In reading about the API rate limiting, the documentation talks about a method responding with an ominous backoff field, and states that the client should cease from calling that method for that many ...
4
votes
1answer
142 views

Why am I being told to backoff when I'm well within my API limit?

I've been running my API app fine for some time now and when I added another function I realized I was being told to backoff. I only run the app once a night and don't really pull that much data. I ...
1
vote
1answer
75 views

Stack Exchange API not realtime?

I was testing the inbox/unread API but noticed that there is a big delay between one gets a message, and this message gets included in the API response. Like one minute or more. Is this API not ...
2
votes
1answer
93 views

Is it possible to access data in real-time using the Stack Exchange API?

I want to show an animation of: Questions being asked and answered in the most popular tag Comments being posted New users joining All in real time. Is there access to real-time data?
7
votes
2answers
82 views

How to get data related to Winter Bash?

I was thinking of creating a nice question on Programming Puzzles & Code Golf related to Winter Bash 2014, but I need some specific data for that question - The number of hats of each user. Is ...
1
vote
2answers
45 views

Total Number Of Answers

I need to find the total number of answers submitted by a user on stackoverflow. I tried the following: I got my json from the following: ...
1
vote
1answer
78 views

Looking for a script to show countdown timer below posts for easier edits

On Stack Exchange sites, edits that are made within 5 minutes of posting a question or answer aren't counted. This is called the grace period. For example, if you post a new answer, and edit it after ...
0
votes
0answers
32 views

Review queues – bypassing/shunning “honeypot” stuff

Is there a solution against “honeypot” posts in review queues? As far as Ī noticed, there can be rather simple test: although the edit link (/posts/⋯/edit) is present below the “post”, attempt to ...
0
votes
0answers
52 views

400 (Bad Request) error in time of creating question using StackExchange API

I am trying to create a question in StackOverFlow using write-access API(https://api.stackexchange.com/2.2/questions/add). I have provided the parameters as required but a "400(Bad Request)" error is ...
1
vote
0answers
13 views

How do I sort the /2.2/notifications endpoint?

I do not find information on the notifications api page. I am looking at this: https://api.stackexchange.com/docs/notifications I would like to be able to sort by creations date and other fields. is ...
0
votes
1answer
43 views

“We are no longer accepting questions from this account.”. Error with write access, using the API

I have created an application for testing write-access APIs. After registration, I can successfully retrieve an access token by hitting the URL: ...
0
votes
0answers
26 views

Sandbox for testing Write APIs [duplicate]

I am developing am app for posting questions in StackOverFlow. In order to testing the app I am looking for a sandbox. I came to know regarding the following sandbox: ...
3
votes
1answer
26 views

How do display names relate to at-mentions?

Display names seem to be able to use full-on Unicode, but this is not so for at-mentions (Comment-replies). At the very least, spaces are stripped when doing an at-mention for Test User; this would ...
1
vote
1answer
41 views

“client_id rejected” error when retrieving the access_token

I'm developing an application in C# and I to post questions, so I need an access token. I registered my application and I have received a client ID. Then I get the following query-string to get the ...
0
votes
0answers
26 views

Procedure for posting questions using the API, v2.2?

I want use one of the Stack Exchange V2.2 API (e.g. /questions/add) to post Stack Overflow questions from my website. I didn't find any app which is currently using the API for posting questions. As ...
0
votes
0answers
26 views

Watch my content

How can I "keep an eye" on all my content on SE? Due to policy, users aren't notified when their questions or answers are deleted, despite numerous feature requests. I've looked at StackCenter but it ...
1
vote
1answer
24 views

`last_editor` is missing but `last_edit_date` is present?

Some posts (questions or answers) have a last_edit_date but no last_editor. Does this always mean that the post was last edited by the post owner? Example: stackapps.com/a/3891/ PS: This issue ...
1
vote
1answer
140 views

Searching on Stack Overflow and using the API give different results?

I am trying to use the Stack Exchange API to see the trends on different topics. Looking at the API documentation, I see that I could do this using the /search path (it's documented that this method ...
0
votes
0answers
47 views

How to generate an Access Token using .net?

I am trying to develop an .NET application to consume Stack Exchange APIs. I can consume GET methods. Now, I want to call Stack Exchange API /questions/add to add questions. This API needs an access ...
0
votes
0answers
34 views

How to get my StackOverFlow API Key [duplicate]

I used to login in StackOverFlow site using my Gmail Id/password.How I will get my StackOverFlow API key? I require that key to fire a StackExchage API which requires authentication. Also, could ...
6
votes
2answers
167 views

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

Is there an API for uploading images to the StackExchange-specific imgur installation? I could use the main imgur site, but they don't keep the images indefinitely. Use case: It would be ...
0
votes
0answers
15 views

How to call editor commands from the outside?

When initialised, the SE editor instantiates CommandManager: this.run = function () { if (panels) return; // already initialized var commandManager = new CommandManager(hooks, ...
1
vote
1answer
25 views

Is there any API or documentation that would help my adding functionality to Q&A textareas?

I'm writing an userscript that should add some functionality to the main textarea (WMD) used to post and edit answers and questions. The functionality will usually need to do things like insert text ...
3
votes
1answer
31 views

How can I access all questions asked by an arbitrary user?

Within the web app for courses I organize, I'd like students to be able to provide their Stack Overflow username, so that we can pull in their most recent and unanswered questions. This information is ...
0
votes
0answers
30 views

Authentication not working properly

I'm using python to test the API calls and made a request for authentication specifying: client_id, client_secret, etc., to https://stackexchange.com/oauth It returns a 200 response. One issue here ...