Question related to StackExchange API usage
Questions tagged [stackexchange-api]
275 questions
0
votes
1 answer
stackexcange api get answer and comments and related qus. in single request?
stackexcange api get question answer and comments and related questions in single request ?
How to get Question Answers and Comments and Related questions in single query Possible ?
document : https://api.stackexchange.com/docs
I need get all in…

Santhosh
- 43
- 7
0
votes
1 answer
Stack Exchange API
After get the answer with API, we get an object without a body.
{
"items": [
{
"owner": {
"reputation": 31,
"user_id": 7256724,
"user_type": "registered",
"profile_image":…

sdfgsdgsgr
- 95
- 1
- 1
- 8
0
votes
1 answer
How to ask StackExchange for more results exceeding 30?
I'm using the Usage of /questions URI request to fetch a list of questions from stackoverflow.
https://api.stackexchange.com/2.2/questions?&order=desc&sort=activity&site=stackoverflow
This works, however it only returns 30 results. How do I specify…

ReyAnthonyRenacia
- 17,219
- 5
- 37
- 56
0
votes
1 answer
run query on stackexchange data using python
I am attempting to get a list to TOP n tags and its usage so far using python.
I can run this query on stackexchange site as below,
SELECT *
FROM Tags
WHERE ExcerptPostId is not NULL
order by Count
Desc
That gives me result as below,
Id TagName…

Anil_M
- 10,893
- 6
- 47
- 74
0
votes
1 answer
Calling StackAPI endpoints
Hi I am writing a small task to learn ,querying stackoverflow api
I want to achieve below
● Number of questions asked on that date
● Total number of views across all questions
● Distinct (i.e. no duplicates) comma separated list of the tags…

62071072SP
- 1,963
- 2
- 19
- 38
0
votes
0 answers
StackExchange API returning 400 with Node.js
One of my working code with node.js implementation of api.stackexchange.com has started returning 400 response code.
Can someone suggest what may be wrong ? Adding code sample and response object dump.
FYI, the GET call works in Chrome/Postman…

CodeMonkey
- 2,265
- 9
- 48
- 94
0
votes
1 answer
Python unicodeDecodeError on parsing a JSON url
I am using python 3.4 and trying to parse what seems like valid JSON output from a url. ex:
http://api.stackexchange.com/2.2/questions?order=desc&sort=activity&site=stackoverflow
This is what my code looks like
import json
from urllib.request…

user7342807
- 323
- 6
- 21
0
votes
1 answer
Getting All Questions from Stack Exchange API that are Accepted
I am a bit new with stack exchange API. I want to query all questions that have been asked that has an accepted answer. I know the /questions query returns an "is_accepted" key for each question but I tried to put in the URL "&is_accepted=true" but…

Paul
- 89
- 2
- 9
0
votes
1 answer
How to start buidling and app using stackexchange API as it does not support localhost?
How can I use Stackexchange API when it does not support localhost or any dev URL with port number?
It is very difficult to push code to Heroku as it was suggested in one answer on StackOverflow during development as it slows down development…

Sahil
- 3,338
- 1
- 21
- 43
0
votes
1 answer
How to use the request key while making http request to stackexchange api Angularjs
I have a request key but i do not know how to use it while making an http request. can someone give me an example. here is my code for the moment :
function getQuestionLinks(tag) {
return $q(function(resolve, reject) {
…

juliana Morales
- 177
- 3
- 3
- 10
0
votes
1 answer
file_get_contents() returns garbled data
I am trying to use the SO API (eg: http://api.stackoverflow.com/1.0/users/3) to get some data:
But the returned contents are garbled. I tested it on a…

999999
- 1,873
- 3
- 14
- 20
0
votes
1 answer
jQuery $.ajax - how do I build the get request for this API?
I am trying to make a call into this API and return a json object. I want to return an array of the top answerers for the tag that I pass in. I'm having trouble building the string in my $.ajax call.
Link to API - - >…

Defect Assassin
- 1
- 1
- 3
0
votes
1 answer
URL and parameter values to get user data from stackoverlow
in stackoverflow(stackexchange api, https://api.stackexchange.com/docs/authentication) it clearly mentioned about how to send user to the login page and get access token from it, but the details for accessing user data by using url and parameters is…

radhakrishnan
- 1,399
- 1
- 14
- 20
0
votes
1 answer
nodejs JSON.parse() of stack overflow API
Here is my code.
var request = require('request');
var API = "https://api.stackexchange.com/2.2/users?page=1&order=desc&sort=reputation&site=stackoverflow";
request(API, function(e//console.dir(body);
if( err || response.statusCode != 200 ) {
…

user4473065
- 63
- 6
0
votes
1 answer
gzdecode and file_get_contents in php vs curl
$url = 'https://api.stackexchange.com/2.2/answers/'.$id.'?order=desc&sort=activity&site=stackoverflow&filter=!-*f(6t*ZdXeu&key=MY_KEY';
gzdecode(file_get_contents ($url)) ;
this caused me problems today when I played with stackoverflow APIs

btlr.com
- 139
- 5