Skip to main content

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
32 votes
1 answer
11k views

Looking for a beginner's tutorial to using the API

I see the Stack Exchange API but I'm unable to understand it. I don't think there is any fundamental tutorial showing how to use Stack Overflow fully in the API documentation. I want some fundamental ...
Ranjit's user avatar
  • 423
15 votes
1 answer
2k views

Unable to get access token

I am trying to get a non-expiry access token, like so: https://stackexchange.com/oauth?scope=no_expiry&redirect_uri={{some_uri}}&client_id={{some_value}} I am repeatedly getting the error: ...
user34257's user avatar
  • 185
12 votes
2 answers
6k views

Can the redirect_uri contain port number?

Is it possible to have the redirect_uri contain a specific port? For example: example.com:8080 Assuming that example.com is my registered domain, is the 8080 allowed? I have tried to put it as part ...
Andy's user avatar
  • 417
2 votes
3 answers
317 views

Can there be a way to find a user given his email hash?

Given a user's email, it would be great if we could hash it and search for that user with it. The reason for this is suppose: Someone has a website On that website, they invite SO users to enter ...
Nathan Osman's user avatar
  • 23.3k
4 votes
1 answer
640 views

How to create API filters?

I used the following request link to extract data from the Stack Exchange API. But I have no idea how to create "filter" as used in the request line. Please help me understand the creation of such ...
Manish Bhanu's user avatar
4 votes
1 answer
288 views

Can not request info after OAuth

I am following The implicit OAuth 2.0 flow Guide: My client ID is 4709 while key is RoZwtHUrhMP088oVGCMlxA(( I appended my URL as: https://stackexchange.com/oauth/dialog?client_id=4709&scope=...
Zigii Wong's user avatar
30 votes
1 answer
1k views

Announcing API version 1.1 and Roadmap

As has been announced on the blog, we're rolling out a minor revision of our existing read-only API. While the blog post gives some high level details, I figured [app] developers would appreciate some ...
Kevin Montrose's user avatar
21 votes
3 answers
487 views

Should there be a discovery API?

It would seem to me that a simple API that return an array of the API base URL and perhaps the common name of the sites that support the API would be valuable. Is this sensible? EDIT: This is what I ...
TheHurt's user avatar
  • 4,535
16 votes
2 answers
2k views

Why does the API lack (proper) HTTP cache control headers?

I've just read Kevin's answer to Do I need API key to use StackAuth API? and been quite surprised that the API doesn't seem to facilitate proper HTTP caching already: You really shouldn't be ...
Steffen Opel's user avatar
  • 1,380
10 votes
1 answer
192 views

Please provide a way to download SEDE data via an API

Following on from this answer, I have a data extraction requirement that is not presently catered for in the API, so I've raised a feature request for that. It has also been suggested that it would ...
halfer's user avatar
  • 293
9 votes
1 answer
171 views

Is there any support for Area 51 in the new API?

Does the new API support Area 51? Will there be support in the future?
asheeshr's user avatar
  • 193
8 votes
1 answer
1k 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 ...
Glorfindel's user avatar
  • 6,885
6 votes
0 answers
434 views

Resurfacing bug: "could not parse proxy url" error message

According to this question, the "could not parse proxy url" bug was solved more than 2 years ago. However, when using the client-side OAuth flow, the aforementioned error message appears when ...
Linostar's user avatar
  • 161
5 votes
1 answer
464 views

How to increase app request quota from 300 to 10,000?

In the app management page for a little app I made, the following statement is presented below this key Pw9D)judG8FE4tJR3qjUTA((: Pass this as key when making requests against the Stack Exchange ...
m-a-r-c-e-l-i-n-o's user avatar
3 votes
1 answer
2k views

How to get Question/Answer body in the API response using filters?

I am specifically looking to get the question/answer body back. Is it possible? I am looking through the API documentation and I'm confused about how to make a call with filters. Sample call I'm ...
Shyju's user avatar
  • 133
27 votes
1 answer
455 views

Provide a way to retrieve questions and answers that have been deleted

Could you please provide a way to retrieve deleted questions/answers? Your database contains that data, until you hard delete it, so it would be useful for us to have the chance to play with it. I'm ...
systempuntoout's user avatar
21 votes
1 answer
233 views

Can we have some debug endpoints for testing corner cases?

After encountering a throttle violation today (which I posted in another question), it occurred to me that although I've put together code to handle "backoff" conditions, and potentially throttle ...
agent86's user avatar
  • 3,277
10 votes
0 answers
712 views

SOAPI-REST: Complete Stack Overflow API specification in machine readable format

SOAPI-REST Services At four hour intervals, SOAPI-WATCH parses the complete Stack Overflow API documentation and generates a complete object graph representing the API including all routes, ...
Sky Sanders's user avatar
  • 12.1k
9 votes
1 answer
1k views

My registered apps are not showing in my profile; where can I find them?

I registered two apps in Stack Apps, but when I access my account, it shows no registered apps. How can I mark them as my apps and how can access app settings (client id, key), etc?
user avatar
9 votes
1 answer
321 views

Could/Should the API evolve more agile rather than being blocked by v2 writing (and authentication) features?

The activity on Stack Apps has dwindled noticeably; this might be a topic for its own discussion, however I'd like to revisit the API roadmap beforehand to set a proper stage and expectations in this ...
Steffen Opel's user avatar
  • 1,380
6 votes
1 answer
1k views

Please "release" and/or document API version 2.3

I was playing around a bit with Fiddler to capture traffic from the Stack Exchange iOS app. To my surprise, it uses version 2.3 of the Stack Exchange API: I noticed here that it has some extra ...
Glorfindel's user avatar
  • 6,885
6 votes
1 answer
140 views

API throws improper error when "date" parameters are the same

When using the Stack Exchange /questions API using the same date for fromdate and todate I get a 500 internal server error. Using different dates appears to work OK but specifying the same value ...
Andy Clark's user avatar
4 votes
1 answer
75 views

Can revisions be returned from the API, filtered by user?

I see that question or answer revisions can be returned from the API either by post ID or by GUID. I'd like to obtain this data filtered by user, e.g. "all revisions made by user X". However, I ...
halfer's user avatar
  • 293
4 votes
1 answer
288 views

How do I parse the dates from the API?

I see that JSON returned by the API contains dates in the following format: "creation_date":1364546475 ^^^^^^^^^^ What's the meaning of it? How can I parse it to get the date in the ...
Ionică Bizău's user avatar
3 votes
1 answer
373 views

Stack Exchange OAuth2, explicit access-token response format does not adhere to RFC6749 standard

I'm using the Stack Exchange v2.1 API. I'm using the explicit OAuth 2.0 flow, but it seems that the access token response step does not adhere to the RFC 6749 standard. Specifically, the Stack ...
Wu-Man's user avatar
  • 131
3 votes
1 answer
169 views

How to access my App info

I've registered for an app yesterday, but I'm not finding where should I go to see/edit its info again. I've search through profile, at stackexchange.com but couldn't find it.
Caio Cunha's user avatar
3 votes
1 answer
317 views

Do I need permission to use the SE API for a commercial app?

I recently developed a mobile app using the publicly available API of one of the Stack Exchange sites. Do I need to obtain permission from Stack Exchange before releasing the app to the public? Can I ...
bp581's user avatar
  • 133
2 votes
1 answer
156 views

Stack Exchange API not realtime?

I was testing the inbox/unread API but noticed that there is a big delay between one gets a message, and this message gets included in the API response. Like one minute or more. Is this API not real-...
zavié's user avatar
  • 203
28 votes
0 answers
258 views

Deleting an application key? [duplicate]

There should be delete buttons on stackapps.com/apps https://stackapps.com/apps/oauth/ so we can delete API-keys. Or at least de-activate them? I mean, cancelled projects, etc... A deletion button ...
user avatar
20 votes
3 answers
485 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 ...
Szabolcs's user avatar
  • 315
16 votes
1 answer
450 views

Bug in the StackExchange Api ? getting "could not parse proxy url" when user not logged in

I think I may have stumbled upon a bug in the Stack Exchange JS API I'm having a problem getting its authentication to work properly, and I just discovered that the same problem exist in the official ...
Gabi Mor's user avatar
  • 301
10 votes
1 answer
4k views

What exactly is a valid OAuth domain name for registering your app?

I'm starting to write a native Android client for Stack Overflow, and wondering what exactly is a valid OAuth domain name? Is it the package name of my app? Or do I have to point it to a server ...
CodeRed's user avatar
  • 101
10 votes
1 answer
1k views

How to delete apps in StackApps?

I have registered an app in Stack Apps. I am trying to delete it, but unable to find the solution. Is there a way to delete it?
amit jha's user avatar
  • 842
7 votes
1 answer
216 views

Add the 'people reached' count to the API?

Can we have the people reached statistic added to the /users/{ids} method? The response could simply be: "people_reached": 1000 I'm asking because it would be cool to get a network-wide number.
ᔕᖺᘎᕊ's user avatar
  • 4,385
5 votes
0 answers
141 views

Filter doesn't consistently return comment bodies

I've been trying to set up a filter I can use with /questions/{id}/answers/ (using the UI at this link), which returns the following fields: answer: answer_id body_markdown comments ...
Martin Ender's user avatar
5 votes
0 answers
541 views

Platforms Supported by the API and Response Compression

What platforms are supported for use with the Stack Exchange API? In short, anything that can make a GET request to the API servers and supports JSON/JSONP & GZIP. (JavaScript, Python, PHP, Java, ...
Kevin Montrose's user avatar
5 votes
2 answers
150 views

Prefered way to retrieve all search results

I'm trying to figure out a reliable way to retrieve all the results from a search query (in subsequent pages. My use case includes cases with more than 100 results (the maximum page size). Looking at ...
Gilles 'SO- stop being evil''s user avatar
5 votes
0 answers
56 views

Please provide a way to get Post Edits, filtered by user

I recently discovered from this question that the API does not support filtering revisions by user. I am interested in looking at a user's edit history programmatically (with their permission) and at ...
halfer's user avatar
  • 293
5 votes
3 answers
307 views

Can we get a sandbox please?

I think that we should have some sort of a sandbox site where we can post questions, answers and comments in a controlled environment. Currently I'm working with Stack Overflow but I can't post "...
Shay Erlichmen's user avatar
5 votes
0 answers
156 views

Selective API oriented transcript fragment of Jeffs Code Camp Video Interview.

This is a very selective API oriented transcript fragment of Jeffs Code Camp Video Interview: Purpose Please note that this transcript fragment is mainly a supporting post to decrease the length of ...
Steffen Opel's user avatar
  • 1,380
4 votes
1 answer
52 views

Limiting the number of items returned by a request?

How can I limit the amount of items returned to me when performing an API call? I only want the top 10 most commonly used tags, by default I'm sent back 30. EG: api.stackexchange.com/2.2/tags?order=...
EntityPaul's user avatar
4 votes
2 answers
253 views

Is it possible to access data in real-time using the Stack Exchange API?

I want to show an animation of: Questions being asked and answered in the most popular tag Comments being posted New users joining All in real time. Is there access to real-time data?
Rakesh Adhikesavan's user avatar
4 votes
0 answers
164 views

Can we specify more than one OAuth Domain?

I would like to use the API from a browser extension. With WebExtensions, I should be able to support Firefox and Chrome with the same code. Chrome provides an identity API for OAuth2, and so does ...
Bob's user avatar
  • 286
4 votes
2 answers
2k views

What is the throttle interval or threshold?

Resolution: I have confirmed that a constant interval of 170 ms will run without error. // 30 per 5 sec = 6 per sec = interval 166.6 ms Soapi.RequestQueue.setInterval(170); Soapi....
Sky Sanders's user avatar
  • 12.1k
4 votes
1 answer
361 views

Getting an API key for an application without a server

When I go to register my application, it asks me my OAUTH application URL. But I don't have an OAuth server and I just want to get the api-key without my server. How can I fill out the form required ...
Hyeonseo Yang's user avatar
4 votes
1 answer
410 views

My filter is not returning any results. How to create a minimal filter?

I'm having trouble getting the SO API Filters to cooperate. I've gone over the documentation as well as similar questions like this and this. I'll use this call as an example since it successfully ...
ashleedawg's user avatar
4 votes
1 answer
146 views

AND searching for tags?

I am using the search api to search for questions that are tagged with "tags" and not with "tags". However I have noticed that searching for tags is an OR search. The questions search for tags is an ...
johnwards's user avatar
  • 465
3 votes
1 answer
201 views

Search for answers/comments under questions with certain tags using the Stack Overflow API?

The advanced search (/search/advanced) API can search for questions by tags. But /users/{ids}/answers API doesn't take tags. I'd like to monitor answers/comments for questions with certain tags. Is ...
Jason Li's user avatar
3 votes
2 answers
335 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 ...
makerofthings7's user avatar
2 votes
2 answers
205 views

Is there a way to determine total number of upvotes and downvotes (etc) for a user (regardless of reputation cap)?

For example, if you use the /users/<id>/reputation call, you get a list of reputation changes for the user, but it takes the daily reputation cap into account. What I would like is an API call ...
codeka's user avatar
  • 536