A question about the Stack Exchange API: usage, functioning, guidelines, etc.

learn more… | top users | synonyms

2
votes
1answer
101 views

StackExchange API Java wrapper

Screenshot / Code Snippet StackExchangeApi api = new StackExchangeApi(key); api.authorize(authToken); StackExchangeSite siteService = api.getSiteService(StackExchangeSite.STACK_OVERFLOW); ...
1
vote
0answers
24 views

Fetch the Personalized Prediction Data through the API?

Is it possible to get a user's personalized prediction data in an automated way?
0
votes
0answers
21 views

Array boolean values are returning empty

I am trying to convert a JSON array to a PHP array, and the boolean values are being lost. I think I need to loop round using foreach() and cast the items as they are placed in to the new array, but I ...
1
vote
1answer
16 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: ...
-1
votes
0answers
18 views

Unable to add a comment via the API

I have a web app using javascript to communicate with the Stack Exchange API. I want to write a comment on a post using the API. I am unable to do so using /posts/{id}/comments/add. I am using the ...
2
votes
1answer
29 views

'The target origin provided does not match the recipient window's origin' message when trying to use localhost

I am trying to experiment with the Stack Overflow API on my localhost and am struggling to get the authentication to complete. Here is my application JavaScript code (note that I am using IBM ...
2
votes
0answers
41 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 ...
3
votes
1answer
22 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 ...
10
votes
1answer
281 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 ...
0
votes
0answers
8 views

Unable to post a question through api again [duplicate]

I am testing an application to create a question on Stack Overflow. After i created my first question through the API , i am not able to do so as it says "we are no longer accepting questions from ...
1
vote
1answer
20 views

Question's body rendering in Android's webview

I've developed an app that get questions from Stack using REST APIs and shows them in a WebView. My problem now is that the body often contains placeholders that must be "replaced" with the real ...
0
votes
0answers
28 views

How can I show recently answered questions and answers in my blog site?

I would like to showcase some of my Stack Exchange answers in my blog site. I couldn't find a relevant post on how to implement this. Also, from what I can see, in order to use the API a user needs ...
3
votes
1answer
106 views

StackApps for Windows Phone 8

Can anyone suggest a good app for Windows Phone 8 or let me know Where an I find API to build my own? Thanks.
0
votes
0answers
26 views

How to retrieve the body of an accepted answer using the API?

I would like to retrieve accepted answers with complete answer body for a given question (using id) or a free form text (q). I have tried the /search/advanced and /search/excerpts routes -- setting: ...
0
votes
0answers
23 views

Is it okay to use the Stack Exchange API to get all tags as a one time call for a commercial application? [duplicate]

I want to get all tags that stackoverflow lists, and I can do that with: https://api.stackexchange.com/2.2/tags?site=stackoverflow I'm only going to make the request once to get a list of all tags ...
1
vote
1answer
28 views

Unable to download data from the API using UNIX wget?

I want to download the JSON data from this sample API call into a file. I tried using wget, like so: wget -O ~/ks/json.txt ...
2
votes
1answer
22 views

Obtain JSON equivalent of a full Q&A HTML page?

I want to write an application for which, after some logic to select a set of questions, it would be most convenient to get the whole set of stuff at once that is normally shown on a Stack Exchange ...
-1
votes
1answer
38 views

How to use the API to show the user reputation?

How do I use the Stack Exchange API to let my users enter their Stack Overflow URL and then extract their reputation and show it in a profile controller in Rails?
1
vote
1answer
73 views

Getting questions that have a specific tag or tags?

In the current API (2.1 and 2.2), how do you get questions that have a specific tag or tags? EG: All Stack Overflow questions asked in the past 2 months tagged 'ruby'? All Stack Overflow questions ...
0
votes
0answers
12 views

Get the list of question ids under a particular tag? [duplicate]

I am new to the Stack Exchange API. Stack Overflow has a tag named java, How do I get the list of all questions' ids that are tagged as java?
0
votes
1answer
24 views

Get UserId by passing email ID in the Stack Exchange API?

The Stack Exchange API is mostly based on 'ids'. IE /2.2/users/{ids}/top-tags?site=stackoverflow How can we get {ids} for a particular user using his email id or name? Is there any method available ...
1
vote
1answer
30 views

What's the difference between the Stack Exchange API and the Stack Overflow API?

I heard about the Stack Overflow API. Is there a Stack Overflow API available. Or is it the same as the Stack Exchange API?
3
votes
1answer
24 views

Which reputation events are private?

I've been reading the API documentation on retrieving a user's reputation history (docs/types/reputation-history) and Stack Overflow's description of how reputation is calculated. But, I can't find ...
2
votes
0answers
14 views

/answers API request returns no tags if body_markdown is included

This API request to /answers has the filter set to return the tags field for the corresponding question. It works fine: api.stackexchange.com/docs/answers#filter=!9YdnSPElz But, when the filter is ...
2
votes
0answers
26 views

Can I ask the API to tell me to back off? [duplicate]

I'm creating a bot that collects all tags from a given site (and over all sites in the network). I would obviously like to run this bot in as little time as possible, but I also do not want to overly ...
15
votes
2answers
850 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 ...
-1
votes
1answer
22 views

What about actually identical requests?

Now, it says here that I should not make lots of semantically equivalent requests. It also says that there is a lot of caching. So I was wondering, what about exactly identical requests. Should I wait ...
1
vote
1answer
79 views

How to increase the allowed number of API calls?

Stack Exchange provides the possibility to do a limited number of API calls per day from the same IP (10,000 if the customer registers the app). Is it possible to get that number increased?
1
vote
1answer
101 views

Best strategies for calling the API with full throttling support?

I know this would be subjective on a normal SE site but as the relevant chat rooms are mostly dormant, we have no meta site, and nobody noticed when I asked if this kind of question is OK here, I'm ...
4
votes
0answers
44 views

Add a special page where developers can reset throttle timeouts

As George Edison noted, it would be useful to have a special page where developers can reset the throttle timeout when we accidentally trigger it. This happened to me this morning — I got banned for ...
1
vote
1answer
72 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 ...
2
votes
1answer
86 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?
14
votes
1answer
187 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 ...
6
votes
2answers
79 views

How to get data related to Winter Bash?

I was thinking of creating a nice question on Programming Puzzles & Code Golf related to Winter Bash 2014, but I need some specific data for that question - The number of hats of each user. Is ...
2
votes
0answers
28 views

Request: Mark inbox items as read, now that API 2.2 is here

Now we have write API, can we get a method for the inbox to mark inbox items as read? Previously I believe the reason for not having this was the risk of apps marking items as read without the user ...
1
vote
2answers
43 views

Total Number Of Answers

I need to find the total number of answers submitted by a user on stackoverflow. I tried the following: I got my json from the following: ...
0
votes
1answer
37 views

“We are no longer accepting questions from this account.”. Error with write access, using the API

I have created an application for testing write-access APIs. After registration, I can successfully retrieve an access token by hitting the URL: ...
5
votes
3answers
235 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 ...
1
vote
1answer
124 views

Searching on Stack Overflow and using the API give different results?

I am trying to use the Stack Exchange API to see the trends on different topics. Looking at the API documentation, I see that I could do this using the /search path (it's documented that this method ...
0
votes
0answers
30 views

How to get my StackOverFlow API Key [duplicate]

I used to login in StackOverFlow site using my Gmail Id/password.How I will get my StackOverFlow API key? I require that key to fire a StackExchage API which requires authentication. Also, could ...
3
votes
1answer
28 views

How can I access all questions asked by an arbitrary user?

Within the web app for courses I organize, I'd like students to be able to provide their Stack Overflow username, so that we can pull in their most recent and unanswered questions. This information is ...
0
votes
1answer
28 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 = ...
1
vote
1answer
36 views

Is developing, with the Stack Exchange API, possible on my local machine?

I'm sorry if this question seems trivial for the most of you but I'm not very familiar with OAuth and the Stack Exchange API. Is it possible to use this API in local environment for the development ...
2
votes
0answers
25 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 ...
0
votes
1answer
72 views

How to sort by the newest question?

I'm trying to retrieve the latest questions posted in a particular tag. What's the equivalent for: http://stackoverflow.com/questions/tagged/php?sort=newest&pagesize=15 I see that v1.1 API is ...
0
votes
0answers
21 views

“error_id”:500,“error_message”:“this error has been logged”,“error_name”:“internal_error”

I developed an application, user can give vote down or up to question or comments but when I send the request to the API of the stackexchenge the response it is not true and this back to me error ...
0
votes
0answers
8 views

Why are comments in the timeline of a question but not in the activity sort?

I've written a small script to monitor a tag of our team's language, and translate that to Slack notifications (Source). I use the /2.2/questions?order=desc&sort=activity&tagged=rascal call ...
0
votes
0answers
63 views

Exception while calling the API using code which works with local json file

I have written a Java application to fetch questions from Stack Overflow's site. The following is the output of the URI (System.out.println("GET " + get.getURI()); GET ...
1
vote
1answer
84 views

Is it possible to create a private Q&A site using the Stack Exchange API?

I want to create a sort of private Q&A site to allow university students of the same courses to communicate. Is it possible by using the Stack Exchange API?
2
votes
1answer
203 views

StackExchange API Java SDK

This project aims to provide a Java wrapper to the Stack Exchange API. SDK supports Stack Exchange API V2.2 Getting Started There are two interfaces to the library. Query Interface Facade ...