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.
461 questions
4
votes
1
answer
357
views
Strange encoding for JSON output
I'm trying to create an R API. Here's some basic code for processing JSON:
library(rjson)
fromJSON(readLines("http://api.stackoverflow.com/0.9/stats/", warn=F))
As I look into this, the output of ...
4
votes
2
answers
307
views
When does a rate-limit day start and end?
After reading the docs/faqs, I couldn't help but wonder...
What exactly is a day?
When does it start?
When does it end?
What timezone are you using?
In other words, when my app runs out of requests ...
4
votes
1
answer
312
views
Retrieving list of c# questions
I am trying to retrieve list of C# questions using http://api.stackoverflow.com/1.0/questions?title=true&tagged="c#".
But I get JSON response related to c questions.
Response :
{
"...
4
votes
3
answers
313
views
Getting started: What kind of thing can we do with the SE-API that we can't do with the SE Data Explorer?
I want to know if my slender grasp of the latter will help me learn about the former.
4
votes
1
answer
640
views
How to create API filters?
I used the following request link to extract data from the Stack Exchange API. But I have no idea how to create "filter" as used in the request line.
Please help me understand the creation of such ...
4
votes
1
answer
155
views
Stack Overflow for Teams support
I am reading this documentation https://stackoverflow.help/en/articles/4385859-stack-overflow-for-teams-api where they mention the need to create a PAT to access StackOverflow for Teams API (https://...
4
votes
2
answers
192
views
How can I retrieve the reputation I (or another user, fwiw) earned for a given tag from questions and answers?
(I've included the api-v2.3 because https://api.stackexchange.com/docs starts with Stack Exchange API v2.3.)
From this answer I see there's no way to get all questions with a specific tag.
However, ...
4
votes
1
answer
337
views
Can I get information about a user with their network ID?
My network profile's ID is 4337810.
Is there any way to get information about users with their network ID from the API? So stuff like username, location, profile image, etc...?
There doesn't seem ...
4
votes
2
answers
253
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?
4
votes
1
answer
607
views
Creating personal applications using Stack Overflow/Stack Exchange API
I want to create an application to read Stack Overflow notifications on my device.
My question: what should I provide in the OAuth Domain and Application website fields while registering the ...
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 ...
4
votes
1
answer
97
views
Getting the top answerers/users for a tag in a custom time range?
I'm trying to use the top answers on tags API to get the users who contribute the most for a given tag. Like so:
/2.2/tags/azure-web-sites/top-answerers/month?site=...
4
votes
1
answer
100
views
Get total answers count for a specified: Tag, Userid and Date-range?
I would like to get the total number of answers provided by userid 1068142 between
01/07/2015-31/07/2015 with tag = paypal.
I have looked into this question but it does not help!
I have been trying ...
4
votes
1
answer
288
views
Can not request info after OAuth
I am following The implicit OAuth 2.0 flow Guide:
My client ID is 4709 while key is RoZwtHUrhMP088oVGCMlxA((
I appended my URL as:
https://stackexchange.com/oauth/dialog?client_id=4709&scope=...
4
votes
1
answer
52
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:
api.stackexchange.com/2.2/tags?order=...
4
votes
1
answer
117
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?
4
votes
1
answer
1k
views
Get questions with body and answers
How can I get the latest 30 questions with body and answers using the api?
And then, I want to get only first most voted 3 answers for each question. Is this possible with only one request?
To get ...
4
votes
1
answer
79
views
How do I see the differences between two or more SE API filters and merge into a filter which includes all requested properties (i.e. is a superset)?
For SmokeDetector, we have several SE API filter values in use. Notably, there are separate filters for the /answers/*, /questions/* and /posts/* routes. From an organizational standpoint, I'd like to ...
4
votes
1
answer
105
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 ...
4
votes
1
answer
52
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 ...
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 ...
4
votes
1
answer
665
views
How to get question body (markdown) in the API response using filters? [duplicate]
Using withbody filter as suggested in this thread (How to get Question/Answer body in the API response using filters?) returns body as HTML. How do I get the original markdown?
4
votes
1
answer
86
views
Getting historical data for careers?
I'm wondering if there is a possible way to get historical data regarding job postings made through careers, even for postings that have already been filled. Does careers keep this data at all, and if ...
4
votes
1
answer
67
views
Syntax for Adding a Question as a Favorite?
I would like to be able to have my application make a request to the Stack Exchange API to favorite a question for the current user. The API specifies that this can be done via:
/2.2/questions/{id}/...
4
votes
1
answer
288
views
How do I parse the dates from the API?
I see that JSON returned by the API contains dates in the following format:
"creation_date":1364546475
^^^^^^^^^^
What's the meaning of it? How can I parse it to get the date in the ...
4
votes
1
answer
157
views
what should be the duration between each call to stackoverflow api for getting new questions?
I have a desktop app which pings stackoverflow api after every 2 mins to get the new questions.?
4
votes
2
answers
342
views
Are there more implementation samples with Stack Exchange API 1.0? How could this API useful to me or my users?
I'm looking at how the Stack Exchange API could be useful in my site. Is it fair to say I am in read-only mode when I search for results? What is some envisioned use-case scenarios for this?
I ...
4
votes
1
answer
110
views
Is there an RSS feed or question that has API changes?
Is there someplace that we can find notifications of API changes? I noticed today that a new property has been added to user along with a couple new method (and maybe other changes).
Is there an ...
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 ...
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/...
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/...
4
votes
1
answer
141
views
How can I get a user's Meta site details in the API call?
This query returns the details of the Main sites only:
/associated-users#ids=2855348
How can I get the Meta site details also in the same query?
Do I need to add any ...
4
votes
1
answer
78
views
How to monitor (for new) accepted answers by certain tags?
In practice, I don't know the IDs of the questions, but I can search for answers by given tag(s).
The problem is how to find (newly) accepted answers. The "activity time" does not work for this.
For ...
4
votes
1
answer
75
views
Can revisions be returned from the API, filtered by user?
I see that question or answer revisions can be returned from the API either by post ID or by GUID.
I'd like to obtain this data filtered by user, e.g. "all revisions made by user X". However, I ...
4
votes
1
answer
205
views
API ignores jsonp callback after initial request - erroneous caching?
This bug is still prevalent, appears to be cache related. Two identical requests return different data: first request respects jsonp query parameter, all subsequent requests ignore it until (I presume)...
4
votes
1
answer
69
views
API 'search' method with 'min' parameter
If you search for questions posted on time 1296897085 or later (by specifying sort=creation and min=1296897085), it may still return questions posted before that date:
http://api.stackoverflow.com/1....
4
votes
2
answers
95
views
Document fields that may be not be included in responses
I'd like to see documentation on what fields may not be included in responses or, alternatively, which fields are guaranteed to be included. Currently it's a little confusing because some fields may ...
4
votes
1
answer
90
views
Is there a way to fetch my flag quota?
I would like to stop flagging when I start running low on flags. Is there any way the API can tell me not only the flag options, but also whether I have any flags left and if so how many?
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 ...
4
votes
1
answer
886
views
Wrong content-type in JSONP calls
When passing jsonp parameter, the API returns "application/json" instead of "application/javascript".
I found this because if you do:
<script src='http://api.stackoverflow.com/1.0/badges?jsonp=...
4
votes
2
answers
2k
views
What is the throttle interval or threshold?
Resolution:
I have confirmed that a constant interval of 170 ms will run without error.
// 30 per 5 sec = 6 per sec = interval 166.6 ms
Soapi.RequestQueue.setInterval(170);
Soapi....
4
votes
1
answer
146
views
AND searching for tags?
I am using the search api to search for questions that are tagged with "tags" and not with "tags". However I have noticed that searching for tags is an OR search.
The questions search for tags is an ...
4
votes
0
answers
69
views
Get total question views via API
I can currently get the total number of questions for a tag by using the total filter. This works well, but I'd like to get a total views count for the questions in that tag. I could iterate over each ...
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 ...
4
votes
0
answers
55
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 ...
4
votes
0
answers
91
views
How can I get unread messages for inbox testing? [duplicate]
I use /users/{id}/inbox/unread method to get unread items in a user's inbox. But how could I test it if I have no unread items in my inbox?
How can I get/generate unread messages for testing?
P.S. ...
4
votes
0
answers
58
views
API response doesn't indicate the nature of a rejected question POST
I have a question, which I post to Stack Overflow. The addition of the answer gets rejected and I know that it is due to the fact that I used the tag coredata rather than core-data.
When I do this on ...
4
votes
0
answers
62
views
Please add a "self answer" flag to the answer results/object
Is there an easy way to tell if an answer is from the question poster?
I'm working on Blaze, and I'm grabbing answers from the /answers method. I'd like to indicate if the answer is from the question ...
4
votes
0
answers
106
views
How to quickly retag a question from the API?
I'm playing with the write API, and I'd like to simply retag a question. This is the code I have so far:
$editURL = 'https://api.stackexchange.com/2.2/questions/' . $question->{"question_id"} . '/...
4
votes
0
answers
613
views
What should I put in redirect_uri for implicit OAuth 2.0
From the document I can't figure out what value should I put in redirect_uri if I want to implement iPhone app. I try https://stackexchange.com/oauth/login_success but it not work and show this error
...