Questions tagged [stackexchange-api]

Question related to StackExchange API usage

Homepage

275 questions
1
vote
1 answer

StackOverflow API and PHP CLI and JSON

I'm new to JSON and APIs and I want to make a PHP CLI script that will use StackOverflow API. I've made myself a key and this is my code so far:
Mpampinos Holmens
  • 1,879
  • 5
  • 18
  • 34
1
vote
1 answer

How can I collect all questions with a specific tag?

I'm trying to use the Stack Exchange API to collect all questions under a specific tag using this code: library(stackr) df_r_questions <- stack_tags("python","questions", num_pages=1000000, pagesize=100) However I receive this error: Error in…
Erik Brole
  • 315
  • 9
1
vote
1 answer

Failed to log in to a website to scrape my profile name using apps script

I've been trying to log in to this website using my credentials in order to scrape my profile name using google apps script. The status code is 200 and I can see that the script is able to get cookies. However, I get Undefined as result instead of…
1
vote
1 answer

How to get the Stack Overflow rank of a user using the Stack Exchange API?

I want to create a React component that fetches data from Stack Overflow of a specific user. I haven't had any issues to get: reputation, answers, badges, etc. using Stack Exchange API v2.3 but I'm having a hard time trying to implement an API that…
Gass
  • 7,536
  • 3
  • 37
  • 41
1
vote
2 answers

How can I get the markdown content of an accepted answer with the StackExchange API?

I'm trying to get the markdown body of an accepted answer making this request: https://api.stackexchange.com/2.3/search/advanced?accepted=True&title=length%20undefined&is_answered=True&site=stackoverflow
user11740269
1
vote
1 answer

How can I search questions by titles using the StackExchange API?

After seeing the StackExchange API documentation I have tried the following in order to search questions by titles: from stackapi import StackAPI import json SITE = StackAPI('stackoverflow') SITE.page_size = 30 SITE.max_pages = 1 questions =…
mostlycryptic
  • 197
  • 1
  • 6
  • 20
1
vote
1 answer

How to add additional information in User-agent in jQuery ajax?

I read about this here and here, but still I couldn't figure out how to do it in jQuery ajax. I tried the code from one of the answers of the questions I linked, but it discarded the user agent override: $.ajax({ url: "http://blablabla.com/", …
Vikas
  • 720
  • 1
  • 9
  • 30
1
vote
1 answer

How to get tags of the question given a comment id using the Stack Exchange API?

I have a comment id and I'm trying to get the tags of the parent question. The comment might be under a question or an answer. How can I use the API to do this?
Terry Windwalker
  • 1,343
  • 2
  • 16
  • 36
1
vote
1 answer

Add a filter to view answer body with StackAPI for Python

I am using StackAPI (python wrapper) to extract data from Stack Oveflow. Everything works perfectly except when trying to add a filter. SITE = StackAPI('stackoverflow', key=) answers = SITE.fetch('questions/{ids}/answers?filter=!9_bDE(fI5',…
akalanka
  • 553
  • 7
  • 21
1
vote
1 answer

How can I retrieve the top rated answer given a question id?

I want to retrieve top rated answer given the questions id. API documentiation states that one can get all answers matching "a set of ids" from a site using the answers/{ids} method. I have tried to the following URL:…
teslae
  • 239
  • 1
  • 5
1
vote
1 answer

Trying to access Stack Oveflow Api using Vue.js getting error

console error : code to reproduce error: var request = require('request'); var url = 'http://api.stackexchange.com/2.2/https://stackoverflow.com/questions'; request({ headers: { 'Accept': 'application/json; charset=utf-8', 'User-Agent':…
user9542422
1
vote
1 answer

How to query all the new tags created last week from Stack Exchange data Explorer?

I want to query SO new tags created during last week. We have tables Posts,Tags, PostTags (leave out TagSynonyms for now). Tags doesn't have CreationDate so we probably need to use join with min(Post.CreationDate) last week = getdate() - 7
kambi
  • 3,291
  • 10
  • 37
  • 58
1
vote
1 answer

Implicit Grant Type - How to acces the stackexchange API

I'm trying to acces the Stackexchange API via OAuth 2.0 implicit flow in a simple java Desktop application. I already got an non_expiry acces_token via URL. I'm not into OAuth and everything I've tried so far didn't get me any further. Here's what I…
fischbrot
  • 33
  • 7
1
vote
1 answer

Get the link of question and answer at user level using Stack Exchange API

Based on my previous question, I am able to get the list of all unaccepted answers within a date range at the user level using Stack Exchange API with the following curl command : curl…
ESCoder
  • 15,431
  • 2
  • 19
  • 42
1
vote
2 answers

How to get all the questions asked by a specific user from the Stack Exchange API?

I'm trying to get all the questions with details from Stack Exchange API for a given user ID using following code: response = requests.get("http://api.stackexchange.com/2.2/users/2593236/questions?") However, I receive this error…
SjAnupa
  • 102
  • 10