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.
456
questions
4
votes
1
answer
333
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 ...
2
votes
1
answer
52
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.
...
1
vote
2
answers
85
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
1
answer
63
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
1
answer
143
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 ...
6
votes
0
answers
218
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
1
answer
72
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
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&...
1
vote
2
answers
53
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
1
answer
56
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
1
answer
253
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
1
answer
44
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 ...
4
votes
0
answers
154
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
0
answers
113
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
1
answer
116
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
},
...
3
votes
1
answer
70
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
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.
...
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 ...
1
vote
1
answer
58
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 ...
2
votes
1
answer
70
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 ...
-4
votes
1
answer
53
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 ...
1
vote
1
answer
223
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 ...
20
votes
3
answers
146
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 ...
2
votes
1
answer
130
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 ...
3
votes
0
answers
109
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 ...
2
votes
0
answers
78
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 ...
11
votes
0
answers
171
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 ...
1
vote
1
answer
75
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 ...
0
votes
1
answer
63
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 ...
5
votes
1
answer
124
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?
22
votes
1
answer
456
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&...
4
votes
1
answer
88
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/...
2
votes
1
answer
193
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....
4
votes
1
answer
449
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 ...
3
votes
1
answer
41
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 ...
8
votes
1
answer
133
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=...
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 ...
2
votes
1
answer
193
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 ...
2
votes
1
answer
136
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&...
2
votes
1
answer
110
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 ...
3
votes
1
answer
66
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 ...
5
votes
1
answer
435
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 ...
7
votes
1
answer
179
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....
8
votes
1
answer
223
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 ...
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....
5
votes
1
answer
346
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 ...
3
votes
1
answer
274
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 Stack ...
0
votes
0
answers
71
views
OAuth domain with a custom port in a dev environment? [duplicate]
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 ...
-2
votes
1
answer
65
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
0
answers
38
views
Okay if our Internal Customer Service Software polls the Stack Exchange API?
We are in the process of creating a number of API's and extensible software which we expect will result eventually in questions being asked on stack overflow for working with our API's and extensible ...