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.
466 questions
3
votes
0
answers
116
views
Question/Answer previews do not load on network profile activity history, due to API IP throttling
Attempting to preview a question or answer from a network profile page's activity tab will indefinitely show a loading animation and will never display the preview. I sat on this page for ~10 minutes ...
5
votes
1
answer
188
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
176
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:
...
67
votes
8
answers
11k
views
Implement OData API for Stack Overflow
The request is simple
Implement the OData API for Stack Overflow sites
Benefits:
It's a standard API.
OData allows the Stack Overflow database to be queried and navigated for questions, users, ...
14
votes
1
answer
694
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 ...
47
votes
0
answers
450
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 ...
40
votes
37
answers
3k
views
The API Sandbox
This is the same concept as the first sandbox.
Why do we need more than one? This is in order to test the API, some methods support vectored ids (for example /questions/id1;id2/comments) and for that ...
3
votes
1
answer
89
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
187
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 ...
9
votes
1
answer
447
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.
...
28
votes
0
answers
295
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 ...
3
votes
1
answer
121
views
Can we please have some sort of API to poll for new data dump releases? [duplicate]
I'm writing an application that uses the data dump. However, in order to be effective, this application needs to be kept up to date with the latest data dump. This currently needs to be done manually.
...
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, ...
-1
votes
1
answer
218
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
470
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
120
views
Why is the API method for statistics not accessible?
Why is https://api.unix.stackexchange.com/1.1/stats not accessible?
29
votes
2
answers
878
views
Please provide a way to download SEDE data via an API
I recently suggested on the Stack Apps site that a formal API be added to SEDE, and it was suggested I reference the feature request here, for visibility.
My use case is a query that the API does not ...
2
votes
2
answers
208
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 ...
50
votes
1
answer
1k
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 ...
23
votes
1
answer
729
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 ...
33
votes
1
answer
721
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
161
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 ...
7
votes
1
answer
236
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 ...
5
votes
0
answers
148
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 ...
2
votes
4
answers
145
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
92
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 ...
-8
votes
1
answer
132
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 ...
97
votes
0
answers
700
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 ...
64
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 ...
23
votes
0
answers
300
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
106
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?
3
votes
0
answers
173
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 ...
3
votes
1
answer
177
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 ...
8
votes
0
answers
119
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
240
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/...
8
votes
1
answer
292
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 ...
23
votes
1
answer
320
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
271
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, "...
14
votes
0
answers
481
views
The API is returning incorrect values for `has_more`
Note: I initially posted this on SO Meta some time ago but got no answer, so as suggested over there I'm cross-posting it here, hoping it catches a dev's attention.
I get a random bug when retrieving ...
5
votes
0
answers
66
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 ...
10
votes
1
answer
88
views
Wrong title displayed in api.stackexchange.com/docs pages
The title displayed in all api.stackexchange.com/docs, per-site methods, pages contains an HTML tag for the "method" (aka GET), and this tag is displayed in the title of the document.
Example for ...
5
votes
1
answer
106
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 ...
22
votes
1
answer
331
views
Accessing the Hot Network Questions via the API
Currently, there is no public API to access the Hot Network Questions. Can this ability be added to the official API?
Ideally, this method call should return an array of questions, though each ...
15
votes
0
answers
147
views
API method /posts/{ids}/revisions returns "<strong></strong> " for hot questions and hot meta posts
The API seems to return <strong></strong> 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 ...
5
votes
2
answers
191
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 ...
31
votes
1
answer
290
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 (...
12
votes
0
answers
372
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 ...
10
votes
0
answers
96
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 ...
4
votes
1
answer
118
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
931
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 ...