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

3
votes
1answer
25 views

How do I get my total reputation score using the API?

How do I get my total reputation score? My score is 354, on Stack Overflow, as per my user page. I browsed the API, and found a call similar to what I require:       api.stackexchange....
-1
votes
1answer
54 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 ...
5
votes
1answer
333 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 ...
0
votes
1answer
76 views

Can I have a separate account just for testing my Stack App?

I want to test my Stack App to make sure it works properly without and problems. Is it allowed if I use a separate account just for this purpose?
0
votes
1answer
136 views

400 (Bad Request) error in time of creating question using StackExchange API

I am trying to create a question in StackOverFlow using write-access API(https://api.stackexchange.com/2.2/questions/add). I have provided the parameters as required but a "400(Bad Request)" error is ...
3
votes
1answer
293 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
0answers
34 views

Implicit Flow Isn't Redirecting

I'm using the WebAuthenticationBroker to allow users to log in to their account: var accessToken = ""; var uri = "https://stackexchange.com/oauth/dialog?redirect_uri=https://localhost.com&...
0
votes
1answer
63 views

How do I find all questions/answers per a tag using .Net?

I want to get the list of questions based on tag name using .Net. can any one please let me know how to achieve this using .Net with API Version 2.2?
2
votes
1answer
192 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 ...
1
vote
1answer
111 views

How do I find all questions/answers per a tag?

Would also be good if I could also find the top questions/answers in a particular tag - i.e. questions tagged with Ruby or PHP. Per the docs the only thing I can see that will return questions in a ...
-1
votes
1answer
31 views

Why API Version 2.2 returns null always while getting questions list?

The below 2 codes returns null always. How to get the list of questions using API Version 2.2? Question thisPost = context.Official .StackApps .Questions.ById(1) .WithComments(true) .First(); var ...
-1
votes
0answers
29 views

How to Consume/Use Stack Exchange API version 2.2? [duplicate]

How to consume the the API v2.2 in .net application? how to call the methods using the API v2.2?
9
votes
1answer
94 views

List of Votes by Authenticated users

In the API documentation for the question type, it says that you can access, for a specific question, whether or not the authenticated user (in the private_info scope) upvoted/downvoted the question. ...
-1
votes
0answers
19 views

How to use the stack API to get the questions which are posted in Stack Overflow? [duplicate]

I want get a questions which are posted for particular tag. how to get the questions using API?
2
votes
1answer
122 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
246 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
159 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!
1
vote
1answer
55 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 ...
2
votes
0answers
48 views

It's taking two calls to /oauth/dialog/ to get an access_token? [duplicate]

When we send this request: https://stackexchange.com/oauth/dialog/?client_id=`client_id`&scope=read_inbox%2cno_expiry%2cwrite_access%2cprivate_info&redirect_uri=https%3a%2f%2fstackexchange....
0
votes
0answers
18 views

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

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
19 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.
-1
votes
0answers
14 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
2answers
244 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 ...
1
vote
1answer
50 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
208 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
1answer
33 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 ...
3
votes
1answer
43 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
22 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
30 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
28 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: https://example.com/#...
1
vote
1answer
38 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
40 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?
1
vote
0answers
27 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
129 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
47 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
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
47 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
29 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
10 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
27 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
35 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
26 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
248 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
36 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
34 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
425 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, ...