Stack Exchange Network

Stack Exchange network consists of 174 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.

3
votes
1answer
16 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
46 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':...
3
votes
0answers
29 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?
3
votes
0answers
66 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
71 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
83 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 ...
-3
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 ...
5
votes
2answers
106 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
52 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
51 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 ...
1
vote
0answers
67 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
35 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
154 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
109 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 ...
9
votes
0answers
53 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
34 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
65 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
94 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
48 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
189 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
33 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
41 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
34 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
66 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
111 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
353 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
279 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
116 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
158 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
167 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
44 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 ...
-5
votes
2answers
134 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 ...
-1
votes
2answers
136 views

How do I automatically join all SE sites I haven't joined yet?

On SE sites which I haven't joined yet, neither inbox nor achievements are available. I'd like to have these available in all sites. I could wait around for the devs to fix it ... or I could join all ...
3
votes
1answer
38 views

API method for getting text of posts?

I am looking for an API method that gets the text from posts, using the post ID or URL (not saying it has to be one way or another) but cannot find one. Does Stack Exchange have one?
1
vote
2answers
46 views

Data on who offered bounties

Is there a way to know who offered bounties on each question on SE? We are working with the SO datadump, and there is data there on bounties in the Votes.xml file. However, there is no information on ...
-9
votes
3answers
68 views

How to get data on who viewed questions and profiles?

I am working with the Stack Overflow datadump and have a general question. I would like to obtain more detailed data on the "views" attribute, pertaining both to question views and profile views. ...
2
votes
1answer
44 views

How can I collect the number of times a tag is used per month using the API?

What is the best way to collect the number of times a given tag is used in a given month using the stack exchange API? Is it by going through all the questions asked during a the given month that ...
6
votes
1answer
129 views

Choosing best resource for crawling data from Stack Exchange sites

For the purpose of an academic research project, I would like to obtain detailed data on questions, answers, tags, users, etc. That is, I seek historical data, as detailed as possible. I have seen ...
4
votes
2answers
45 views

Don't have the required information for signing up for an app key in the Stack Exchange API

I would like to use the Stack Exchange API for the purpose of academic research. Now, standard users are limited to 300 requests per day. For increasing this limit to 10,000 per day, users need to ...
4
votes
0answers
40 views

Q field of search/advanced in Stack Exchange API now behaving strangely

As the title suggests, as of this week the Q field of the /search/advanced API endpoint is behaving strangely. Last week entering the text "Hello World" in the Q field would return many articles, ...
4
votes
0answers
81 views

Filter doesn't consistently return comment bodies

As detailed in this question, the API doesn't seem to properly return the body for comments. This is a fairly big issue for me, because it means that whenever I want to get a question and its comments,...
3
votes
1answer
72 views

Advanced search API not returning results

When you set the minimum time to 2017-09-16 there aren't any results returned: https://api.stackexchange.com/2.2/search/advanced?order=desc&min=1505520000&sort=activity&site=stackoverflow
2
votes
2answers
90 views

How can I receive “immediately” notification about new questions posted that meet certain search criteria?

I noticed that you can do any tag combination with or and and (just separate the tags for space) operators in the search box and when you hit the search button you will be redirected to an URL like ...
9
votes
0answers
419 views

API doesn't return “answer.tags” field if I also asked for “answer.share_link”

When I load an answer via the Stack Exchange API, the answer.tags field disappears if the filter also includes the answer.share_link field. Normal query, filter !9YdnSLHTQ: (run it) /2.2/answers/...
3
votes
0answers
102 views

404 error on Stack Exchange API website

The Add flag page on the API site https://api.stackexchange.com/docs/create-comment-flag doesn't work correctly and when inspected, I saw a 404 error for a resource at https://api.stackexchange.com/...
2
votes
1answer
85 views

'Run' button on StackExchange API pages broken

Around half the API methods found in the documentation are broken when attempting to test the API call via the web interface. Here's an API that does work: /me Note that under the access_token ...
2
votes
0answers
99 views

How to get the list of all posts I've upvoted via the API?

I'm looking for a way to get the list of all my upvotes on Stack Overflow, however after looking through the API list, seems there is no way to achieve that. Edited Again: Hey guys, of course I know ...