Questions tagged [stackexchange-api]

Question related to StackExchange API usage

Homepage

275 questions
4
votes
1 answer

How to adjust the number of results returned when querying the Stackoverflow API?

I'm using the Stackoverflow JSON API to retrieve questions marked with a given tag. I have this small program in Java which retrieves questions marked with the "Java" tag. public static void main(String[] args) throws Exception { String…
EijiAdachi
  • 441
  • 1
  • 3
  • 15
4
votes
1 answer

Getting null as response from Stack Overflow API with PHP

I use this code for PHP to get Stack Overflow reputation. $feed = json_decode(file_get_contents("http://api.stackexchange.com/2.1/users/22656?order=desc&sort=reputation&site=stackoverflow&filter=!*MxOyD8qN0Yghnep", true), true); $array =…
user1947561
  • 1,117
  • 2
  • 8
  • 13
3
votes
1 answer

How can I use custom filters in the Stack Exchange API?

I am trying to get the questions and answers from StackApi to train a deep learning model. I have the problem that I don't understand how to use the custom filters so that I only get the body of the question. This is my code: from stackapi import…
Neminem
  • 33
  • 3
3
votes
0 answers

How to sort by view count using Stack Exchange API in python?

So, I made a query using Stack Exchange Data Explorer: SELECT TOP 100 Id AS [Post Link], ViewCount, AnswerCount, FavoriteCount, CommentCount, Score, Tags FROM Posts ORDER BY ViewCount DESC It returns just what I need, but I need to retrieve this…
atokzz
  • 63
  • 3
3
votes
1 answer

How to extract the accepted and the top voted answer of a question from SEDE?

I am writing a query to extract questions and answers from Stack Overflow Stack Exchange Data Explorer using the following query: SELECT Top 2 q.id, q.Title, q.Body q_body, q.parentid qpid, q.AcceptedAnswerId, q.Score q_score, q.AnswerCount,…
zeal
  • 465
  • 2
  • 11
  • 22
3
votes
2 answers

How to watch for changes automatically in a API Endpoint with Vue?

I’m building an app that uses Stackoverflow’s API to get the last question of a certain tag & ouput it on my app. I have been able to get the last question on the specific tag, but now I want that automatically detect changes in the API Endpoint &…
Manuel Abascal
  • 5,616
  • 5
  • 35
  • 68
3
votes
1 answer

How to get the number of unanswered questions by tag from stackoverflow api?

There is a call that return the number of total questions by tag https://api.stackexchange.com/2.2/tags/java/info?order=desc&sort=popular&site=stackoverflow But how would you get the number of unanswered questions by tag?
Sergino
  • 10,128
  • 30
  • 98
  • 159
3
votes
1 answer

How to get the body of an answer using the Stack Exchange API?

I am using StackAPI to get the most voted questions and the most voted answers to those questions:- from stackapi import StackAPI SITE = StackAPI('stackoverflow') SITE.max_pages=1 SITE.page_size=10 questions = SITE.fetch('questions', min=20,…
Shashishekhar Hasabnis
  • 1,636
  • 1
  • 15
  • 36
3
votes
1 answer

How to download code using TortoiseHg (Mercurial)

I am trying to download the code theworldsworststackoverflowclone. At first I have tried with Tortoise SVN but later get to know that hg command is not supported. Now I downloaded Mrcurial and TortoiseHg 2.0.2 with Mercurial 1.8.1 - x64 Windows and…
Simsons
  • 12,295
  • 42
  • 153
  • 269
3
votes
2 answers

Date parameters do not seem to work for the Stack Exchange API's tags endpoint

If I request tag info without specifying fromdate/todate parameters, I get back some data. EG: { "has_synonyms": true, "is_moderator_only": false, "is_required": false, "count": 1199408, "name": "c#" } But if I use the…
Moh Moh Oo
  • 269
  • 1
  • 3
  • 19
3
votes
1 answer

How to get badge info using the stackr library for the API?

I would like to use the Stack Exchange API with a specific user id to get the text of a user's badges. I found the stackr library for the Stack Exchange API, and tried this: #…
Pozmanski
  • 181
  • 11
3
votes
0 answers

AppAuth, Redirect URI, Stackexchange, Instagram API

I want to make OAuth2 authorization. I use : implementation "net.openid:appauth:0.7.0" I have studied many examples (Google Codelabs, AppAuth etc). I also studied RFC 8252. I wanted to apply this to Stackexchange and Instagram OAuth API. I…
tim4dev
  • 2,846
  • 2
  • 24
  • 30
3
votes
1 answer

How do I retrieve the actual date from the StackOverflow API *creation_date* field?

How do I retrieve the actual date from the StackOverflow API creation_date field? The date depicted via their API is an integer: "creation_date": 1288523078 However, I would like to convert the integer into an actual DateTime value. I saw this…
Scott Nimrod
  • 11,206
  • 11
  • 54
  • 118
3
votes
1 answer

What does "!)V)MSZJUgX_" mean in Stack API filter?

I was looking into Stack API doc and found the following API call. https://api.stackexchange.com/docs/comments#order=desc&min=1&sort=votes&filter=!)V)MSZJUgX_&site=stackoverflow&run=true I understand all parts but filter=!)V)MSZJUgX_. Apparently…
Layray
  • 105
  • 1
  • 2
  • 9
3
votes
1 answer

How to get data from stack exchange site

I need to get data from specific stack exchange site. How can I do this most efficiently? Can I use some kind of API? I need to save them into some kind of database.
PeterB
  • 2,234
  • 6
  • 24
  • 43