36
votes
Stack Overflow is no longer providing Creative Commons Data Dumps
So on my tirade against AI on Meta Stack Exchange, I did a little extra digging around about what was and wasn't kosher with respect to LLM training.
In short, IANAL but I don't think that the CEO's ...
25
votes
Accepted
Is there any way where I could embed my stack overflow profile on my website?
Yes, You can embed your stackoverflow profile onto your website using your user flair.
see here https://stackoverflow.com/users/flair
Simply copy and paste the HTML snippet(you will get one in the ...
24
votes
Accepted
What is "quota_max" and "quota_remaining" in api.stackexchange.com/2.2/users API?
quota_max is the maximum number of API calls allowed per day per IP-address.
quota_remaining is the number of API calls you have remaining for this day from this IP-address.
Once you've exhausted that ...
21
votes
Stack Overflow is no longer providing Creative Commons Data Dumps
The same concern was brought up on the network-wide Meta site: June 2023 Data Dump is missing. Although I have answered there, I have also copied my answer here for maximum visibility:
Much has been ...
18
votes
SE API is randomly responding with "site is required" errors and now CORS errors
Thanks for reporting. We're working on porting our websites to ASP.NET Core, and those errors you've seen were a result of this.
We caught the first error ourselves on a canary build and fixed it ...
18
votes
Accepted
Why does the API convert some characters to HTML entities?
See the "Safety" section in the API's Filters doc:
Filters also carry a notion of safety, which is defined as follows. Any string returned as a result of an API call with a safe filter will be ...
16
votes
Accepted
How can I use the API to access private team information?
It looks like the scope query parameter you passed when obtaining your access token didn't have the access_team|stackoverflow.com/c/your-team-url, as detailed in the Teams-specific docs.
I think you'...
11
votes
Accepted
Mass-edit the typo "depencies"?
Is it easy to make a mass edit...
It doesn't matter how easy or hard it is, we still shouldn't do it. Editing shouldn't be automated like this. A script that mass-edits one typo on thousands of posts ...
11
votes
Accepted
Some API requests to /users are failing with status code 404 errors
The fix has been deployed to production and the issue is resolved.
Major kudos to @andrew-t for figuring out this was specific to RMs in the new Mobile Dev collective! And thanks to @mago for ...
10
votes
Accepted
Is it possible to maintain a Stack Overflow for Teams user list (deactivate) via a REST API?
The API states that the data access is read-only.
Starting with the release of Stack Overflow For Teams, the Stack Exchange API exposes read-only access to data stored in private Teams.
So no; you ...
10
votes
Some API requests to /users are failing with status code 404 errors
This only occurs to some members of the new "Mobile Development" Collective.
All users who are a Recognized member of that collective will return the same error, if the collectives field is ...
9
votes
Accepted
Getting: “key is not valid for passed access_token, token not found.” when using Teams API
Teams API access still works fine for me. Something not shown in the question is the problem.
Don't use total for the filter. That filter omits crucial wrapper and error properties and may be ...
9
votes
Accepted
How to find which answers were marked as spam?
The API won't help here; it doesn't provide details about deleted posts.
SEDE does in some way; it has a PostsWithDeleted table containing some information about deleted posts. You can join it with ...
9
votes
Auto Reply to a Post on Stack Overflow
This only makes sense if you want to treat Stack Overflow as some kind of support desk or service center for people getting help with your software.
Stack Overflow is firmly not that kind of place.
8
votes
Accepted
Obtain user reputation without Flair
Thanks to DavidG's comment, I found that user information including reputation can be obtained by sending a request to the Stack Exchange API.
This endpoint:
https://api.stackexchange.com/2.2/users/{...
8
votes
Accepted
Does the Stack Overflow API support the ability to get questions that are Active or Hot?
For "Active" questions, almost every route supports sorting by last_activity_date (Descending).
For example: /2.2/posts?order=desc&sort=activity&site=stackoverflow, which shows the most ...
8
votes
Accepted
Are there existing tools to help track a tag and gather statistics?
Some of this info can already be found in existing SEDE queries:
Number of Questions per Time Period:
Day: https://data.stackexchange.com/stackoverflow/queries?q=questions+asked+per+day
Month: ...
8
votes
Is it possible to programmatically post on Stack Overflow?
Yes, with the Stack Exchange API. The documentation home page lists all available methods.
8
votes
Accepted
Querying Answers
The easiest way is just to use the search page and include the term is:answer (from the help page on searching), e.g. this query returns only answers containing NullPointerException.
It is possible ...
7
votes
Accepted
favicon-<name> on Stack Exchange sites... icons... need relation between <name> and something, like site number or site name
No need to mess around with CSS files, separate icons are already available in the API: https://api.stackexchange.com/docs/sites
Example for Stack Overflow:
"high_resolution_icon_url": "https://cdn....
7
votes
Additional User Data from Stack Exchange API
This information is not available in the public API.
Some additional comments...
The user email is private; it is not available to the general public. This is in keeping with standard (EU at least) ...
7
votes
Accepted
Total and count do not match
It's certainly easier to see what's going on if you try a tag with fewer questions (or indeed a site that has fewer questions so that the tags automatically have fewer questions).
In Vegetarianism and ...
6
votes
Is it possible to get the original HTML content of a question?
No, you can't get the original HTML from the question but you can get the Markdown that was posted for each revision. See When does the question/answer text get converted from markdown to html
This ...
5
votes
Is there some web API to query my Stack Overflow profile and score?
That is not available from the API. At best you get your own reputation:
/2.2/users/841108?order=desc&sort=reputation&site=stackoverflow&filter=!LnNkvsiMoAuboSNHiWK3fq
{
"...
5
votes
Count number of questions, answers and comments on a tag
The following SEDE Query returns, for posts in a specific tag, the counts for questions, answers, comments, views and bookmarked. You can select the tag you're interested in as a parameter
select sum( ...
5
votes
Accepted
How do we seed questions in Stack Overflow for Teams?
Both Stack Overflow for Teams Business and Enterprise offer a write API for both asking and answering questions which can be used for seeding content.
We also offer data migration services for a fee ...
5
votes
Accepted
Unable to obtain code for teams: API access is not supported on this channel
As Andrew T. wrote in a comment, API access is only available on the Basic and Business tiers.
I am using the Free tier (for now), so API access is not supported. The error message is correct.
This is ...
5
votes
Can I get the number of views for a question over time with the API?
The site only records the total number of views, it doesn't record when they happened. There's just a counter that increments each time a question is viewed.
5
votes
Track in real time all new published questions regardless of which tag is used (I want to help edit new questions with formatting errors)
I wanted to open a page open to follow in real time all the questions posted like this:
Have you ever used an SE site other than SO? Notice that the front page of those sites will give a prompt that ...
4
votes
Accepted
Can I find a user's user_id with only their username for a Stack Exchange profile?
As stated in the comments, usernames are not unique and can be changed for a given user ID.
Nevertheless, you can get a list of current name matches from the API using the /users route.
For example:
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
api × 68support × 41
discussion × 12
feature-request × 10
stack-overflow-for-teams × 7
bug × 6
status-completed × 6
data-explorer × 6
questions × 3
reputation × 3
profile-page × 3
stack-exchange × 3
tags × 2
answers × 2
status-bydesign × 2
search × 2
collectives × 2
data-dump × 2
stack-overflow-enterprise × 2
legacy-stack-overflow-jobs × 2
edits × 1
design × 1
documentation × 1
comments × 1
badges × 1