Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [api]

Questions about the Stack Exchange API *only*. If your question concerns any other API, do not use this tag. For bugs, please (also) use the version tag, EG [api-v2.2], that the bug applies to.

1
vote
1answer
12 views

I am unable to get the desired response through Stack Exchange API, using Postman [duplicate]

I am using this: https://api.stackexchange.com/docs/answers#page=3&order=desc&sort=activity&filter=default&site=stackoverflow to get the response. Is this the correct URI? I have ...
3
votes
1answer
23 views

Are the revisions returned by /posts/{ids}/revisions guaranteed to be returned in descending order?

The /posts/{ids}/revisions method returns all revisions to a post, but it doesn't have the sort and order parameters most methods have. From some quick tests, e.g. this one, I think it always returns ...
2
votes
0answers
23 views

Linked questions API call fails for frequently asked questions on Stack Overflow

The Linked Questions API fails for some of the Frequently Asked Questions on Stack Overflow, maybe because of the sheer amount of linked questions they have. As an example, take What is a ...
0
votes
1answer
102 views

How to get access token from the hash?

I am trying to implement OAuth Stack Exchange API via Android app as client. After a successful login from out I get the below URL how do I get or decode the access_token from the hash? https://...
0
votes
1answer
35 views

How to search ALL sites with the advanced API?

I can make a request to Stack Overflow as follows, which searches with keywords in titles:     /2.2/search/advanced?title=vlookup%20index%20match&site=stackoverflow My question is ...
3
votes
0answers
35 views

Open source the Stack Exchange app and API

It has come to my attention that neither the app nor the API have received much if any attention in the last two years. The latest API is also largely undocumented. My humble request is to either A) ...
-1
votes
1answer
30 views

Error: Key doesn't match a known application

When trying to access the Stack Overflow API I get this error message. My key is very similar to the one in the query string, it has parentheses on the end. https://api.stackexchange.com/2.2/...
1
vote
1answer
42 views

Is there a SQL-like query for the API?

I've looked at the API docs. However, I haven't found a way to do complex queries through the API such as I can do in the Stack Exchange Data Explorer query editor (select, joins etc). Example: data....
6
votes
1answer
60 views

Please “release” and/or document API version 2.3

I was playing around a bit with Fiddler to capture traffic from the Stack Exchange iOS app. To my surprise, it uses version 2.3 of the Stack Exchange API: I noticed here that it has some extra ...
2
votes
0answers
36 views

Enable access to post images in the API, for “Stack Overflow for Teams”

The Stack Exchange API supports access to Stack Overflow for Teams; see the Teams API documentation. But, since Teams content is private, post images aren't uploaded to imgur.com, but instead hosted ...
2
votes
1answer
44 views

Can I fetch Stack Overflow users by location in Stack Exchange API

I read the documentation and I know that I can get users' locations but I have not seen anywhere about querying by location. Does that mean that it is not possible? If it is possible, how? As an ...
2
votes
1answer
32 views

Stack Exchange API - Get Watched Tags for a User

Is there a way to get a list of tags that the user has set up as "Watched Tags"? If not, is it on the roadmap?
2
votes
1answer
28 views

I have created a lot of access_token with no_expiry scope while experimenting. How do I delete them?

While learning how to work with the StackApps APIs, I created quite a few (more than 10) access_token with no_expiry scope. Finally I have got my applicaiton working but I am worried that all those ...
1
vote
1answer
41 views

Add language or primary language to the /sites API

Can we add a language, or primary language field to the /sites API? For classification purposes, I think it would go a long way for bots trying to target specific languages. For example, I'm ...
1
vote
1answer
32 views

The API is not returning a value that I know it should

My "Meta Stack Overflow" site details are not listed in the API, when I use meta_site;main_site in the types parameter. See:         /2.2/users/2855348/associated?types=meta_site;...
2
votes
0answers
21 views

.wrapper not sorted correctly in filter edit popup

When editing the filter, e.g. on this API documentation page, all types are sorted alphabetically except for .wrapper which is always shown below answer, instead of above it (or at the end): ...
3
votes
1answer
35 views

How to query the Stack Exchange API using an OR operator?

I want to query Stack Exchange by title including optional keywords (one of). How can I query by OR operator? For example: /search/advanced?page=1&tagged=java&q=title:http OR class&...
2
votes
1answer
33 views

What are the top level question & answer localized flag_option titles?

For the SE API, the endpoints dealing with flags (e.g. /questions/{id}/flags/options) return the flag_option type. However, the option_id values are explicitly stated as being unstable, but it's ...
3
votes
1answer
65 views

Cannot get redirect_uri to work

This is in regards to my userscript Bulk flag comments. I am sure I have not at all updated the userscript since the first release of June 24, and I am sure I was able to register for an access token ...
5
votes
1answer
66 views

How to get a list of all StackExchange employees?

For a particular userscript feature, I need to get a list of all Stack Exchange employees. The list would be updated every day (per SE website). What is the most efficient way to do so? I looked at ...
0
votes
1answer
44 views

Can the API Edit a Question, changing only one field?

The documentation for the edit question method (/questions/{id}/edit) is somewhat vague. Are all of the parameters required? For example, if the only field I want to change in the question is tags, ...
5
votes
1answer
41 views

Can we find the time of a vote using the API?

I've been looking at the API docs and more specifically at the filters available for the /answers/{ids}, /posts/{ids} and /questions/{ids} routes but can't find anything other than upvoted and ...
1
vote
1answer
20 views

How to get visits per day via the API?

At the overview page of the Stack Exchange network, one can see a list of all sites of the network with some statistics for each site (number of questions, answers etc.). Most of these statistics can ...
1
vote
1answer
19 views

How to get the user's last seen time in user's profile

In user's profile page, there's a last seen xx mins ago info: How can I get this information in user object or other object field?
1
vote
1answer
17 views

What's the meaning about “ is_answered” field of question object?

I saw the question object has a is_answered field. I mentioned that there're the following cases: The is_answered field is true, and the question has an accepted answer. The is_answered field is ...
3
votes
0answers
51 views

I'm having a hard time finding resources for using Stack Overflow's API in Python to query some questions [duplicate]

I can just go through documentation but it'd be a time saver if I could find some sort of tutorial or intro or anything. Does anybody happen to have any resources, notes, or code examples they could ...
2
votes
1answer
57 views

Can I get the user's top percentile, for tags, using the API?

this is the data I receive when asking for a user data with the Stack Exchange API: { "items": [{ "badge_counts": { "bronze": 27, "silver": 12, "gold": 0 }, "...
0
votes
1answer
67 views

How to pass multiple tags (OR between the tags) to the Stack Exchange Questions/Unanswered API

I am using the /questions/unanswered API to try and get all unanswered questions, sorted by upvotes, and with the tags specified. How can I pass multiple tags to the /unanswered route(s) using OR-...
3
votes
1answer
444 views

What exactly is a valid OAuth domain name for registering your app?

I'm starting to write a native Android client for Stack Overflow, and wondering what exactly is a valid OAuth domain name? Is it the package name of my app? Or do I have to point it to a server ...
1
vote
0answers
63 views

Hidden page tracks Read/Unread Inbox items better than API or Inbox?

How does this hidden page (stackexchange.com/topbar/inbox) know which Inbox notifications I have/haven't opened? Both the drop-down inbox and the API (ie, api.stackexchange.com/docs/me-inbox) seem ...
2
votes
1answer
93 views

My filter is not returning any results. How to create a minimal filter?

I'm having trouble getting the SO API Filters to cooperate. I've gone over the documentation as well as similar questions like this and this. I'll use this call as an example since it successfully ...
2
votes
1answer
73 views

Is there an easy way to get user reputation via API?

I am looking for an easy way to access user reputation so that I can write a small react component and display my rep on my portfolio site. I want to make this package available on NPM and have ...
5
votes
1answer
124 views

Getting an API key for an application without a server

When I go to register my application, it asks me my OAUTH application URL. But I don't have an OAuth server and I just want to get the api-key without my server. How can I fill out the form required ...
3
votes
1answer
34 views

Exclude records where field is present (ie., return only open questions)

How do I exclude records based on the presence of a certain field (like the equivalent of SQL's [fieldname] Is Null)? Example: Results for Closed questions include field closed_date=1234567890. ...
0
votes
2answers
57 views

How to use the StacMan library to add a new question?

I didn't find any client.Questions.Add method. So, how do I use the StacMan library to add a new question ? Any sample C# example?
2
votes
1answer
40 views

How to Create a Multi-tag URI Request to /questions

Just want to confirm if I'm doing this right. The /questions guide doesn't mention this. Let's say I want to ask for multiple tags in one request, am I doing this right? https://api.stackexchange....
4
votes
1answer
57 views

How to use /me to display my profile data in StackExchange API?

So I'm able to use API calls like: https://api.stackexchange.com/2.2/questions?pagesize=30&order=desc&sort=activity&site=stackoverflow to display a list of questions. This is easy as it ...
4
votes
0answers
105 views

Ruby SE API: A ruby wrapper for the Stack Exchange API

Screenshot / Code Snippet An excerpt from the README: First, initialize your client. You can omit the API key, but it's strongly recommended that you use one because it increases your request ...
4
votes
1answer
42 views

What API do I call to measure popularity growth for specific tags over time?

I believe I can use the Stack Exchange API to get total questions that fit chosen tags. I have an example I wrote myself here:           data.stackexchange.com/stackoverflow/...
1
vote
0answers
26 views

Could you please return tags pertaining to the question when the api's “answers on user” endpoint is called?

When I call "answers on users", I see that I can select a filter named "tags". https://api.stackexchange.com/docs/answers-on-users#page=1&pagesize=5&order=desc&sort=votes&ids=303685&...
0
votes
2answers
33 views

Is there a glossary of the properties returned in response to the Stack Exchange API?

While most items are self-explanatory, some aren't, and I was wondering if there was a glossary explaining all the properties in each of the response types?
0
votes
1answer
14 views

How to use date parameters in the /questions API? [duplicate]

When using /questions (e.g. like this)), dates are represented by a number. I'd like to know how I can convert a number to a date. For example if I have 1293840000, what date does it represent?
2
votes
1answer
67 views

How to get deleted answers?

Users with a certain reputation, can see deleted answers (deleted either by moderators or by their owners themselves). Does the API offer any means to access such deleted answers?
1
vote
1answer
27 views

Paging issue: is /users/{ids}/associated API route returning incomplete information?

When querying to find associated accounts for a list of account ids, some ids in the results appear to be missing many of the associated sites. I have only observed this in multi-page responses. For ...
3
votes
0answers
43 views

Can we specify more than one OAuth Domain?

I would like to use the API from a browser extension. With WebExtensions, I should be able to support Firefox and Chrome with the same code. Chrome provides an identity API for OAuth2, and so does ...
2
votes
0answers
78 views

JavaScript API Library for StackExchange API?

I'm developing an application that integrates with the Stack Exchange Network for posting questions and importing whole discussions. Therefore I'm looking for a JavaScript library for the Stack ...
1
vote
1answer
48 views

Stack API doesn't return json with encoding of UTF-8

Here is the query RESULT { "items": [ { "badge_counts": { "bronze": 2, "silver": 1, "gold": 0 }, ...
2
votes
1answer
34 views

How can I get user links in the API call like Twitter, GitHub and so on?

I'm trying to get the user's user links from his profile. Like this person has GitHub and Twitter links on his profile. How can I get those?
3
votes
1answer
53 views

Receive latest questions with certain tag

I'm creating a simple notification application to inform me about latest questions with defined tags. For example, my tags are python and django. I want to see the latest asked question with those. ...
3
votes
1answer
112 views

How to get questions, under a tag, which have at least one answer with 10+ votes?

I want to get all the questions under a tag which has at least one answer with 10 or more votes. I searched the Advanced Search documentation and searched Py-StackExchange's documentation, but I ...