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

0
votes
1answer
39 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 ...
1
vote
1answer
21 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
20 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 ...
4
votes
1answer
315 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 ...
1
vote
0answers
9 views

In the data explorer, how do you get the answers to a question? [migrated]

Using Stack Exchange Data Explorer, how can you find the answers to a particular question? I would assume it would be something like this: SELECT answers FROM ( SELECT id=12345 FROM posts ) ...
3
votes
1answer
269 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 ...
0
votes
1answer
198 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 ...
-1
votes
1answer
25 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
166 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
20 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: ...
2
votes
1answer
114 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: ...
1
vote
1answer
30 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
1answer
227 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
152 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!
0
votes
0answers
35 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
23 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
33 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
14 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
222 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 ...
0
votes
0answers
35 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 ...
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
23 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
246 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
25 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
26 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
422 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
16 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
67 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
78 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
344 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
32 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 ...
1
vote
1answer
20 views

Get users based on location?

I want to get site users by their location but I don't see any method for that. And it's not possible with filter too. Is there any way to get users based on location or is it not possible?
98
votes
4answers
22k views

API “Hello World” code

The Stack Exchange API is based on HTTP and URLs, just like the web page you're browsing now. Except instead of HTML, the responses are all in JSON. Let's say we wanted to call the /info method: ...
1
vote
0answers
16 views

Where can I found all the type objects in the Stack Exchange API? [duplicate]

Where can I found all the type objects in the Stack Exchange API? In the docs, I can't find any section that lists all of them. I am trying to make a Wrapper Class in C#, so I need a complete list of ...
2
votes
1answer
68 views

How can I create a filter from scratch using filter/create?

I want to create a filter from scratch to get just the information I can use: error_id quota_remaining api_site_parameter The first two are part of the wrapper and the last is part of .items, so I ...
58
votes
2answers
11k views

How to list your application/library/wrapper/script here

If you've created an application, script, or library for use on the Stack Exchange network, that's fantastic! Now publicize it by creating a question with the correct tag: app ...
1
vote
0answers
56 views

Stackoverflow Javascript Authentication error

Using the Stack Overflow javascript authentication API, I get this error: Application Login Failure An error occurred while login into an application. Error Details error description: ...
2
votes
0answers
46 views

Can I see my past upvoted questions in handset APP?

It's not hard to dig out questions upvoted by myself through the PC website. But I cannot find any access to them in the ios app. I guess neither does android app. Did I miss something or is it a ...
3
votes
1answer
36 views

The /tags query is not giving me the correct results between two dates?

I'm trying to get the yearly total number of questions that have the tag browserify. I can see that there are questions tagged from this year like this one and that one. The site reports that there ...