You need help with the use of the Stack Exchange API, apps built on the API, or assistance building scripts that work on Stack Exchange websites.

learn more… | top users | synonyms

1
vote
1answer
38 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 ...
0
votes
1answer
46 views

Problem Implementing Socialite Stack exchange

I get code and access token but i cannot call API function My url being generated https://api.stackexchange.com/2.2/me?site=stackoverflow&access_token=lcynp67rMHfm%28DRLjv7CVQ%29%29&key=6521 ...
0
votes
0answers
14 views

API's /search/advanced gives different results than the website (searching on whitespace only)?

I am searching for (a blank space) in Stack Overflow through API's /search/advanced and through the website. The API gives results whereas the website does not return any results.
0
votes
0answers
12 views

exclusion of tags

Is there a way to exclude tags while querying for /tags. I am asking this because when we select a tag while posting a question, that tag does not come again to be selected.
0
votes
0answers
8 views

Why I am getting a strange error from Stackexchange API [duplicate]

error_message":"Applications must have a registered Stack Apps post to write","error_name":"access_denied
4
votes
1answer
320 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 ...
4
votes
2answers
238 views

When does a rate-limit day start and end?

After reading the docs/faqs, I couldn't help but wonder... What exactly is a day? When does it start? When does it end? What timezone are you using? In other words, when my app runs out of ...
3
votes
1answer
283 views

Application Key and AccessToken are not working for Stack Exchange API?

I have followed the documentation and used explicit OAuth 2.0 flow for access_token generation. And I have gone through all 4 steps defined under explicit OAuth 2.0 flow with scope=no_expiry. Then I ...
1
vote
1answer
32 views

Is the Stack API daily quota of 10,000 a hard limit, or can it be increased?

We are developing an indexer that will be used to store and serve up questions/answers related to our products. The indexer uses a key (and soon an access_token) to retrieve the data from Stack ...
0
votes
1answer
207 views

How to get tags using the API?

I have a requirement in my application to show the technical skills (tags) in auto-complete format like Stack Overflow has. Is there any example to get the tags from Stack Overflow using JavaScript ...
0
votes
0answers
15 views

when and how do items in`/inbox/unread` go to `/inbox`? [duplicate]

I am querying /inbox/unread. There is one item in my unread inbox when run from the doc page. When does this data come to /inbox? It is always showing in unread inbox. I have also run the api link ...
0
votes
0answers
17 views

Where is `/notifications` results shown in website?

/notifications correspons to which icon? This: ?
0
votes
1answer
24 views

wrong results of /search/advanced

I am querying mobile in stackoverflow. The second result is an answer. Results of /search/advanced is giving only questions when queried mobile. This is applicable for all other terms which are to be ...
2
votes
1answer
178 views

Got a Bad Status Line

Since about 10 AM US-CDT on August 8, 2015, I've been getting ('http protocol error', 0, 'got a bad status line', None) on a /users/{ids}/associated query after several successful such queries ...
2
votes
1answer
119 views

Wrapper implementation method to get user notifications in Stack Exchange?

I'm trying to build an app that requires me to get the user notifications for a particular Stack Exchange user. Now, I'm trying to use Java to accomplish this and I came across this wrapper library: ...
0
votes
1answer
235 views

Error on Authentication - App Secret Doesn't match

I'm using the explicit OAuth flow and am getting errors when using the "code" value returned after a successful authentication. Can anyone post a sample HTTP POST with a redacted secret value? ...
0
votes
2answers
156 views

How to search my threads based on some key words?

As I have already many threads in some StackExchange sites, sometime I would like to be able to search among them, for instance, based on some key words. Does anyone know how to do that? Thank you!
3
votes
1answer
35 views

Same access token between different fetch_token requests

TL;DR: Is it (or would it be) possible to get the same access_token from one fetch_token request to another, provided that the user is the same? Scenario: An anonymous user authenticates with ...
1
vote
0answers
21 views

OAuth domain with a custom port in a dev environment?

I have an app for which the OAuth domain is example.com However, the domain for dev environment is example.com:8000 When trying to authorize the website, Stack Exchange replies with an error ...
-1
votes
1answer
29 views

Are the inbox routes (`inbox_item`) missing some item types?

Should there be more options for item_type in the "inbox" routes (they return inbox_item)? Shouldn't they return answer and edit suggested like the site's global inbox does? As shown in this ...
2
votes
1answer
23 views

Authentication uses # instead of `?`?

I need authentication for my app so I used the implicit flow way. The authentication works just fine but the access_token and expires variables return weirdly! For example: ...
1
vote
1answer
34 views

Is my script's API usage okay?

I've written a short Python script to help people review C and C++ questions on Code Review. It uses the API version 2.2. I've already asked there for a review of that Python code, but I would ...
0
votes
0answers
36 views

Is there an API method to retrieve a tags score/count between a certain date?

I'm trying to use the /tags/{tags}/info API but the tag will only work if I query its creation date. Is there any way to check its score/count between certain dates?
0
votes
0answers
25 views

A way to copy text on this forum to preserve math symbols?

Is there any way to copy html-text containing Mathjax symbols from this forum's threads and paste it into a word processor (I use Libre office Writer) to preserve nicely looking math symbols? The ...
5
votes
1answer
125 views

Complete list of sites to @include / @match into my script?

This question aims to serve as a reference list of all current Stack Exchange sites for use in scripts.
1
vote
1answer
36 views

Absence of `order` and `sort` in rest calls?

Will absence of order and sort give the same result as order=desc and sort=activity always in every call (it is default in every call)?
0
votes
0answers
18 views

How to stimulate `backoff`? [duplicate]

How to simulate backoff? In which units (seconds, milliseconds), backoff is returned?
0
votes
0answers
16 views

difference between `/{method}/render` and `/{method}/add`

What is the difference between /{method}/render and /{method}/add when we have preview parameter (which we can set to true) in /{method}/add? Also, is there some difference between the objects ...
13
votes
2answers
223 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
1answer
42 views

Why is the `site` parameter required in `/me` call?

I want to query information about the logged-in user using me, and this site parameter is creating some small problems. I am developing a visual studio extension where upon logging in a user will get ...
1
vote
1answer
23 views

`types=main_site` in `/me/associated` gives `meta_site` accounts also

When I run /me/associated with main_site as a parameter in types, its gives meta_site accounts also (Meta Stack Exchange profile).
0
votes
0answers
11 views

wrong response wrong parameter is passed in `/me` call

I have passed wrong site parameter in /me. The response I am getting is common wrapper object with its error_id, error_message and error_name set. This is not expected. It is not of the type error.
0
votes
0answers
9 views

`type` of common wrapper object when error is returned

Whenever error is returned by any method the type of common wrapper object should be error. Also, in the documentation of error, under "Methods That Return This Type", it should be "Every method can ...
2
votes
1answer
24 views

`fromdate` and `todate` parameter in `/me` call

What if we don't give the fromdate and/or todate parameters in a /me call? Will it give result of user of all times? It's not mentioned explicitly in documentation.
0
votes
0answers
15 views

use of `min`, `max`, `page`, `pagesize`,`order` and `sort` parameter in `/me` call

What is the use of min, max, page, pagesize,order and sort parameter in /me call? As it returns user!
0
votes
0answers
34 views

`/me/associated` gives ambiguous/wrong response [duplicate]

This is my associated accounts page. No where I can see Meta Stack Overflow profile. But when I run /me/associated with meta_site as parameter to types, I get a response that tells me that I have a ...
2
votes
1answer
20 views

Why is `page` and `page_size` returned in common wrapper object?

page and page_size returned in common wrapper object, if I run /me/associated request. Why is it so? I am asking this because we have already sent these parameters as request. So getting the same ...
10
votes
1answer
247 views

Why is my API quota not resetting after UTC reset?

According to How API Keys Work, the default daily API limit -- which is per site, per day -- is 300. I started with 300, as expected, but over a period of days, I've noticed that the remaining quota ...
0
votes
1answer
29 views

How to get question body (markdown) in the API response using filters?

Using withbody filter as suggested in this thread (How to get Question/Answer body in the API response using filters?) returns body as HTML. How do I get the original markdown?
0
votes
0answers
31 views

Making request to api.stackexchange.com with angular $http

I am trying to make request to api.stackexchange.com ask explained here. Could some one please explain how grant api key for [auth required], and how to make angularjs $http request using this key (a ...
9
votes
1answer
2k 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 ...
4
votes
0answers
423 views

Supported Platforms

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, ...
0
votes
0answers
17 views

Getting all the answers for a question in Py-StackExchange

How do I get all the answers for a question in Py-StackExchange? m=s.user(id) for i in range(0,len(m.questions.fetch()): print m.questions.fetch()[i].answers #returns [] even if answer ...
3
votes
1answer
68 views

How can I get a user's Meta site details in the API call?

This query returns the details of the Main sites only:         /associated-users#ids=2855348 How can I get the Meta site details also in the same query? Do I need to add any ...
2
votes
1answer
88 views

Unable to decode HTML entities in the API response?

I am trying to decode HTML entities from the JSON data returned by the Stack Exchange API but it's not working. I have used both html_entity_decode and htmlspecialchars_decode but it doesn't effect ...
1
vote
1answer
347 views

Offline cache of the API - for when the developer has no internet.

Is there some fake API program that "simulates" the API? Just I'm going on a long car journey tomorrow, and I won't have an internet connection on my laptop and don't want to waste the whole journey ...
2
votes
0answers
32 views

User sort by last_modified_date always return errors

I am using this API to get users info sorting by last_modified date, ...
3
votes
2answers
52 views

When asking/answering a question on SE sites; Is there a way to fix the page in place so that you only see the displayed output as you type?

I am a touch typist and would like to know if there exists a way to type a question\answer with all the necessary formatting without the page automatically scrolling back up to where you input the ...
4
votes
1answer
33 views

Is there a way to specify how long I want an access token to be valid for?

I am following the explicit authentication path. I am not passing no_expiry as part of the scope. After the final POST step, I receive back an expires value of 86399 (just shy of a full day). It ...