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.
454 questions
1
vote
1
answer
94
views
Typo in throttle violation error message
I was just playing around with the API locally and got throttled for the questions and answers methods (the only two I was using).
Anyway, I noticed there’s a small typo in the error message that’s ...
1
vote
1
answer
107
views
How many simultaneous queries may I make of the same Stack Exchange API?
I've been playing with some of the APIs that have paged results.
I've been doing a first call with pagesize=0 to determine how many pages there are then running a loop querying each page.
In my case ...
1
vote
1
answer
60
views
Add revision diffs to API?
This may be a bit of a stretch, but I was wondering if it could be possible for the API to return the diff between two revisions? Or the next best option, to have the API return the markdown value of ...
1
vote
1
answer
121
views
fromdate is ignored for /posts/{id}/comments requests
The api docs:
http://api.stackoverflow.com/1.0/help/method?method=posts/{id}/comments
The test request.
You can see comment itself here, it's four months old, while cutoff date in request is less than ...
1
vote
1
answer
177
views
How to search all Questions & Answers on specific keyword with PHPstack library?
I am trying to build a page specific to one keyword which should pull all the questions and their respective answers from Stack overflow. I tried phpstack 1.1.1, but no luck. I saw a
function search(...
1
vote
1
answer
62
views
questions/id is sometimes missing an owner?
Every once in a while when I query: http://api.stackoverflow.com/1.0/questions/id I get a question back that is missing the owner field. Is this expected? I haven't seen anything about owner being ...
1
vote
1
answer
91
views
Pro Webmasters Meta API not working.
Try this:
http://api.meta.webmasters.stackexchange.com/0.9/questions?type=jsontext
I can't get it to work, even though it's listed in StackAuth.
1
vote
1
answer
103
views
/users/{id}/tags - broken
looks like touching the id parameter description broke the internet.
http://api.stackoverflow.com/0.8/users/242897/tags
should/was working
6/1/2010 -1:11AM - working
1
vote
1
answer
13
views
Does Stack Overflow have an MCP server?
Does Stack Overflow have an MCP (model context protocol) server?
1
vote
1
answer
74
views
Obtaining all tagIds given a list of tag names in API v3
I am a Stack Overflow for Teams app developer, and given this recent announcement that API v3 is being extended to the public platform, I am hoping we can start asking API v3 questions here.
Given a ...
1
vote
0
answers
38
views
Obtaining all questions and their answers for a given set of tags in API v3
I am a Stack Overflow for Teams app developer, and given this recent announcement that API v3 is being extended to the public platform, I am hoping we can start asking API v3 questions here.
Given a ...
1
vote
1
answer
131
views
Why are Stack Exchange API methods named like this
I'm curious about https://api.stackexchange.com/docs .
I looked up and studied the naming convention to make a REST api.
I've seen that in the naming convention, don't use verbs and in the case of the ...
1
vote
0
answers
41
views
Add API method for network-wide search
Just like stackexchange.com has a networkwide search, it would be nice to have an equivalent of excerpt-search which searches the entire network at once. That would save me 360 calls (per-site metas ...
1
vote
0
answers
752
views
How does 1 request every 5 seconds exceed the 30 requests per second limit?
I'm doing a run every 5 seconds for this API call:
url = "https://api.stackexchange.com/2.3/questions/no-answers?pagesize=30&fromdate={date_today}&order=desc&sort=creation&site=...
1
vote
1
answer
91
views
Using API to collect tag information - data differences
I am trying to get a list of the most popular tags on Stack Overflow.
According to the SO page, these are the most popular tags as of today:
The Python tag has 6690 questions asked this week alone.
...
1
vote
1
answer
118
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
0
answers
153
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 ...
1
vote
1
answer
260
views
Implicit OAuth authentication is not redirecting
I'm trying to build a simple iOS application , with login feature to stack overflow network.
I've read the documentation and choose to use Implicit OAuth2.0.
I've already registered an StackApps, so ...
1
vote
0
answers
241
views
Attribute error while using the stackoverflow api wrapper for python on IDLE
This is the code that I use to access Stack Overflow:
from stackexchange import Site, StackOverflow
so = stackexchange.StackOverflow()
for q in so.questions(pagesize=50):
print q.title
It runs ...
1
vote
0
answers
54
views
Overwhelmed by unorganized information [duplicate]
As you can see I am a newbie, and trying to use Stack Exchange API for a school project.
I spent 3 hours just trying to understand How to get started. Is there an example for me to follow? or A ...
1
vote
0
answers
32
views
Get tags from question through an answer [duplicate]
I'd like to use this function: /users/{ids}/answers to get a list of answers from a user.
The key element that I need though is what the question was tagged as, is there a possibility of having ...
1
vote
0
answers
581
views
Why does the web service fail sometimes for the Stack API?
It seems to have happened all of the sudden. My calls to the web service fails. What is the limit of calls per day with a registered app? I can't seem to remember where it says that, I can't seem to ...
1
vote
0
answers
87
views
Would it be a problem if my server polls the API every minute or so about 1 of my questions on my list?
I know that officially identical requests cannot be done in more than one minute.
But would it be a problem if I had a server which had a list of question IDs (say 10 per user, so reasonable max 10,...
1
vote
0
answers
80
views
Wrong API response?
Well, if you look here, you'll see i have
"down_vote_count": 94,
But if you look here on my Stackoverflow profile, you see that my down vote count is 64.
For those who would ask if I'm sure ...
0
votes
2
answers
166
views
Questions with accepted answers
I know that you could technically loop through the answers returned when you ask for /questions/{id} to see if an answer has been accepted, but it would be AWESOME if there was a top level boolean ...
0
votes
1
answer
287
views
Post to Stackoverflow
Is it possible to post a question to Stack Overflow using PHP in the same way that it's possible to post content to Facebook?
0
votes
1
answer
100
views
Searching answers with API
I'm very new to the API and I was looking for a way to get answers of a user. E.g. something like if you click on a tag in your tags section of your profile.
For questions this seems to be quiet easy ...
0
votes
1
answer
70
views
r.e. /stats fields.
I see we are getting some meta data in stats now. This is good.
I see the api path in there, but I have to assume that it is simply part of the record that is being output and is not intended as a ...
0
votes
1
answer
273
views
How do I handle token expiration in my application?
This request is responded to with either an error (HTTP status code 400) or an access token of the form access_token=...&expires=1234. expires will only be set if scope does not include no_expiry, ...
0
votes
1
answer
81
views
Specific Response attributes [duplicate]
I want to get questions related to a specific tag with the body of those questions. I have figure out this API request:
https://api.stackexchange.com/questions?site=stackoverflow&sort=votes&...
0
votes
1
answer
632
views
400 Error when attempting to retrieve authenticated user data
I am attempting to use the /me API to retrieve an authenticated user's details but I am receiving a 400 error.
I am able to complete the OAuth2 dance and have been able to capture the access token ...
0
votes
1
answer
105
views
Coding error at open URL
Hi,
I have the following method to open a URL API
String c="";
URL direccionURL;
try {
direccionURL = new URL("http://api.stackoverflow.com/1.0/users/523725");
BufferedReader in = new ...
0
votes
1
answer
170
views
API responses are sometimes missing fields
conclusion
never mind. the fields are marked as optional in the spec. it was late. sue me.
the q is left for reference
What is coming out:
{
"tags": [
"cakephp",
&...
0
votes
1
answer
49
views
/questions/unanswered and /tags allow id parameter, but it does nothing
The /questions/unanswered and /tags queries both document (as required) and allow an "id" parameter. You can use it as /questions/unanswered?id=1;2;3, but it does nothing (that I can tell) and doesn't ...
0
votes
1
answer
111
views
Should we add review queues to the API?
Review queues are unsupported on the Stack Exchange API, and it could be useful to write an app that would review. Should we add it to the API?
0
votes
1
answer
175
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 ...
0
votes
1
answer
83
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?
0
votes
1
answer
99
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 ...
0
votes
1
answer
509
views
Get UserId by passing email ID in the Stack Exchange API? [duplicate]
The Stack Exchange API is mostly based on 'ids'. IE
/2.2/users/{ids}/top-tags?site=stackoverflow
How can we get {ids} for a particular user using his email id or name? Is there any method available ...
0
votes
1
answer
117
views
How to use the API to show the user reputation? [duplicate]
How do I use the Stack Exchange API to let my users enter their Stack Overflow URL and then extract their reputation and show it in a profile controller in Rails?
0
votes
1
answer
65
views
What about actually identical requests?
Now, it says here that I should not make lots of semantically equivalent requests. It also says that there is a lot of caching. So I was wondering, what about exactly identical requests. Should I wait ...
0
votes
1
answer
75
views
Support for OR constraint when querying questions based on tags [duplicate]
Right now, there is no way (as far as I know) to query for questions based on multiple tags using an OR constraint.
You can query for questions tagged with multiple of these tags, but not with one or ...
0
votes
1
answer
53
views
Sort options explained
I have read the doc here but I'm quite confusing because I still don't understand the semantic behind each options. Would you like to detail the different options ?
activity (default)
votes
creation
...
0
votes
1
answer
373
views
What's the best way to mashup a social network with StackOverflow?
I’m experimenting with an integration project where I mashup a user’s LinkedIn connections and StackOverflow activity. Are there any relevant APIs on StackOverflow that could be used to integrate ...
0
votes
2
answers
108
views
Scratch Pad Wiki Question
This q is for use by anyone who needs to modify, add or delete an answer or to modify the q to update the last_activity field.
Leave this description, but otherwise have at it.
0
votes
0
answers
69
views
MyStackBot – A Simple Bot to Post and Fetch Stack Overflow Answers via API
App Name: MyStackBot
Client ID: 34374
API Key: rl_eaYQSUfy93Eei7G5Z8R8E8t9d
This app allows a user to:
Fetch their answers from Stack Overflow
Post new answers to questions using the Stack Exchange ...
0
votes
0
answers
35
views
My Stack Overflow Answer Posting Bot
I’ve built a tool that allows programmatically posting answers to Stack Overflow using the StackExchange API.
🛠 What it does:
Uses the /answers/add method to post HTML-formatted answers under ...
0
votes
1
answer
208
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-...
0
votes
1
answer
91
views
Total number of superuser users...
Hi all,
I am probably doing something wrong but there seems to be a discrepancy between the data-explorer and the API. For instance,
This query has a total of 48048.
http://api.superuser.com/1.0/...
-2
votes
1
answer
82
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 ...