Questions tagged [api]

The Stack Exchange application programming interfaces (the “API Services”) are a set of programming interfaces which can query and connect to Stack Overflow and other sites in the Stack Exchange Network.

Filter by
Sorted by
Tagged with
3 votes
1 answer
220 views

Usage of /tags/{tag}/top-answerers/{period}

API docs says, Returns the top 30 answerers active in a single tag, of either all-time or the last 30 days. and I can only get top 20 Why? Is there a way to get top 50 tag answerers?
2 votes
1 answer
252 views

How do I get the entire body text of my questions, answers, and comments from API requests?

I tried https://api.stackexchange.com/2.3/users/MY USER ID/timeline?sort=creation&page=1&pagesize=100&site=stackoverflow, then https://api.stackexchange.com/2.3/users/MY USER ID/timeline?...
10 votes
1 answer
244 views

Support programmatic detection and flagging of spam and rude/abusive content in Collectives Articles and Discussions (WebSocket and SE API endpoints)

Currently, there's no method (without scraping) to automatically collect Articles & Discussions. At one point there was a way to get Articles, but it's since been removed from public functionality ...
1 vote
0 answers
103 views

Bad request on Stack Exchange API with GET questions/{qId}/answers/{aId}/comments [closed]

I made a few successful requests to the Stack Exchange API for Stack Overflow Enterprise. I get success with data on getting questions/{qId}/answers with its content, but I cannot get comments for ...
4 votes
1 answer
172 views

Total and count do not match

A user asked about the Stack Overflow API. After some digging, I found a few ways to answer how many questions are tagged airflow. Tags: https://api.stackexchange.com/2.3/tags/airflow/info?site=...
8 votes
2 answers
224 views

Some API requests to /users are failing with status code 404 errors

I was wondering whether there are recent any changes to the /users endpoint of Stack Exchange API? I was sending queries that worked previously (also worked yesterday), but I got error code id of 404 ...
95 votes
2 answers
4k views

Stack Overflow is no longer providing Creative Commons Data Dumps

The company has refused to honestly explain their plans to the community, but the data dump was late, and a former employee graciously did the community the favour of confirming that the company has ...
-2 votes
3 answers
133 views

How do I see which tags are associated with each other?

How to get I want to build a tags tree/graph that can make relationships like Pandas being within Python, and Data Science similar to Machine Learning. Aside from related tags, is there a way to do ...
-12 votes
3 answers
147 views

Auto Reply to a Post on Stack Overflow

Assume I have created a product/library and I want to provide help whenever there is a related question about my product on Stack Overflow. Let's also assume that I have created a super smart service ...
22 votes
4 answers
3k views

Count number of questions, answers and comments on a tag

Is it possible (and allowed) to get the number of all questions, answers, and comments for a specific Tag and publish them on a website?
2 votes
1 answer
294 views

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'm trying to reproduce something like realtime found on Stack Exchange but only with the new Stack Overflow questions. I searched the existing questions, but I didn't find one that specifically ...
10 votes
1 answer
760 views

Why does the API convert some characters to HTML entities?

I tried to get some information about posts through the official Stack Overflow API, but I do not want to use it in an HTML context. I would like to receive the raw data in the response. Why am I ...
4 votes
1 answer
123 views

Can I get the number of views for a question over time with the API?

I have this link that gives me Python questions for a particular week: https://api.stackexchange.com/2.3/questions?fromdate=1519862400&todate=1522368000&order=desc&sort=activity&site=...
15 votes
1 answer
2k views

What is "quota_max" and "quota_remaining" in api.stackexchange.com/2.2/users API?

I am trying to fetch user info using following API. https://api.stackexchange.com/2.2/users/{id}?order=desc&sort=reputation&site=stackoverflow It returns data like : I want to know what is "...
5 votes
3 answers
366 views

How can I find out whether a bounty was offered on a question in the past?

I'm doing some data analysis on Stack Overflow questions, and I would like to figure out if a bounty was offered on a question or not. Is there a way to look at a question and figure this out? Is ...
4 votes
1 answer
111 views

Unable to obtain code for teams: API access is not supported on this channel [closed]

I am trying to query information about my private team, but I have issues obtaining a code. I did: Registered an app: Name = stackoverflow.com/c/{team} OAuth domain = stackoverflow.com Application web ...
7 votes
1 answer
165 views

What does the last_modified_date of the user type mean in the Stack Exchange API?

The user API type contains a last_modified_date field, according to the official documentation. However, I'm not sure what date it represents: Does it refer to changes triggered by the system (e.g. ...
11 votes
1 answer
198 views

API access stopped working with "`key` is not valid for passed `access_token`, token not found." [closed]

I had a working application embedded in Google Sheets that read the Stack Exchange API for teams, using a noexpiry token. All of a sudden, one day, it stopped working with the following error returned:...
5 votes
1 answer
302 views

How do we seed questions in Stack Overflow for Teams? [closed]

We're considering a wider adoption of Stack Overflow for Teams or possibly Stack Overflow Enterprise. Are there any details and/or examples for seeding questions and answers (assuming via the API) ...
2 votes
0 answers
60 views

Why is "reputation_change" missing on some dates for some users?

I am trying to understand the reputation log returned by Stack Exchange API /users/{ids}/reputation. Most reputation logs have reputation_change, which is the value of reputation change on that date, ...
5 votes
2 answers
179 views

Is it possible to get the original HTML content of a question?

Assuming that I have a condition, like all the questions that were asked in February 2019, or I have their question ID. Is it possible to get the original question body HTML (before it was edited by ...
5 votes
1 answer
197 views

Is there some web API to query my Stack Overflow profile and score?

On Linux, for my resume, using LuaLaTex, I would like to automatically update the score I have on SO. Is there some public API to query the 195K point score and the 0.05% overall I have on June 2020? ...
5 votes
2 answers
87 views

How to find which answers were marked as spam?

Is it possible using SEDE or an API call to find answers marked as spam, and if possible the related user ID?
7 votes
0 answers
91 views

How can I fetch images from my private team? [closed]

I need to fetch some of the private team's images via the API or HTTPS, but I am not able to do this. I see this feature request from StackApps, but I am posting this as a Stack Overflow for Teams ...
26 votes
1 answer
443 views

SE API is randomly responding with "site is required" errors and now CORS errors

A bit ago, at about 2019-11-13 15:09 UTC, the SE API started randomly responding with site is required errors. I've see it in the following situations: There are lots of these reported by ...
4 votes
1 answer
273 views

Obtain user reputation without Flair

Stack Overflow Flair's design is becoming a bit old school. So I'm not in the mood of putting it in to my website. Is there an easy way to obtain my reputation in Stack Overflow to show it in another ...
7 votes
1 answer
352 views

Is there a Webservices API for the Stack Overflow Jobs CV Profile?

Does Stack Overflow jobs have a webservices API? I'd like to use it to keep my resume synced up with the one over at LinkedIn which does have a webservices API for their CVs.
8 votes
1 answer
223 views

Does the Stack Overflow API support the ability to get questions that are Active or Hot?

Does the Stack Overflow API support the ability to GET questions that are Active or Hot? Obviously the Top Questions page groups questions onto tabs by Active, Hot, Week and Month. Each of these ...
3 votes
1 answer
85 views

Is it possible to get questions or answers which have last_activity_date > some_value?

I am trying to figure out if I can query questions and answers that have the last activity date greater than a certain timestamp. This documentation page shows fromdate and todate query parameters ...
0 votes
1 answer
1k views

Is there any way where I could embed my stack overflow profile on my website? [duplicate]

I wanted to embed few contents of stack overflow like reputation, badges on my personal website? Is there any api to do so? What are the various options and how could I implement it?
13 votes
1 answer
849 views

How can I use the API to access private team information? [closed]

I am trying to query information from my private team and tried the following: Registered an app Name = stackoverflow.com/c/{team} OAuth domain = stackoverflow.com Application web site = https://...
9 votes
1 answer
370 views

Is it possible to maintain a Stack Overflow for Teams user list (deactivate) via a REST API? [closed]

I am trying to promote Stack Overflow for Teams within the company I work for and my manager asked about user management when there will a significant number of users (e.g. 1-2 hundreds). I know that ...
7 votes
1 answer
876 views

Getting: “key is not valid for passed access_token, token not found.” when using Teams API [closed]

I'm suddenly getting this error when making API calls to my StackOverflow Team API: { "error_id": 403, "error_message": "`key` is not valid for passed `access_token`, token not found.", "...
-4 votes
1 answer
176 views

Mass-edit the typo "depencies"?

If you search for "depencies" on stackoverflow.com, you'll find thousands of posts with typos in the title. Ditto "depency." I started manually editing a few pages to fix the typos, but I don't want ...
6 votes
0 answers
190 views

Get "people reached" value from Stack Overflow API

Is there a way to obtain the people reached value from the stack overflow API? I found this question about how this value is calculated, and how to play with some queries in SEDE. However, I'm not ...
2 votes
1 answer
320 views

Can I find a user's user_id with only their username for a Stack Exchange profile?

Is there a way to get the user_id of either a global SE account (as is present in the network profile URL) or the account user_id associated with a local community with only a username? It seems from ...
1 vote
1 answer
74 views

Get activity over time for a specific question

Is there already any way to find out when page views & question votes have occurred over time for a specific question? Clearly this info is publicly available for comments & answers, but what ...
-10 votes
1 answer
285 views

Additional User Data from Stack Exchange API

After looking at the user API documentation I noticed that links to the user's social accounts including GitHub profile are not included. Is there any other way of obtaining this information? I haven'...
3 votes
1 answer
273 views

How do I search for a question and get the most popular (by votes) and accepted answers?

My end goal is to search questions with "sum variables" in the title and tagged "PHP". I have: https://api.stackexchange.com/2.2/search/advanced?order=desc&sort=votes&accepted=True&...
5 votes
1 answer
155 views

Querying Answers

Is it possible to use the Stack Exchange V2.2 API to search answers to questions to see if an answer contains a certain string? For example, I want to send over a line of code to see if it has been ...
3 votes
0 answers
114 views

Stack Overflow API ignores Accept-Encoding header

I'd like to get plain simple JSON and tried to tell the server not to send gzip, like this: wget -d "https://api.stackexchange.com/2.2/questions?site=stackoverflow" wget -d --header="Accept-Encoding:...
2 votes
0 answers
204 views

Stack Overflow attribution requirements

We are implementing an app that searches Stack Overflow content. When search results are rendered, we will make sure all the sources and authors are attributed with proper links (clickable) to the ...
5 votes
0 answers
94 views

Stack Exchange API case sensitive search?

I'd like to build a simple app using the Stack Exchange API to search for specific words using a case sensitive search. For example, find questions using the word 'javascript' and/or 'Javascript', but ...
12 votes
1 answer
323 views

Accessing Developer Stories over API

I'm currently trying to get information about users on Stack Overflow. For this, I have to access the developer story of a user, and then read out the tags, which belong to different stations in the ...
4 votes
0 answers
40 views

API /search/excerpts - no answered questions filter

using the API /2.2/search/excerpts?answers=0 that means >= to 0 answers. I want to search for questions without an answer, I see in some parts of the site the use of filter=no-answer but seems to ...
2 votes
0 answers
66 views

API - Undocumented? - Hide part of the snippet (not all of it) [duplicate]

I'm looking at the code inside snippet-javascript....js files, I can see I can hide as in the UI checkbox the snippet, sending hide var. but what I want is (if possible) to select to hide for example ...
5 votes
1 answer
100 views

favicon-<name> on Stack Exchange sites... icons... need relation between <name> and something, like site number or site name

I am making a client for Stack Overflow... I want to show the icons for Stack Exchange network/sites... found some CSS that contains something like: .favicon-english { background-position: 0 -...
3 votes
1 answer
57 views

api.stackexchange.com/docs allow to "edit" a current filter value

I have a filter that I created some time ago, and I want to change it... The only way I can find to do that is to set again all the fields I need. It would be useful if we can enter the current filter ...
43 votes
0 answers
1k views

The API is returning incorrect values for `has_more`

I'm sometimes getting a random bug when retrieving questions from the Stack Overflow API. It happens under conditions like this: I request the page 7 from the API (with 100 records per page). The API ...
5 votes
3 answers
490 views

Is it possible to programmatically post on Stack Overflow?

Here my primary use case would be doing something like writing up a post in vim from a terminal (putting a title, tags as appropriate) and then sending it through a bash function that posts to Stack ...