For questions relating to version 2.2 of the Stack Exchange API.

learn more… | top users | synonyms

2
votes
1answer
14 views

Search function in the API doesn't work as expected

This looks like an error in the search part of the API. This search URL: /2.2/search?tagged=javascript&intitle=get%20column%20array&site=stackoverflow doesn't return any answers. I'm ...
1
vote
1answer
13 views

How can I access a user's ID on another site (eg. SU) if I have their ID from another site (eg. SO)?

If I have the ID of a user from any site, how can I get that's user's ID for a site I specify? Eg. If someone's ID was 10349 on Super User, how could I get 10349's id on Stack Overflow? I know I'd ...
0
votes
1answer
34 views

How to get the “People reached” stat of a user, using the API? [duplicate]

I checked the user ids and advanced search API docs, but I could not get this stat. Does Stack Exchange provide this info in the API? ...
3
votes
1answer
36 views

Is it possible to have no sorting - to just show results in order of inputted IDs?

I'm trying to send multiple IDs at once (up to a max of 100), but need to use the data in the same order I send the request with. So, if I send IDs 1;2;3;4, I would like to receive the JSON sorted in ...
1
vote
1answer
28 views

Question up-voting is not working from my code?

I am trying to upvote a question using the Stack Exchange API in android, via the /2.2/questions/{questionID}/upvote route. But in the log, it's just showing something like: ...
2
votes
1answer
21 views

Help with javascript SDK configuration

The following problem is REAL! All names have been changed to protect the innocent. I have a site at "http://Something.github.io/MyRepository/Directory/index.html" And I have my app configured like ...
1
vote
0answers
19 views

/me/inbox is not returning most recent items

Looks like /me/inbox is either a bit behind or it's not supposed to be realtime. Explanation: for a comment that I received 4 hours ago It's not returned in the API: ...
2
votes
0answers
17 views

API returns delete vote count for questions, but not for answers

The questions method of the API returns the number of delete votes among other kinds of votes: sample query. But the answers method does not have a delete_vote_count field available in the filter: ...
4
votes
1answer
28 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 ...
2
votes
0answers
59 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 ...
2
votes
1answer
39 views

Why is comment_count=1 (incorrectly) when this particular filter is used?

We're seeing that, when a particular filter we've created is used, the API will return "comment_count": 1 for questions with no comments. For a search for questions with no answers, ordered by ...
2
votes
1answer
29 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 ...
2
votes
1answer
40 views

Why is the API giving a different response for preview true/false with POST requests?

Update This expression will evaluate to show the cause. The only requirement is an emacs with url. As you can see, the result from using curl and that from using the url package is different. ...
1
vote
0answers
17 views

Max score with tagged works incorrectly for /questions, correctly for /search

When I look for questions tagged java from the first week of September 2014 with a minimum score of 10 like this: ...
2
votes
0answers
15 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 ...
5
votes
1answer
93 views

Marking inbox items as read in api v2.2

I'm aware of this question, but it applied to an older (readonly) api version. Given that API 2.2 is read/write, I figured this might be possible now. Is there any way for an application using the ...
1
vote
0answers
13 views

How do I sort the /2.2/notifications endpoint?

I do not find information on the notifications api page. I am looking at this: https://api.stackexchange.com/docs/notifications I would like to be able to sort by creations date and other fields. is ...
0
votes
0answers
26 views

Procedure for posting questions using the API, v2.2?

I want use one of the Stack Exchange V2.2 API (e.g. /questions/add) to post Stack Overflow questions from my website. I didn't find any app which is currently using the API for posting questions. As ...
0
votes
1answer
23 views

How can I filter events by event_type?

I am using the /events route in the API and it returns all events from Stack Overflow. But I want to filter based on event_type. Is there any way to do that?
1
vote
0answers
33 views

IGB Stack Flair - A dynamic flair for stackexchange.com sites

IGB Stack Flair - A dynamic flair for stackexchange.com sites About IGB Stack Flair page at sourceforge.net How to include it in your web page How to include it in your Wikipedia page (you ...
0
votes
0answers
46 views

How to generate an Access Token using .net?

I am trying to develop an .NET application to consume Stack Exchange APIs. I can consume GET methods. Now, I want to call Stack Exchange API /questions/add to add questions. This API needs an access ...
2
votes
1answer
13 views

Encoding type of display_name

I am using the v2.2 api. There is a small issue I have come across. For the display_name I do not understand the encoding. For example for this user, the name comes as Mike Sherrill 'Cat ...
1
vote
0answers
10 views

Why doesn't network_user include api_site_parameter?

See the network_user type docs... It really doesn't make any sense to not include this. The api_site_parameter, at least how I see it, is an unambiguous key to a given site. Using the site name ...
1
vote
1answer
41 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 = ...
2
votes
1answer
49 views

Does verifying OAuth2 `access_token` validity count towards API call quota?

Does this Stack Exchange API endpoint count towards quota usage? : http://api.stackexchange.com/docs/read-access-tokens (This is the most promising API call I found for verifying the validity ...
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
0answers
15 views

Site parameter doesn't work properly with inbox items? [duplicate]

I use /users/{id}/inbox/unread method to get unread items in a user's inbox. I expect that site parameter there will filter the response. But looks like I have to do it manually by looking at ...
3
votes
1answer
30 views

Possible to get a user's flag history?

Is it possible to retrieve a signed-in user's flagging history, preferably with the status of the flag? I looked at the /me/timeline docs, and noticed it doesn't return flags. Is this type of ...
3
votes
0answers
66 views

Byte Order Mark suddenly appearing in query results

Query results seem to have started including BOMs sometime today. I had to add code to handle it. I don't see this documented anywhere.
3
votes
1answer
162 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
18 views

Is there an API for adding a user to a site?

With 2.2, I've begun implementing some write features in my app. I've started with voting. When you vote on a question on a site that isn't in a users associated accounts, you get the error "The ...
2
votes
0answers
62 views

Python library 2.2 API Wrapper?

Is there a Python library that encompasses the new functionality in the 2.2 API? I've seen this question and this question, and the comments indicating that libraries were being created and updated ...
1
vote
1answer
32 views

I could POST a question but it does not have a `question_id` and it does not show up in my account

I could successfully create a question for my StackApp and I got this response (NSDictionary output): { "has_more" = 0; items = ( { "creation_date" = ...
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
1answer
23 views

Use case for /render endpoints?

In the new v2.2 API there are /render endpoints, such as /questions/{id}/answers/render. What are these for? Testing applications without actually posting anything?
1
vote
1answer
75 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 ...
4
votes
1answer
44 views

Please add the `tagged` parameter to /answers, /users, etc

The /questions endpoint supports a tagged parameter which I find quite useful. However, it's the only route that appears to support this parameter. If, say, I want to get questions asked by a given ...