Questions tagged [api]

Questions about the Stack Exchange API *only*. If your question concerns any other API, do not use this tag. For bugs, please (also) use the version tag, EG [api-v2.2], that the bug applies to.

Filter by
Sorted by
Tagged with
2 votes
0 answers
13 views

stackapi.cpp - a C++20 library for the Stack Exchange API

Code snippet #include "stackapi/StackAPI.hpp" #include "stackapi/data/structs/Comment.hpp" #include <iostream> int main() { stackapi::StackAPI api ( { ...
1 vote
1 answer
59 views

Is the StackExchange API free of charge?

I am brand new to StackApps, so please bear with me for a question that is hopefully obvious to most regular users. As far as I can tell, there is no charge for accessing the StackExchange API. ...
  • 113
4 votes
1 answer
59 views

Stack Overflow for Teams support

I am reading this documentation https://stackoverflow.help/en/articles/4385859-stack-overflow-for-teams-api where they mention the need to create a PAT to access StackOverflow for Teams API (https://...
  • 171
1 vote
1 answer
47 views

Is there a way to use the API without using localhost or a web domain?

I'm developing an SO chrome extension in React with TypeScript. I've been reading the guide on how to use the API with OAuth and it looks fantastic for what I'm trying to do. The problem is that the ...
  • 161
1 vote
1 answer
64 views

Can I use the Stack Exchange API to build a "GH Archive" like project?

I'm not sure if I can use Stack Exchange API to build a https://www.gharchive.org like project? I studied the API throttling documentation but I am not sure.
2 votes
1 answer
26 views

Writing question API failing with error 407

I'm trying to use https://api.stackexchange.com/2.3/questions/add method payload = { 'site': 'stackoverflow', 'title': title, 'body': body, 'tags': tags, 'key': key, '...
  • 21
0 votes
0 answers
20 views

Getting events from /events route live

The /events endpoint is incredibly useful. It provides recent data on useful topics, like posts, comments, and users. However, its full potential remains unavailable. At the time of posting, I would ...
5 votes
1 answer
110 views

What is the latest version of the Stack Exchange API?

What is the latest version of the Stack Exchange API and its release date? The document which I referred is for v2.3.
3 votes
1 answer
238 views

Redirect URI for a chrome extension using StackExchange API Oauth

I'm working on a developing a browser extension which uses StackExchange API authentication. I was able to successfully implement the authentication for Microsoft edge/Chrome when I added chromiumapp....
  • 171
1 vote
1 answer
2k views

JSONDecodeError: Expecting value: line 3 column 1 (char 3)

I am trying the following simple code to get JSON from the Stack Exchange API and it gives me the following error: JSONDecodeError: Expecting value: line 3 column 1 (char 3) Here is my script: ...
3 votes
1 answer
36 views

How do I search answer bodies for Markdown links?

The /search/excerpt query enables searching answers for specific text, but searching for Markdown links returns results that don't seem to match the query at all. For instance, the following query ...
  • 133
1 vote
1 answer
44 views

Why does this minimal filter return no results at all?

I tried to create a 'minimal' filter https://api.stackexchange.com/docs/questions#order=desc&sort=activity&filter=!34JvAEfIUyU-&site=stackoverflow&run=true for the 'question' object, ...
  • 335
1 vote
2 answers
246 views

Fetch all questions of a particular tag from the Stack Exchange API in Python

I am trying to fetch all questions of the Swift tag from Stack Overflow. I created the query using https://api.stackexchange.com/docs/questions and wrote a simple wrapper in Python. def fetch_question(...
1 vote
0 answers
27 views

Add API to get posts of one collection

We are Teams users and want to get all the articles and questions added into one collection. I did not find it in the documentation.
1 vote
0 answers
21 views

Add API method for network-wide search

Just like stackexchange.com has a networkwide search, it would be nice to have an equivalent of excerpt-search which searches the entire network at once. That would save me 360 calls (per-site metas ...
  • 6,302
2 votes
0 answers
14 views

Improve error message when attempting to edit a post while not having enough reputation

When attempting to edit a post while not having enough reputation, like happened here: API to submit a Suggested Edit, the API returns the following: { "error_id": 407, "...
  • 6,302
1 vote
0 answers
110 views

How does 1 request every 5 seconds exceed the 30 requests per second limit?

I'm doing a run every 5 seconds for this API call: url = "https://api.stackexchange.com/2.3/questions/no-answers?pagesize=30&fromdate={date_today}&order=desc&sort=creation&site=...
1 vote
1 answer
43 views

"is_edited": false or "is_edited": true as an option in the API response

When working with the Stack Exchange API I noticed that there is important data (at least for what I thought to do) not available, whether the question, answer or comment was edited or not: { "...
2 votes
1 answer
121 views

Is there any way to get statistics by tag?

We are Stack Overflow Teams users. We want to get the statistics by tags. Currently only StackExchangeApiClient.getStatistics API is found which include all team's data. And can the https://...
1 vote
1 answer
56 views

How to get all communities a user is associated with?

Is there a way to get all Stack Exchange communities in which a user is active? I mean the list of communities that are displayed on a user's network profile.
1 vote
1 answer
59 views

Using API to collect tag information - data differences

I am trying to get a list of the most popular tags on Stack Overflow. According to the SO page, these are the most popular tags as of today: The Python tag has 6690 questions asked this week alone. ...
5 votes
1 answer
424 views

How can I quickly get an access token for personal use?

Registering your application or script gets you a higher daily quota and is fairly simply; a step by step guide is documented here: I only need a key, what do I do? However, what if I do want an ...
  • 6,302
2 votes
0 answers
59 views

Update Teams API documentation to reflect dependency on tier

The documentation says (emphasis mine): Starting with the release of Stack Overflow For Teams, the Stack Exchange API exposes read-only access to data stored in private Teams. This is slightly ...
  • 6,302
3 votes
1 answer
83 views

When using the Advanced Search API endpoint, how soon after the edit grace period is question data updated?

I'm using the Questions Advanced Search API to retrieve Stack Overflow questions with a specific tag that were created in the last 15 minutes. I've written a script which runs every fifteen minutes ...
  • 133
1 vote
1 answer
40 views

How to get statistic data for specific tags which belong to a specific team?

I just want to get statistic data for specific tags which belong to a specific team. For example, for tags: "abc", I want to know how many users viewed the questions which have the "abc&...
3 votes
1 answer
53 views

How do I see the differences between two or more SE API filters and merge into a filter which includes all requested properties (i.e. is a superset)?

For SmokeDetector, we have several SE API filter values in use. Notably, there are separate filters for the /answers/*, /questions/* and /posts/* routes. From an organizational standpoint, I'd like to ...
  • 1,528
4 votes
2 answers
122 views

How can I retrieve the reputation I (or another user, fwiw) earned for a given tag from questions and answers?

(I've included the api-v2.3 because https://api.stackexchange.com/docs starts with Stack Exchange API v2.3.) From this answer I see there's no way to get all questions with a specific tag. However, ...
  • 197
5 votes
0 answers
116 views

What does the /users endpoint look for when sorting on modified date?

What does the /users endpoint look for when sorting on modified date? For the /users endpoint in the Stack Exchange API v2.3, what does the modified filter in sort field look for? It is unclear from ...
  • 151
3 votes
0 answers
39 views

Call to search/advanced is treating tagged as an AND search, not OR [duplicate]

The docs for search/advanced (https://api.stackexchange.com/docs/advanced-search) have this to state about the tagged attribute: "tagged - a semicolon delimited list of tags, of which at least ...
4 votes
0 answers
61 views

Get total question views via API

I can currently get the total number of questions for a tag by using the total filter. This works well, but I'd like to get a total views count for the questions in that tag. I could iterate over each ...
2 votes
1 answer
68 views

Can "trends" be queried with the Stack Exchange API?

I've studied the Stack Exchange API to some extent (although I'm a newbie to such things), and it appears I can query the database using many criteria. But does Stack Exchange store any "trends&...
  • 21
2 votes
0 answers
45 views

high_resolution_icon_url points to a non-existing image for Area 51 Discuss

In 2013 this bug was reported: Not all sites are returning Hi Res icons Since then a lot has improved. Most urls found in high_resolution_icon_url on the site type as returned by the /sites endpoint ...
  • 2,220
0 votes
1 answer
76 views

Should we add review queues to the API?

Review queues are unsupported on the Stack Exchange API, and it could be useful to write an app that would review. Should we add it to the API?
  • 459
2 votes
1 answer
349 views

How to handle default compression on response with Java's HttpURLConnection? [duplicate]

I sent a request for question with no parameters to https://api.stackexchange.com/2.2/questions?order=desc&sort=activity&site=stackoverflow I received a response of 9764 bytes stored in ...
  • 21
2 votes
0 answers
55 views

Is there an API call that can get me a user's access_token?

I'm trying to create a connector between Microsoft's Power Platform and the Stack API. Since the server ↔ server auth flow is happening outside of code I control, I can't grab the access_token from ...
1 vote
1 answer
61 views

Missing total when tag is not URL-encoded

When trying to get a list of questions for the C# tag, the total field was missing. Tried with Python tag and the total was included. /2.2/questions?order=ASC&sort=creation&site=stackoverflow....
1 vote
1 answer
536 views

Why am I getting a 400 Bad Request error with this code?

I'm using this code (in an async function): let about = await fetch("https://api.stackexchange.com/2.2/me?order=desc&access_token="+token+"&sort=reputation&site=gaming&...
  • 113
1 vote
0 answers
77 views

PLACEHOLDER - Fortnightly Topic Challenge Automation on Puzzling.SE

Used for (meta.)puzzling.stackexchange - Creates & edits the corresponding meta posts with information from the main and meta site. E.g. creating a post for the new challenge every 2 weeks and ...
3 votes
1 answer
78 views

Take the right filter for favourite count

I try to take the favourite count filter for a question. I use api through R library(stackr) stack_questions(11227809, site = "stackoverflow", filter = "!GeD4JB*YQqe2L") and I ...
  • 31
1 vote
1 answer
47 views

Is there any way to get questions by tag with excerpt?

I'm checking how I can embed the search for one project. Basically I want something like this page. With the search I can get the list of questions with all meta data from the search, however the ...
  • 185
2 votes
1 answer
83 views

How are API changes announced?

How are API changes announced? Are emails sent out to developers, or is there someplace I can subscribe to?
2 votes
0 answers
64 views

When does API quota reset?

I had a program consuming Stack Overflow API quota (10,000 per day) last night across midnight. This morning I checked, and my quota has not been set back to 10,000. Is this normal? If yes, when does ...
1 vote
1 answer
135 views

How can I write (edit) one of my answers?

I started to love the Python black formatter and I want all my code on Stack Overflow to be formatted like that. So I wanted to go over the answers and apply black / blacken-docs, check if anything ...
2 votes
1 answer
65 views

API to submit a Suggested Edit

Is there a way of using the API to submit a suggested edit? This would allow users without the edit privilege to at least submit their suggestion. There is no create/add endpoint listed in the docs ...
  • 137
3 votes
1 answer
64 views

How to get the user's pinned sites?

I have been trying to find the API for getting all the pinned/favorite sites of the user, but I can't.
1 vote
1 answer
67 views

Wrong sorting parameter in documentation for question/{ids}/answers

It looks like that in the question/{ids}/answers documentation, there is a mistake: votes – score Shouldn't this be votes – votes
2 votes
1 answer
106 views

What does it mean when a revision number is missing?

I've noticed in the API docs for revisions that revision_number may be absent. Yet all examples, e.g. /posts/{ids}/revisions include a revision number for all responses. I have a colleague who swears ...
4 votes
1 answer
485 views

Creating personal applications using Stack Overflow/Stack Exchange API

I want to create an application to read Stack Overflow notifications on my device. My question: what should I provide in the OAuth Domain and Application website fields while registering the ...
user avatar
1 vote
1 answer
139 views

How can I fetch the answers posted in last week based on tags of the question?

I see that tags are present only for questions. How can I get the answers to these questions given in last week (if any) having specific tags?
1 vote
1 answer
26 views

Where do I get the user impact?

I'm trying to get the data of the user's impact. Therefore I used the /2.2/me route and did not found any of this data. Is there any other route that gives this information? I'm also missing the ...

1
2 3 4 5
9