Skip to main content

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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
171 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-...
Karishma Tiwari - MSFT's user avatar
10 votes
1 answer
4k 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 ...
CodeRed's user avatar
  • 101
1 vote
0 answers
132 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 ...
ashleedawg's user avatar
4 votes
1 answer
410 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 ...
ashleedawg's user avatar
2 votes
1 answer
174 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 ...
Stretch0's user avatar
  • 123
4 votes
1 answer
361 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 ...
Hyeonseo Yang's user avatar
2 votes
1 answer
58 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. ...
ashleedawg's user avatar
1 vote
2 answers
87 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?
Neha's user avatar
  • 119
2 votes
1 answer
68 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....
noogui's user avatar
  • 165
4 votes
1 answer
158 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 ...
noogui's user avatar
  • 165
6 votes
0 answers
221 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 ...
thesecretmaster's user avatar
4 votes
1 answer
73 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/...
Kim Stacks's user avatar
1 vote
0 answers
33 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&...
Water Cooler v2's user avatar
1 vote
2 answers
56 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?
Water Cooler v2's user avatar
0 votes
1 answer
58 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?
Matteo Colella's user avatar
2 votes
1 answer
269 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?
Billal Begueradj's user avatar
1 vote
1 answer
46 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 ...
foobarbecue's user avatar
4 votes
0 answers
164 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 ...
Bob's user avatar
  • 286
2 votes
0 answers
116 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 ...
RAGE Developer's user avatar
1 vote
1 answer
121 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 }, ...
Nerzid's user avatar
  • 145
3 votes
1 answer
73 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?
Nerzid's user avatar
  • 145
3 votes
1 answer
66 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. ...
Natiq Vahabov's user avatar
3 votes
1 answer
124 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 ...
Rajkamal Subramanian's user avatar
1 vote
1 answer
60 views

Can I pass a filter to a write method?

I was wondering if I'm allowed to pass a filter to methods that use write access? Like for example /answers/{id}/accept. There is no "filter" parameter, and changing the filter doesn't seem to change ...
Rakete1111's user avatar
2 votes
1 answer
75 views

How do I get information about top users of a Stack Exchange community?

I was going through the stack exchange API and I want to extract information about, say, top 20 users of a particular stack exchange community. How do I use the API for that? I tried on this page ...
The Doctor's user avatar
-4 votes
1 answer
54 views

/tags search multiple words ("or") inname

Is there any way to search for tags... but for ex "aa bb" so I want back the tag "aa-cc" and tag "aa-ccbb". at the moment the inname searches for "aa bb" so only a tag called "aa bbcc" will be a ...
UXDart's user avatar
  • 93
1 vote
1 answer
226 views

Will the Stack Exchange API work with an org-specific Stack Overflow site?

We have a company-specific Stack Overflow site for folks to ask questions with the company. It has a *.stackoverflow.com domain/URL. Would I be able to use the Stack Exchange API to access the ...
Uma Subramanian's user avatar
20 votes
3 answers
159 views

Documentation or API method for `option_id` information, for the `/flags/options` API calls?

The Stack Exchange API has a couple of calls that return a list of flag_option objects. These objects contain a couple of properties that can be used to identify the flag you need. For example, when ...
Cerbrus's user avatar
  • 331
2 votes
1 answer
159 views

How to get the number/count/total of tags/badges/something from the API?

I see we can fetch tags via the API, which works fine but, sadly, there doesn't seem to be a way to get the count of all possible tags. Currently the Stack Overflow Tags page shows 36 tags per page ...
samayo's user avatar
  • 123
3 votes
0 answers
111 views

Only Stack Overflow has documentation, but the API erroneously lists documentation privileges for all sites

Privileges related to Stack Overflow Documentation are displaying in every other site's API data. Using Meta Stack Exchange, for example, /2.2/privileges?site=meta returns the following documentation ...
Arulkumar's user avatar
  • 578
2 votes
0 answers
86 views

Provide a way to get display name via access token

Please include a new (network) method with the ability to gather display name and profile image directly via access token. Right now to retrieve this information you have to first authenticate a ...
gillesberger_p's user avatar
11 votes
0 answers
175 views

Provide a way to reset - not invalidate - API tokens

I'm running a service with ~300 write-authenticated access tokens. It's terrifying. As part of running such a service, I'd like to be able to cycle API tokens - so that if, heaven forbid, one made an ...
user avatar
1 vote
1 answer
79 views

How to sort /questions/featured by bounty_closes_date

The API documentation describes tthe usage of /questions/featured. Unfortunately there does not seem to be a way to sort the result by bounty_closes_date, which is IMO the sort option making most ...
kriegaex's user avatar
  • 121
0 votes
1 answer
68 views

Get a great many counts of questions, by select tags for a date range?

I am trying to get the number of questions associated with a specific tag for a particular date range. I initially assumed the fromdate and todate parameters would do this. However, it appears that ...
user3089187's user avatar
5 votes
1 answer
132 views

How to get total visited days and consecutives of an user?

I checked docs , there are no endpoints to get total visited days and consecutive days. Is there any way to get them?
Thamaraiselvam's user avatar
22 votes
1 answer
468 views

Stack Exchange thinks that Shog is a elected moderator

I was browsing the API for the list of elected moderators, The API URL is http://api.stackexchange.com/docs/elected-moderators#pagesize=100&order=desc&sort=reputation&site=stackoverflow&...
Bhargav Rao's user avatar
  • 1,377
4 votes
1 answer
95 views

How to use shallow_user?

I can not understand how to access the summary information about the user's reputation. How to use the shallow_user object ? I tried: https://api.stackexchange.com/2.2/shallow-user/2765346/...
Hristo Eftimov's user avatar
2 votes
1 answer
206 views

Keep getting 500 "Internal error" in requests with an access token

I'm trying to fetch some data from the Stack Exchange API I have a valid access_token and registered key but I keep getting internal error as a result. Here is the request URL: https://api....
Marco Pierucci's user avatar
4 votes
1 answer
483 views

Refresh expired acess token basics

I'm trying to learn how to implement an OAuth flow in an Android app using a simple app with the Stack Exchange API. Using WebView, I'm able to retrieve an access token and store it in my shared ...
Marco Pierucci's user avatar
3 votes
1 answer
56 views

How do I get the total number of records for a given search?

I want to use the Stack Exchange API and get the total number of results returned from the search route. I wrote this recursive script to find the last page with the has_more=False, is there a better ...
Uri Goren's user avatar
  • 133
8 votes
1 answer
138 views

Bug with `badges/name` endpoint

Last night I had a programme running and it errored on the first call to the badges/name endpoint on the API, exact API endpoint call: https://api.stackexchange.com/2.2/badges/name?order=asc&sort=...
Der Kommissar's user avatar
3 votes
0 answers
54 views

API for the mobile feed, as seen in the Android app?

I'm creating an app for Windows 10, and I would like to provide a similar experience to the official Android and iOS apps (while keeping my own identity, of course). One feature seen in the official ...
Arturo Torres Sánchez's user avatar
2 votes
1 answer
196 views

Stack Exchange login hangs on Windows 10 Mobile?

I am working on a Stack Exchange App (Stack App for Windows 10 PC/Mobile and Windows 8.1 Mobile). I have a user login set up and using the WebAuthenticationBroker in Universal Windows Platform, to ...
AVK's user avatar
  • 279
2 votes
1 answer
137 views

bad_parameter when using key with todate?

I'm having trouble using my API key with the todate parameter. My query works fine with todate: $ curl -s "https://api.stackexchange.com/2.2/search/advanced?todate=2015-07-21&site=stackoverflow&...
bmaupin's user avatar
  • 123
2 votes
1 answer
112 views

Can I pass multiple filters?

I've tried adding filter=total and filter=withbody in the same request but get the following error: {"error_id":400,"error_message":"Invalid filter specified","error_name":"bad_parameter"} How ...
codecowboy's user avatar
3 votes
1 answer
67 views

Can I retrieve question comment count as part of a search query?

I'm looking for a comment_count property in the results of /search/advanced to get a count of comments under a question. Is there an undocumented q for /search/advanced that gives a comment_count ...
mkungla's user avatar
  • 133
5 votes
1 answer
464 views

How to increase app request quota from 300 to 10,000?

In the app management page for a little app I made, the following statement is presented below this key Pw9D)judG8FE4tJR3qjUTA((: Pass this as key when making requests against the Stack Exchange ...
m-a-r-c-e-l-i-n-o's user avatar
7 votes
1 answer
186 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....
kensplanet's user avatar
8 votes
1 answer
235 views

Why is /questions API returning deleted questions?

In last few days I have noticed that questions API returns questions that where deleted hours before the API call. This is a short example, if more logs are need to pin point the problem, please ...
Petter Friberg's user avatar
3 votes
0 answers
64 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....
amit jha's user avatar
  • 842

1 2
3
4 5
10