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.
474 questions
3
votes
0
answers
63
views
API discrepancy between question flagging and answer flagging
If you go to question flagging and answer flagging, you can see the question flagging page has two more options: target_site and question_id. Omitting these works the same as including them.
Both are ...
0
votes
1
answer
62
views
Minimal API filter doesn't work as expected
I tried creating a filter with the Stack Exchange API to give me only the markdown of a post, without HTML escaping. It was successfully registered:
https://api.stackexchange.com/2.3/filters/DDgLLPBaN
...
7
votes
1
answer
180
views
The API seems to never return the content license for posts/questions when the filter includes comments (or answers)
I know the API is very buggy and whether a field is returned in the response often depends on what other fields are included/excluded in the filter, but I've been unable to successfully come up with a ...
35
votes
2
answers
2k
views
Stack Exchange API: Stack Apps updates and upcoming version 3 beta
Updates (October 6th, 2025): We've closed applications to join the beta
Due to a high number of applicants and participants, we've closed our submissions form. Thanks for your interest and feedback!
...
6
votes
1
answer
287
views
API Try it 'unselect all' doesn't unselect anything
When editing filters under the Try It section of the API docs, the "unselect all" button only works for default checked items, but not new selections. It just changes the number of selected ...
13
votes
2
answers
240
views
The Search API does not show questions asked since April 1st - Related to the migration?
I have been seeing issues with the Stack Overflow API where questions created post April 1st 9AM EST do not show up when queried via the Search API.
Here is a sample query we used to confirm - https://...
30
votes
0
answers
279
views
API filters have been incompatibly changed
As of 2025-02-04 16:41 UTC+01:00, all API filters have been changed in a backwards-incompatible way. This means that all API filters used by current applications have suddenly become invalid. This ...
9
votes
0
answers
152
views
The badges API endpoint return badges from Staging Ground, that exist only on Stack Overflow, and yield 404 error pages
After the issue with the 40x codes that were returned because of the badges, there is still an issue with the API and these badges in particular.
Expected result
The /badges API should return the list ...
4
votes
1
answer
132
views
Stackexchange API to fetch saved posts across all stackexchange network
I want to fetch my saved posts from across stackexchange network that I have joined, is it possible? I have read the documentation on the api.stackexchange.com and it seems the api is intended for ...
5
votes
1
answer
224
views
Allow bounties to be posted with the API
Currently, as far as I can tell, it is not possible to post a bounty on an answer through the SE API; indeed, that seems to be just about the only thing the API doesn't let apps do to questions. Is it ...
12
votes
1
answer
218
views
What do I need to know as a user about authorising applications that interact with Stack Exchange?
I know that I can grant permission of an application to do something with my account on the network. What can and cannot an application do if I allow it? For example, if I see a description like:
...
3
votes
1
answer
107
views
Using the filters “fromdate” and “todate” on the /badges API endpoint has no effect
It looks like the fromdate and todate filters have no effect on the /badges endpoint:
Example without these filters:
https://api.stackexchange.com/docs/badges#page=1&pagesize=30&order=desc&...
6
votes
1
answer
245
views
I comply with backoff orders, but still get "Violation of backoff parameter"
I sometimes get throttle violation errors from the API
{'error_id': 502, 'error_message': 'Violation of backoff parameter', 'error_name': 'throttle_violation'}
despite complying with back off orders ...
14
votes
1
answer
811
views
API endpoints return a 40x code with error "no method found with this name" when reading the name of Staging Ground's badges
Goal
Use the SE API in order to get the lists of the badges for every website in the network. The /badges endpoint provide this data.
Expected result
According to the paging documentation, we can ...
28
votes
0
answers
386
views
The API is down
As of 2024-08-14 21:17:15 UTC, the API appears to be fully dead, and blocked by CloudFlare. This is limited to specifically the API; no other services appear to be down.
I've verified this on my IP, a ...
9
votes
1
answer
645
views
Cloudflare blocking requests to StackExchange API when User-Agent header is not specified
Since around 8/14/2024, our services requests to https://api.stackexchange.com/2.2/search are getting blocked by Cloudflare.
Despite not having any changes in the traffic pattern or the actual code.
...
-1
votes
1
answer
242
views
API returns reputation history events for deleted posts, yet no post_deleted events are included. Why? Bug? What do I do?
This SE API request for user 30382 of Mathematics site returns the following items:
...
{"reputation_history_type":"post_downvoted","reputation_change":-2,"post_id&...
15
votes
1
answer
635
views
Cloudflare challenge on API and WebSocket traffic used for AI Analysis
Currently, there's a reproducible issue with Cloudflare blocking (via user/browser challenge as in this question) all API and WebSocket traffic from several sources. This is impacting the AI analysis ...
-5
votes
1
answer
135
views
Why is the API method for statistics not accessible?
Why is https://api.unix.stackexchange.com/1.1/stats not accessible?
51
votes
1
answer
2k
views
Cloudflare is asking for human verification on SE API requests, which blocked flagging by SmokeDetector/metasmoke
Today, SmokeDetector/metasmoke was unable to raise either automatic or manual flags due to Cloudflare asking for human verification on the SE API for a significant period of time.
The response from ...
60
votes
0
answers
842
views
What, exactly, is "OverflowAPI"?
The description on the OverflowAPI website is rather vague marketing speak:
OverflowAPI is a subscription-based API service that provides continuous access to Stack Overflow’s public dataset to train ...
33
votes
1
answer
779
views
We are moving the API behind our CDN
Later today or tomorrow, we will be moving the API behind our Content Delivery Network (CDN). In an effort to better align all our applications, we are moving this and, in the future, other public ...
5
votes
1
answer
188
views
How can I get bounty information from the API?
I want to get information about all bounties that were active within last 3-4 days. This should include started, awarded and expired bounties. How do I do this?
Here are my thoughts.
If a bounty is ...
24
votes
1
answer
2k
views
Cloudflare protection is triggering on Stack Overflow authentication API routes
The Stack Overflow OAuth endpoints (https://stackoverflow.com/oauth/access_token/ and https://stackoverflow.com/oauth/access_token/json) have started responding to requests from the server I run my ...
2
votes
4
answers
251
views
Stack Exchange site names for API URL query parameter
When calling a Stack Exchange API we need to specify which site we are trying to fetch the data from in a API URL query parameter (site=webapps.meta) like below:
https://api.stackexchange.com/docs/...
1
vote
1
answer
113
views
Stack Exchange API doesn't work for meta sites
The Stack Exchange API doesn't seem to be working for certain sites like meta.stackoverflow.com.
For example, the below API to get the answers to a question by ID doesn't work for the following ...
5
votes
0
answers
165
views
Questions frequently routed to the "robot detector" which fails on Safari
My preferred browser is Safari. Sometimes, I post a question and get the CAPTCHA because "we're not sure you're human." Unfortunately, on this website, as on more than ten percent of sites ...
-7
votes
1
answer
164
views
Finding my upvotes on Data Explorer
This T-SQL finds all the questions I have answered on SO.
https://data.stackexchange.com/stackoverflow/query/1779459/questions-i-have-answered
I want to determine if I upvoted the question or not (as ...
23
votes
0
answers
306
views
SE API: Recent OAuth 2.0 implicit flow breaking change
Changed behavior: Unexpected values returned with the access_token when using the implicit OAuth 2.0 flow
We are, now, seeing additional scope data included in the hash for the URL used as the ...
3
votes
1
answer
121
views
How can I get information of a tag with the Stack Exchange API?
The API documentation of usage of /tags/{tags}/info GET does not give us this information:
How can I get this text description?
81
votes
0
answers
5k
views
How can we improve the Stack Exchange API?
The Stack Exchange API allows users to programmatically query and connect to the Stack Exchange Network of sites.
The API is currently in version 2.3. We’re collecting feedback from users of the API, ...
65
votes
11
answers
4k
views
The company's commitment to the data dumps, the API, and SEDE
Many words have been written around the company's commitment to the ongoing existence of the data dumps, the API, and the Stack Exchange Data Explorer (SEDE). Much of that text can be confusing or ...
3
votes
0
answers
179
views
No ID for CS50 or Programming Language Design and Implementation on the Stack Exchange Website
I'm trying to fetch card-data as it is fetched on https://stackexchange.com/sites (request example below as a Node.js fetch), but can't find cards (or, hence, card IDs) for CS50 or Programming ...
97
votes
0
answers
708
views
Will SE shut down the free API for good? [duplicate]
SE has intentionally disabled the data dump. And the CEO has stated to the press that he plans to charge AI companies for access to the data.
Given these developments I think it is almost inevitable ...
8
votes
0
answers
130
views
Add support to the API to do all non-moderator actions that a user can do
It does not appear that the API supports viewing of deleted posts, which is what a 10k user or moderator can do on a site. Although I don't expect diamond moderator actions to be exposed, I would ...
3
votes
1
answer
198
views
How do I set "site" to anything other than Stack Overflow, like the Blender or Ethereum Stack Exchange sites, for example?
I was able to run this request https://api.stackexchange.com/2.3/users/MY USER ID/timeline?sort=creation&page=1&pagesize=100&site=stackoverflow just fine.
For some reason, when I change ...
3
votes
1
answer
259
views
StackAPI can't parse the Stack Exchange JSON anymore
For the last 4 days, my Stack Exchange view count graphing script has been breaking with StackAPI claiming that:
requests.exceptions.InvalidURL: Failed to parse: https://api.stackexchange.com/2.2/...
23
votes
1
answer
330
views
SE API multiple-escapes the returned data (at least display names, userlinks, and post content)
The Stack Exchange API will, unless you explicitly disable it, apply HTML escapes to certain strings. However, it will apply this transformation multiple times prior responding with the data.
This is ...
5
votes
1
answer
210
views
Is there a simple API for getting the number of unread messages?
Stack Exchange obviously has a complex API to meet the possible needs of its users, and it seems to require registering applications in order to use it.
All I'm looking for though is a simple way of ...
5
votes
0
answers
68
views
Unable to fetch favorite/bookmarked questions [duplicate]
I'm not able to fetch the favorite questions using the stack exchange api (https://api.stackexchange.com/docs/me-favorites).
This looks like a recent issue
because it was working fine a couple of ...
31
votes
1
answer
302
views
SmokeDetector is seeing SE API errors 10,704 times more often than normal (2022-12-09)
For a bit over the last hour, SmokeDetector (SD) has, once again, been seeing a flood of SE API errors. This is well outside what's "normal" to see for SmokeDetector. The only recent change (...
10
votes
0
answers
98
views
Possible to have a means to access my saves externally? [duplicate]
Recent changes have converted the Bookmarks section to Saves and made what we have bookmarked private. This is definitely a positive change! However, doing so makes it even more difficult to ...
5
votes
1
answer
284
views
Is there a way to programmatically get the days 'visited' information? [closed]
On our Stack Overflow for Teams: Enterprise instance, I'd like to use the API to build a report on how often users visit the site. I can see this information in the admin dashboard (e.g. below, "...
4
votes
1
answer
127
views
Is there API support for salesforce.stackexchange.com?
I'm able to use the API to get selected questions from stackoverflow.com by running
https://api.stackexchange.com/2.3/questions?order=desc&sort=activity&tagged=salesforce&site=...
41
votes
1
answer
1k
views
A number of things seem to have broken simultaneously
Things that appear to have suddenly stopped working:
Posts not appearing on the front page of Meta Stack Overflow or the "Active" tab for the post's tags + RSS feeds not updating.
(As of ...
27
votes
0
answers
230
views
SE API errors have dramatically increased to 2,768 times the "normal" average error rate [duplicate]
In the last 4 hours, SmokeDetector has reported 60+ errors when making normal requests to the SE API. These are the same requests which SmokeDetector has been making many thousands of every day since ...
19
votes
1
answer
374
views
API request for "favorites" now returning an empty list – is there a way to get something equivalent for saves?
I have a script which I use, based on the StackExchange API, to regularly download a local backup of various questions relevant to me (the ones I've asked, answered, or favorited) across various SE ...
7
votes
1
answer
121
views
Chat oneboxes are being inconsistent for certain users
For the past few weeks, I have been running a bot in the Sandbox while testing it to replace another, currently broken, bot that posted new posts and challenge sandbox posts in The Nineteenth Byte. ...
2
votes
2
answers
247
views
How to run a Stack Exchange data query with the Stack Exchange API
I'm trying to find out if there is a way to run a query/complex search on the Stack Exchange API.
I need to find all users that have a reputation greater than 250 and are from a certain location. I ...
-6
votes
1
answer
113
views
Question based on Authentication
I am creating a connector which will integrate with the Stack Overflow API. I need to generate an access token of Stack Overflow account so that I can fetch its API. But when I am generating an access ...