Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [api]

For questions about the Stack Exchange API. Consider checking the API documentation and the Stack Apps site before posting your question here, it might have been asked before already.

5
votes
0answers
38 views

The API has been behind on and off today

I'm using the SE android app which pulls data via the API (afaik). All day, the data it's showing is out of date. I'll refresh the new question feed, and it will only show questions from like 10 ...
2
votes
1answer
55 views

Does Stack Overflow provide public Python APIs for querying?

I'm interested in writing an application on top of Stack Overflow. For example: Get the answers to the questions identified by a set of ids, get the questions that are related to the questions ...
-1
votes
0answers
42 views

How can I test my app without a sandbox? [duplicate]

Our team is building an app using the Stack Exchange API. The app's purpose is to notify team members when a question is asked which meets certain parameters as specified in /search/advanced GET. In ...
-2
votes
0answers
60 views

StackAPIError - I can't retrieve all questions and answers tagged java [duplicate]

I want to have a dataset that contains all the questions and answers (accepted) of java, I used your API "stackapi", and the source code I made is: from stackapi import StackAPI SITE = StackAPI("...
4
votes
2answers
84 views

Accessing the latest comments on a site from the Stack API

Context: As a moderator on a relatively small beta site, I often notice spam, chatty, rude or entirely unrelated comments on old posts. It'd be nice if I had an easy way to monitor them. From the ...
0
votes
1answer
44 views

Is there a sandbox chat room for testing the API? [duplicate]

Right now I have one (1) reputation and I need 20 to be in a chat. How do I test the chat API? Do I need to get more upvotes to chat or is there a "sandbox" chat that does not need rep? I know that ...
1
vote
1answer
31 views

Where do I find a history of changes to Stack Exchange's API?

As the title says is there a place where I can find a history of changes to the API? The API I am talking about is here: https://api.stackexchange.com/ I want something more detailed than what is ...
2
votes
1answer
54 views

Getting Duplicate Questions from Stack Exchange API

I want to use api.stackexchange.com to get duplicate questions. Scenario: I get a question from api.stackexchange.com using GET .../questions/{my_question_id}. In the next step I would like to get a ...
40
votes
10answers
896 views

What limits should we place on automated voting?

This has come up a few times now in moderator circles, but with the exception of Andy's Robot there hasn't been a lot of public discussion that's applicable. That feels kinda negligent to me, so... ...
38
votes
1answer
220 views

Users are able to register apps that look official (for phishing)

Recently, a user was able to register an app with the name "StackOverflow". Alarmed, I tried it myself. If you click this authorization link, you will see: ... which sure looks official. This is ...
0
votes
1answer
56 views

Gathering a full year of question data from the API

I want to try doing a data analysis project based on a large amount of SO question data. Specifically, I want to take a year worth of question data (from 2018/01/01 to 2019/01/01), and look for ...
6
votes
1answer
99 views

Stack Exchange API returning 407: Account is not allowed to suggest edits

I'm currently trying to create a bot to submit some edits to questions on Stack Overflow. This bot currently has < 2k rep, but I'm able to submit these edits to the website manually, without any ...
3
votes
1answer
67 views

Stack Exchange API for Tags won't set has_more to True

I have this request URL: https://api.stackexchange.com/2.2/tags/python/top-answerers/all_time?page=1&pagesize=100&site=stackoverflow&filter=!9Z(-x.0nI What I need is to have a pagination ...
1
vote
1answer
74 views

Get answers in JSON for a given Stack Exchange article

We are trying to figure out how to get the answers for a given question ID in JSON or XML instead of HTML - so far for a URL like this: https://api.stackexchange.com/2.2/questions/52533798/answers?...
4
votes
0answers
55 views

API /tags/{tag-list}/info returning incorrect count for synonyms

I've recently started work on a tool to track and organize burnination requests. At its core, it tracks the number of questions attached to questions found in burnination requests. Part of that tool ...
4
votes
1answer
107 views

Stack Overflow Teams API: How to get all questions or posts data?

I am trying to build a database of all the posts and answers on my Stack Overflow team information. I am able to download all data in the "Settings" -> "Billing & Accounts" tab but I am looking ...
2
votes
1answer
139 views

Too many requests made by this IP. Key reason? [duplicate]

This is may seem as a duplicate but I want to get this straight. I am sending some requests to the Stack Exchange API for a project I am running. But after testing it I get this response: {'error_id':...
4
votes
0answers
49 views

Stack Exchange API - Obtaining the Tag Watchers Count

I've reviewed the entire Stack Exchange API v2.2 and have not found how to obtain the tag Watchers Count; e.g.: How to obtain the 'watchers' count using the Stack Exchange API?
4
votes
0answers
84 views

Bumped locked question is not visible on web, but visible in apps

According to this bug report bumping locked question to the homepage is by design. I disagree with this, but my question is about different, but related issue. A couple of times and today is one of ...
2
votes
1answer
79 views

Get a post's text, from the Stack Exchange API, in decoded and pastable form?

I know how to retrieve body_markdown with the Stack Exchange API. But if I copy the retrieved body into a Markdown editor then I don't get back the "real" body of the answer. I've tried using ...
0
votes
1answer
153 views

Unable to fetch data from the Stack Overflow API (too many requests)

I am trying to fetch API data from:     api.stackexchange.com/2.2/questions?site=stackoverflow... But I am getting the error: {error_id: 502, error_message: "too many requests from this ...
-2
votes
1answer
39 views

Reputation leagues by tags (or programming language)

Is it possible to identify - say the top 300 Node.js users by Stack Overflow reputation? This question can be answered in two ways: Programmatically (with an API) or by looking at the Stack ...
4
votes
2answers
138 views

Determining user's reputation as of particular date?

I would like to programmatically - or with the API determine what a user's reputation is on a particular day. As such, I have found this link: Determine a user's reputation on a given day However,...
2
votes
1answer
63 views

How to return multiple users objects with single API call?

I am using the following to return JSON of a user object: https://api.stackexchange.com/2.2/users/8826629?order=desc&sort=reputation&site=stackoverflow&key=<my key> I need multiple ...
1
vote
0answers
56 views

How to approve Stack App and log in to Stack Overflow using REST API?

I would like to create a small application just for me to log in to Stack Overflow and see my profile. The issue is that if I understand the documentation correctly, I have to first approve my ...
1
vote
0answers
40 views

Allow the API to accept min/max for fields other than the one sorted by

Today I discovered that the Stack Exchange API only honors a min/max parameter for the field that you're ordering by. However, there are cases where you want the results where x is at least/most z ...
2
votes
0answers
143 views

Is Stack Exchange working on providing a GraphQL based API endpoint?

GitHub currently offers both REST API and a GraphQL endpoint to query its entire database. I was wondering if Stack Exchange (SE) is working on offering a GraphQL endpoint sometime soon. As a ...
2
votes
0answers
36 views

Posting/editing subject to unpredictable lag

I've noticed recently (in the past few days), there's occasionally a confusing lag when posting comments in the Android app. I haven't updated the app in forever though, so I don't think it's the app ...
3
votes
0answers
36 views

Port not included in client-side OAuth flow

I was recently making an app using the SE API's client-side auth flow. What I noticed is that there was this Unable to post message to http://localhost. Recipient has origin http://localhost:5000. ...
4
votes
1answer
250 views

Is there a OpenAPI/Swagger spec for the Stack Exchange API?

I'm interested in calling the Stack Exchange API (https://api.stackexchange.com/docs) and was wondering if there is a OpenAPI/Swagger 2.0 or 3.0 specification for it? I didn't see it on the docs page ...
17
votes
0answers
114 views

Typo on https://api.stackexchange.com/docs/create-filter

In https://api.stackexchange.com/docs/create-filter When the size of the parameters being sent to this method grows to large, problems can occur. This method will accept POST requests to ...
10
votes
0answers
58 views

The API crashes when trying to retrieve multiple tags

Using the /tags/{tags}/info route, I try to retrieve the info for a few tags, but the API crashes with: Server Error in '/' Application.     (click for larger view)     This ...
2
votes
0answers
42 views

Redirect parameter `state` is missing in case of error

Testing OAuth authorization in my app I noticed a case when state parameter is not passed to redirect uri. I use state to track auth process at server side. If user doesn't authorize application, he ...
3
votes
1answer
76 views

When will question's last_activity_date be updated?

I use Stack Exchange API to get information of questions, I noticed that some comments' last_activity_date is later than the question's last_activity_date, so my question is: when will the question's ...
3
votes
1answer
103 views

Where is the chat API page on the api.stackexchange.com site?

I received news about the chat API changing in a couple of months from another chat user and API library developer, but I can't find any mention of it on my own now. So I went to look at the prime ...
6
votes
0answers
54 views

How do we get the API build date/number?

The API keeps breaking and often gets fixed, all without a single peep in the Change Log. Officially the API is unchanged since version 2.2 in February of 2014. But we know from the resolved bugs ...
5
votes
1answer
317 views

Authentication API - port number in redirect_uri is ignored

We're using the API explicit flow for identity brokering in our Keycloak SSO server to provide users with the option for logging in using their Stack Overflow account. Recently, we've noticed that ...
4
votes
0answers
34 views

Typo on https://api.stackexchange.com/docs/posts-by-ids

In https://api.stackexchange.com/docs/posts-by-ids: To find ids programatically look for post_id, answer_id, or question_id on post, answer, and question objects respectively. It should be: To ...
1
vote
1answer
42 views

Stack Exchange API: create a question with an embedded Image

I have been looking at the API for some time and can discern no ready answer: Is it possible to create a question using the API, which contains embedded images? I can achieve the same by replicating ...
3
votes
0answers
36 views

Unable to uniquely distinguish timeline results when paginated

I'm trying to do some activity analysis via the timeline API request /2.2/users/${userid}/timeline I'm running into issues distinguishing user_timeline results from each other occasionally. It's ...
8
votes
0answers
75 views

Pagination doesn't work for certain API routes/functions

Trying to fetch a list of linked questions from the API fails if there are more than 100 results(Or whatever is set by page_size). This API call to the first page:           /...
2
votes
2answers
115 views

Get all interlinked questions

As an example, this question: http://stackoverflow.com/q/1371012/print-utf-8-from-c-console-application has linked questions here: http://stackoverflow.com/questions/linked/1371012 however some of ...
4
votes
0answers
498 views

Respond correctly to CORS OPTIONS preflight requests to the API

When developing against the API, in particular for userscript purposes, I've been running up against an issue: the API doesn't respond correctly to CORS preflight requests. A CORS preflight request ...
0
votes
1answer
556 views

Stack Exchange API - getting answers for the questions object

I use https://api.stackexchange.com/docs. To get a sample question, I use the address https://api.stackexchange.com/2.2/questions/6827752?&site=stackoverflow. Thanks to this, he gains a question. ...
5
votes
1answer
140 views

Using oAuth in API throwing internal server error

My application has 26 users, but yesterday several (prospective) users started receiving an error page (/error?aspxerror=/oauth) saying that it is all [stack exchange's] fault and that the data is ...
17
votes
1answer
161 views

API cache behavior can be exploited to hide posts from API clients

Related: Post data isn't available in the API until several minutes after post creation -- the same cache behavior is probably the (unintentional) cause of these bugs. Steps to reproduce: ...
26
votes
1answer
168 views

Post data isn't available in the API until several minutes after post creation

For a long time, the API has had data about a post almost immediately after it was posted (I'm talking sub-5-seconds here). Recently, that behaviour has regressed, and the API doesn't have data about ...
2
votes
1answer
55 views

Getting all questions with a specific tag

The Stack Exchange API supports /questions/{id}/tags/{tags} but it returns only a selection of questions available on Stack Overflow. For a school project I need to find all questions containing the ...
-6
votes
2answers
162 views

'StackAPI' throttling exception

I am trying to use StackAPI to query your API. I am trying to fetch the top questions/answers from each of your Stack Exchange sites. Here is my code snippet. As you would note, I am making the thread ...
6
votes
0answers
54 views

The /related and /linked results can't be correlated to their parent question. The `original_question` property is missing

Suppose I have a list of questions (IDs) like 286254, 23157 and I want to get the linked or related questions for each. I should be able to call /questions/{ids}/linked or /questions/{ids}/related ...