As of May 31, 2023, we have updated our Code of Conduct.

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
1 vote
0 answers
46 views

PLACEHOLDER - A post to register my app posting

PLACEHOLDER - Just a post to register my app.
3 votes
0 answers
96 views

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 ...
2 votes
2 answers
61 views

How to revoke an access token generated for my application?

I generated an access token for my application and shared it with some people. Now, I wish to revoke the access token and generate a new one. I don't find any way to revoke that token.
1 vote
1 answer
40 views

Why are Stack Exchange API methods named like this

I'm curious about https://api.stackexchange.com/docs . I looked up and studied the naming convention to make a REST api. I've seen that in the naming convention, don't use verbs and in the case of the ...
2 votes
1 answer
26 views

Why are these answers dated before the question was asked?

Does anyone know why some answers are shown with a date before the question was asked? Here are a couple of examples: Why doesn't Java have compound assignment versions of the conditional-and and ...
6 votes
0 answers
95 views

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

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

Differences between versions 1.x and 2.x of the Stack Exchange API?

I had written a Java Wrapper for the Stack Exchange API, version 1.x, Which was working perfectly. But, since 12 May 2014, services for version 1.x have been shutdown and my Wrapper stopped working. ...
6 votes
1 answer
496 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 ...
1 vote
0 answers
49 views

Overwhelmed by unorganized information [duplicate]

As you can see I am a newbie, and trying to use Stack Exchange API for a school project. I spent 3 hours just trying to understand How to get started. Is there an example for me to follow? or A ...
2 votes
1 answer
92 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. ...
3 votes
1 answer
322 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....
4 votes
1 answer
86 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://...
1 vote
1 answer
56 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 ...
5 votes
1 answer
113 views

How to get total visited days and consecutives of an user?

I checked docs , there are no endpoints to get total visited days and consecutive days. Is there any way to get them?
1 vote
1 answer
66 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.
19 votes
3 answers
440 views

Is there an API to upload images to SE's imgur installation?

Is there an API for uploading images to the StackExchange-specific imgur installation? I could use the main imgur site, but they don't keep the images indefinitely. Use case: It would be ...
1 vote
1 answer
95 views

fromdate is ignored for /posts/{id}/comments requests

The api docs: http://api.stackoverflow.com/1.0/help/method?method=posts/{id}/comments The test request. You can see comment itself here, it's four months old, while cutoff date in request is less than ...
2 votes
1 answer
125 views

Top questions/answers

Is there a way to get a list of X questions/answers with the highest votes up, visits, etc? Say I want to get the list of most voted questions in .NET category (tag) or Java.
1 vote
1 answer
225 views

StackExchange API's request data is blank in Drupal 7

I'm trying to implement this simple request in Drupal 7 on my local machine: $request = drupal_http_request('https://api.stackexchange.com/2.2/users?order=desc&sort=reputation&site=...
2 votes
1 answer
29 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, '...
5 votes
1 answer
113 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.
0 votes
0 answers
22 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 ...
3 votes
0 answers
85 views

All updates (answers, comments etc) using stack exchange API

Is there anyway to get information about any change using the stack exchange API's? i.e. if someone leaves a comment or votes on an answer/question? checking for answer changes is easy cause its a top ...
1 vote
1 answer
137 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 ...
1 vote
1 answer
141 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
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
39 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 ...
1 vote
2 answers
346 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
1 answer
49 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, ...
3 votes
1 answer
85 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 ...
1 vote
0 answers
29 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
23 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 ...
2 votes
0 answers
15 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, "...
1 vote
0 answers
183 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
45 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
129 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
58 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
62 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. ...
4 votes
1 answer
303 views

Retrieving list of c# questions

I am trying to retrieve list of C# questions using http://api.stackoverflow.com/1.0/questions?title=true&tagged="c#". But I get JSON response related to c questions. Response : { "...
2 votes
0 answers
64 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 ...
1 vote
1 answer
43 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&...
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 ...
4 votes
1 answer
56 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 ...
2 votes
1 answer
187 views

Stack Exchange login hangs on Windows 10 Mobile?

I am working on a Stack Exchange App (Stack App for Windows 10 PC/Mobile and Windows 8.1 Mobile). I have a user login set up and using the WebAuthenticationBroker in Universal Windows Platform, to ...
2 votes
1 answer
57 views

Reputation losses aren't reflected in the API

This includes reputation recalculations (e.g., the latest) and (speculative) when people take upvote back. First case you can see on standard stackauth/users query: it displays meta reputation before ...
4 votes
2 answers
127 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, ...
3 votes
2 answers
316 views

What am I allowed/not permitted to do with the API?

I have a site that will offer technical help and assistance for a certain niche of computer users. I can either host my own forums, or tie in with stack... but I want to be able to make money off it ...
5 votes
0 answers
117 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 ...
3 votes
1 answer
135 views

Java exception when user age or location is unspecified in returned JSON

I am brand new to the Stack Exchange API and Android (well, self taught in the last four months). I have been working on creating a school project focused around Android and JSON. My initial idea was ...
4 votes
1 answer
890 views

Get questions with body and answers

How can I get the latest 30 questions with body and answers using the api? And then, I want to get only first most voted 3 answers for each question. Is this possible with only one request? To get ...

1
2 3 4 5
9