All Questions
300 questions
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....
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 ...
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&...
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
91
views
Get users based on location? [duplicate]
I want to get site users by their location but I don't see any method for that.
And it's not possible with a filter either.
Is there any way to get users based on location or is it not possible?
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....
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....
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 ...
3
votes
1
answer
328
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 ...
1
vote
1
answer
89
views
Absence of `order` and `sort` in rest calls?
Will absence of order and sort give the same result as order=desc and sort=activity always in every call (it is default in every call)?
1
vote
1
answer
95
views
Why is the `site` parameter required in `/me` call?
I want to query information about the logged-in user using me, and this site parameter is creating some small problems.
I am developing a visual studio extension where upon logging in a user will get ...
1
vote
1
answer
50
views
`types=main_site` in `/me/associated` gives `meta_site` accounts also
When I run /me/associated with main_site as a parameter in types, its gives meta_site accounts also (Meta Stack Exchange profile).
2
votes
1
answer
52
views
Why is `page` and `page_size` returned in common wrapper object?
page and page_size returned in common wrapper object, if I run /me/associated request. Why is it so? I am asking this because we have already sent these parameters as request. So getting the same ...
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?
32
votes
1
answer
11k
views
Looking for a beginner's tutorial to using the API
I see the Stack Exchange API but I'm unable to understand it. I don't think there is any fundamental tutorial showing how to use Stack Overflow fully in the API documentation.
I want some fundamental ...
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 ...
1
vote
1
answer
2k
views
Unable to decode HTML entities in the API response?
I am trying to decode HTML entities from the JSON data returned by the Stack Exchange API but it's not working.
I have used both html_entity_decode and htmlspecialchars_decode but it doesn't effect ...
5
votes
1
answer
198
views
Is there a way to specify how long I want an access token to be valid for?
I am following the explicit authentication path. I am not passing no_expiry as part of the scope.
After the final POST step, I receive back an expires value of 86399 (just shy of a full day).
It ...
1
vote
1
answer
125
views
I want a python program example for more requests a day
How can I make about 10k requests on
https://api.stackexchange.com/2.2/users/+J+/questions?order=desc&sort=activity&site=stackoverflow
using python program in a day. Where J is variable ...
2
votes
1
answer
60
views
Advanced search doesn't return expected results when using min & max (dates) together?
I want to use the Advanced Search API to get the same results as the Stack Overflow site search.
With it, I can see new questions on 11/10/2015.
When I tried to craft a query using the Advanced ...
3
votes
1
answer
56
views
Reputation_change has the historical total rather than the daily delta?
I'm trying to use the reputation API to get the recent reputation delta for a given user. For example, looking at recent entries for /2.2/users/21539/reputation, one has:
{
on_date: 1447018487,
...
1
vote
1
answer
111
views
How to get all questions with a specific tag between certain dates
I would like to get all questions created and tagged with tag "R" between 2 dates.
I'm using parameters: tagged = R, sort = creation, fromdate and todate set to appropriate dates and site = ...
5
votes
1
answer
56
views
Do calls on the 1.1 API and the 2.0 count against each other's limits?
Do the old 1.1 API and new 2.0 share limits?
Or do my Stack Apps running on 1.1 calls not affect my limits for apps running on 2.0 calls?
3
votes
1
answer
34
views
Top answers for a tag is returning user details?
I am expecting top answers for a particular tag here. But it returns user details.
Is anything wrong here?
Using:
/2.2/tags/java/top-answerers/all_time?site=stackoverflow
3
votes
1
answer
72
views
How to get the 10 most recent questions with accepted answers based on a given tag?
I am trying to figure out how to get the 10 most recent questions from the Stack Overflow site, that have been answered, based on a given tag (such as 'Java').
I looked at the documentation but I ...
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 ...
3
votes
1
answer
201
views
Search for answers/comments under questions with certain tags using the Stack Overflow API?
The advanced search (/search/advanced) API can search for questions by tags.
But /users/{ids}/answers API doesn't take tags.
I'd like to monitor answers/comments for questions with certain tags. Is ...
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
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 ...
5
votes
1
answer
113
views
How to include answers when fetching questions?
I made a small cron job which crawls questions and answers from Stack Overflow.
Here is my request URL:
https://api.stackexchange.com/2.2/questions?order=desc&tagged=php&site=stackoverflow&...
9
votes
1
answer
4k
views
List all tags in use on stackoverflow
I am trying to list all tags used on stackoverflow here: http://api.stackoverflow.com/1.1/usage/methods/tags and I cannot seem to list all.
How do I do it?.
3
votes
1
answer
142
views
Questions with specific tag and specific text inside questions
So I am able to get questions with specific tags, but still not able to get questions which have specific text and a specific tag.
For example if I want to get all the questions with text "api" in ...
3
votes
1
answer
254
views
Encoding problem while accessing the API using Java
Trying to call an API URL from a Java application, I'm having problems accessing the contents of the URL.
I can access other sites through my program but not the Stack Exchange site.
But I can call ...
3
votes
2
answers
258
views
Is there an api to post questions without using the websites interface?
I wanted to post questions after a proper user authentication explained here. Is there anyway I can do this?
2
votes
1
answer
55
views
Where is "items" & "badge_counts" documentation?
Where is the items & badge_counts documentation?
This is returned as JSON. I am using the /me/associated query function.
6
votes
2
answers
435
views
Odd String Format Result from API Call
I'm just getting started messing around with the SO API. I haven't worked with JSON before, and I am getting a strange result from a basic call (No API Key).
WebClient stackClient = new WebClient();
...
3
votes
1
answer
59
views
Some blank properties missing
I am using /me/associated. I haven't posted any question in one account, so the response comes as:
"top_questions": [],
"top_answers": [],
"question_count": 0,
"answer_count": 0,
in the same browser ...
3
votes
0
answers
170
views
What's the proper way to fetch the score of all answers of SO?
I wrote a small program querying the SE API to grab the public scoring data of all SO answers (excluding the last 3 days).
Basically the request I do gets me this:
Questions[]:
Id
Title
...
-4
votes
1
answer
116
views
I Cannot Perform Oauth [closed]
My Clientn id = 4784
and Key = cB0l6XiaOW5l5vsBnBeIUg((.
What do I do for Oauth and to get an access token?
6
votes
0
answers
79
views
How to get unread reputation changes via the API?
I want to write a desktop widget that checks the Stack Exchange API every several seconds and tells me if there are any new reputation changes. I can't figure out what API method I can use for that.
...
0
votes
1
answer
88
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
603
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 ...
6
votes
2
answers
360
views
How to get a User's picture (Avatar)
I've seen a couple of Stack Apps that have the actual picture for the user profile. Is that coming from the API, and if so how? If not I'm assuming they are using some screen-scrapping to get that ...
1
vote
1
answer
2k
views
json with list of all user's on stackoverflow
I am trying to get the list of all user's in JSON format (as provided by the API) (using jQuery jsonp)
What I found is:
pagesize – The number of collection results to display during
pagination. ...
3
votes
1
answer
146
views
How do I add newlines when editing a post body via the API?
I am editing the tags of a question via the API, and to do that you have to pass the body and title etc.
I can get the Markdown or HTML from the API but I can't see how to send it back formatted ...
0
votes
0
answers
47
views
How to get all posts that a user voted on? [duplicate]
I know how to get all questions that I favorited using /docs/me-favorites.
But, how can I get all answers (or questions) that I voted on? Like those in the upvote history.
3
votes
2
answers
449
views
What is the correct way to get the stackoverflow.com URL for an answer via the API?
A while ago I made a little "Recently answered on Stack Overflow" sidebar widget for my homepage. Currently this works by filtering answers out of the user feed however I thought I'd update it to make ...
3
votes
1
answer
2k
views
How to get Question/Answer body in the API response using filters?
I am specifically looking to get the question/answer body back. Is it possible?
I am looking through the API documentation and I'm confused about how to make a call with filters.
Sample call I'm ...