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.

Filter by
Sorted by
Tagged with
21 votes
0 answers
100 views

SE API quota_remaining property is periodically missing from the response

Over the last several days while running SmokeDetector, we've periodically seen multiple responses from the SE API with the quota_remaining missing, with the most recent group a few hours ago. The ...
user avatar
  • 17.4k
23 votes
1 answer
284 views

Many API requests to /questions with filter parameters are failing with status code 400 errors

For some questions, using a filter parameter appears to break the API, causing it to return a "400 Bad Request" status code with the following payload: {"error_id":404,"...
user avatar
  • 17.8k
7 votes
1 answer
125 views

API to programmatically close questions as duplicate with duplicate list

If you follow and/or curate a tag long enough, you'll probably notice that there's some questions that just get asked over and over. Usually these are confusing aspects of some commonly used feature ...
user avatar
  • 2,521
1 vote
0 answers
59 views

Why only 50 related tags?

I'm using the Stack Exchange API and I want to get related tags of a particular tag. Fortunately, the API provides such an endpoint (/2.3/tags/devops/related?pagesize=100&site=stackoverflow). ...
user avatar
4 votes
0 answers
83 views

Is there an API that I can consume to detect the current release version of each SE network site?

Is there an API that I can consume to detect the current release version of each SE network site? For example, during the last 5 months the design of the sites has changed, and changes have been made ...
user avatar
6 votes
0 answers
181 views

GET requests to https://api.stackexchange.com/2.2 methods return HTTP 400 "Violation of backoff parameter" without previously warning to back off

We have the following logic to make GET requests to https://api.stackexchange.com/2.2 : private async get( apiMethod: string, // can be 'users', 'tags', 'info', or 'questions' url: string, //...
user avatar
6 votes
1 answer
127 views

What kind of actions are bots allowed to do?

Based on all of the Stack Exchange API endpoints, especially the [auth required] ones, what actions are bots allowed to do? There is a lot of things you can do with the API, so here's some that are ...
user avatar
0 votes
2 answers
113 views

Automate adding questions from search to tag

Occasionally I notice a topic that has been discussed often enough to merit a tag, but there isn't one. For example, today on Raspberry Pi, a question popped into the active queue about using the ...
user avatar
  • 1,591
10 votes
1 answer
227 views

Accessing Stack Exchange API behind a firewall - are there IP address ranges to whitelist?

Scenario I am calling Stack Exchange APIs to collect Stack Overflow Teams data for my organization. In order to call these APIs from the server where I would like to run it, I must first request ...
user avatar
  • 159
10 votes
1 answer
84 views

What scope to supply to get a refresh token from Stack Exchange?

In the process of implementing a OAuth app for Stack Exchange, I noticed that none of the approaches that conventionally work - supplying a offline_access scope, for example - result in the OAuth ...
user avatar
  • 103
9 votes
1 answer
193 views

Is/could the "Android/iOS" application endpoint for notifications be opened up to other apps?

The Android application is quite dead for me (but not to me) - I've been messing with an alternate app, but the lack of notifications is still a pain. The 'long term' alternative would be to get web ...
user avatar
  • 130k
2 votes
1 answer
74 views

How can I save the result of a Stack Exchange API call into a text file using curl?

As I run the following, curl https://api.stackexchange.com/docs/questions-on-users#order=desc&sort=activity&ids=912523&filter=default&site=math&run=true > result.txt I got the ...
user avatar
0 votes
1 answer
97 views

Is there an API for user badges?

Is there was a way to pull down 'badges' for users of various sites in the network. I noticed that there is an API call for all badges in the system, but can't see one for users.
user avatar
  • 135
9 votes
0 answers
115 views

Instant self-answers are ordered inconsistently

When the "Answer your own question" checkbox is used to provide an instant self-answer, the self-answer has the same creation timestamp as the question, and its ID number is 1 more than the ...
user avatar
  • 3,991
34 votes
0 answers
370 views

Could we revisit/reconsider the lack of chat API?

It's a feature request almost as old as the network itself - here's a request for a streaming API that felt like it got off on the wrong foot, and a frustratingly cryptic answer from Jeff when asked ...
user avatar
  • 130k
10 votes
0 answers
141 views

Associated users endpoint gives empty response for meta users

The /users/{ids}/associated endpoint of the Stack Exchange API has the option to set ?types=meta_site to get the child meta users of a network account. But when I try it now, I get an empty response ...
user avatar
  • 3,991
1 vote
0 answers
68 views

Too many requests from this IP address [duplicate]

I am using the StackAPI library for Python to access Stack Overflow questions. I need to collect all question IDs attached with a particular tag (for example, regex). I used the search bar on Stack ...
user avatar
  • 119
14 votes
1 answer
175 views

revision_number is returned in every revision item, even if it's not an edit

As of recently, the Stack Exchange API v2.2 (and v2.3) returns revision_number in every revision item, even if it's not an actual edit, effectively invalidating the "may be absent" for ...
user avatar
  • 5,546
11 votes
0 answers
113 views

Stack Exchange API inconsistently causes CORS errors for client applications after a certain number of properly throttled requests (again?)

After a certain number of sequential requests made in short bursts (normally around 180 requests but I managed to get it down to 50 if the first batch of more than 180 requests succeeds) respecting ...
user avatar
6 votes
1 answer
115 views

Stack Exchange API returns an empty array for tags on methods that return a list of answers

I was trying this filter to get the answers of a Stack Overflow user. But the tags array "tags": [], is always empty when questions have at least one mandatory tag (for example, see this ...
user avatar
9 votes
0 answers
73 views

Stack Exchange API quota is intermittently unstable

The quota_remaining returned by the Stack Exchange API is intermittently unstable and either increases or decreases significantly for no apparent reason. For example, my quota_remaining increased by ...
user avatar
25 votes
2 answers
377 views

The API is unexpectedly retracting flags

I use the Charcoal FIRE userscript to red-flag posts. Today I found this SuperUser question (possibly 10k by now since it's spam) and I spam flagged both the question and answer. The question I ...
user avatar
  • 19.9k
4 votes
0 answers
57 views

Stack Apps sidebar needs to be updated to reflect the API version changes

On StackApps, in the sidebar, it says: Shouldn't that say "API 2.3"?
user avatar
  • 25.8k
8 votes
0 answers
153 views

Spelling mistakes in the API documentation change log page

There are some spelling mistakes in the API documentation Change Log page, under the Version 2.0 section. Section name Spelling mistake Supposed to be General Changes reponse response Method ...
user avatar
  • 33.6k
42 votes
9 answers
6k views

API 2.3 Release

Today, we are releasing version 2.3 of the Stack Exchange API. It includes new functionality around Collectives and Articles as well as the ability to retract flags. Check out the Change Log.
user avatar
15 votes
0 answers
169 views

The SE API fails with a CORS error when hitting the rate-limit

I'm experiencing the same/similar problem as described in API has been failing with CORS errors since 11/13 When I run the below stack-snippet that basically makes various calls to the SE API, I'm ...
user avatar
  • 80.3k
17 votes
0 answers
130 views

What is the status of development and future of the SE API?

While as a non developer, and whose code tends to consist of hastily hacked together bits of bash its not of direct use for me, I'd love to have the option of a android app again. While the official ...
user avatar
  • 130k
6 votes
1 answer
80 views

Less results when hitting the API compared to using the search bar for the same query

I am new to Meta so let me know if I need to add clearer information or correct it. I am currently trying to determine what the differences in functionality between making API calls and using the ...
user avatar
5 votes
1 answer
65 views

Possibility of using booleans in the query parameter of /search/excerpts

We can use the symbols ; (respectively &) on the tagged parameter to represent an AND (respectively an OR) boolean operator on tags. For example, the API call /2.2/search/excerpts?order=desc&...
user avatar
  • 195
4 votes
1 answer
36 views

Possible error on /search/excerpts documentation?

The StackExchange API documentation states the following for the tagged parameter of /search/excerpts: tagged - a semicolon delimited list of tags, of which at least one will be present on all ...
user avatar
  • 195
1 vote
0 answers
322 views

Stack Exchange API, access token request

I've done the OAuth process with Stack Exchange and I have my access token. I'm trying to perform this request https://api.stackexchange.com/docs/me-posts#order=desc&sort=activity&filter=...
user avatar
-5 votes
1 answer
161 views

How can I fetch all the new users that are created on all Stack Exchange sites via Stack Exchange API?

Is it possible to fetch all the new user accounts that are created (from some date) on all Stack Exchange sites via the Stack Exchange API? And how can it be done?
user avatar
6 votes
0 answers
136 views

Is it abusive to use a sockpuppet account for API calls? [duplicate]

Other questions ask about acceptable use of sockpuppet accounts, but I'm interested in if using multiple sockpuppet accounts for API calls. In my mind the answer would be that they're not abusive ...
user avatar
  • 169
-5 votes
1 answer
70 views

Sites API should include a site branding color, or if it shouldn't, why not?

I'm making a Stack Exchange app, and one thing I found pretty cool in the sites API is that it sends us the colors for links and tags, so my apps color is kind of consistent with the sites. But the ...
user avatar
13 votes
0 answers
109 views

API method /posts/{ids}/revisions returns <b></b> for hot questions and hot meta posts

The API seems to return <b></b> instead of <b>Became Hot Network Question</b> as the comment field for the revision item in which a post became a HNQ. Here is an example: { ...
user avatar
  • 5,546
3 votes
1 answer
90 views

Add an additional parameter as a filter to an API call

I would like to pass a filter in the API and use this option to receive the favorite count: However I receive this error: Error in !metadata$has_more : invalid argument type
user avatar
  • 31
12 votes
1 answer
336 views

Creating an unofficial Stack Exchange Android app

I am trying to create an unofficial Stack Exchange Android app and I have a few questions regarding that. Is it permitted to create Stack Exchange's unofficial Android app using Stack Exchange APIs? ...
user avatar
3 votes
1 answer
185 views

Are there any ways to petition to increase your Stack Exchange API limit?

I know there is a 10,000 query limit for the Stack Exchange API, but I was curious if there was any way to ask for a one-time increase of API requests as I just need to do a one-time pull to get a bit ...
user avatar
4 votes
0 answers
78 views

Make whether a deleted question was deleted voluntarily or for moderation reasons available in the API and SEDE

When a <10k user browses to a deleted question, they are told whether the question was deleted voluntarily by its author, or by others moderating the site (i.e. "for reasons of moderation"...
user avatar
0 votes
0 answers
51 views

Accessing https://data.stackexchange.com/query APIs programmatically [duplicate]

All, We want to get the list of all deleted question Id's from StackOverflow (with additional tags and/or date filters, if possible). However we don't see an useful API for this here: https://api....
user avatar
5 votes
1 answer
97 views

Did the preview API break? “The app submitted an invalid request”

I keep on seeing this error when trying to preview edits from the (admittedly unsupported) iOS app: I am concerned that this is a problem with the API response that’s behind this, which would be ...
user avatar
  • 34.7k
4 votes
1 answer
64 views

Why is a stackoverflow.com/a/{answer-id} generated by Google not working when passed to the Stack Exchange API?

I am writing a crawler that takes a URL from a Google search, for example https://www.google.com/search?q=site:www.stackoverflow.com+for+loop+python and use it to fetch data from Stack Overflow using ...
user avatar
0 votes
0 answers
56 views

Stack Exchange API Optimal, Acceptable Request Frequency [duplicate]

I used the Stack Exchange API and received this error: [1] "{\"error_id\":502,\"error_message\":\"too many requests from this app/user pair, more requests available in ...
user avatar
8 votes
2 answers
104 views

What's the URL format that shows all comments expanded for all SE sites?

I want to archive some questions. But some comments are hidden because of the mechanics of how SE's UX work i.e. I have to click on show X more comments below each post. So, like superuser.com/a/...
user avatar
4 votes
2 answers
55 views

Is it possible to see the daily reputation history of a group of users?

For research purpose, I would like to see the reputation history of a number of users. The reputation history API does not include events such as penalty due to downvoting other users' answers. So the ...
user avatar
3 votes
1 answer
58 views

What does "full reputation history" provide in addition to "reputation history"?

There is an API for "full reputation history", in addition to one for just "reputation history". What does the "full" version give me that's missing in the regular one? Thanks!
user avatar
3 votes
1 answer
87 views

Why is the close reason returned by the API different?

Up to few moments ago my script was working correctly fetching question information from the API. Right now my script fails because the duplicate close reason is different. Previously it was: ...
user avatar
  • 7,548
6 votes
0 answers
33 views

Can’t access entire API docs menu on mobile

This is what I see at 100% (pinched out) after expanding the menu on one of the API documentation pages: In addition to it not being fully responsive (due to the “Try it” box lower on the page), I ...
user avatar
  • 34.7k
3 votes
1 answer
174 views

How to get only accepted answer in return from the Stack Exchange API?

I found out that I could get only accepted questions from Stack Overflow using this API call. But now I want only the accepted answer to be part of the returned object; I don't need other answers. I ...
user avatar
  • 141
12 votes
1 answer
136 views

Approve button on OAuth authorization dialog is invisible

There's supposed to be a button there... and while I think of it, wasn't the Reject button supposed to be red? More specifically, there is an Approve button there, just to the left of the Reject ...
user avatar
  • 35.9k

1
2 3 4 5
9