Skip to main content

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.

Filter by
Sorted by
Tagged with
1 vote
0 answers
121 views

A step by step approach for posting questions and answers?

I am trying to learn a step by step approach for posting questions and answers on stackoverflow.com using the Stack Exchange API. Could someone help me with this?
Anand Kamathi's user avatar
-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?
SOURABH DOLIYA's user avatar
4 votes
1 answer
288 views

Can not request info after OAuth

I am following The implicit OAuth 2.0 flow Guide: My client ID is 4709 while key is RoZwtHUrhMP088oVGCMlxA(( I appended my URL as: https://stackexchange.com/oauth/dialog?client_id=4709&scope=...
Zigii Wong's user avatar
7 votes
1 answer
216 views

Add the 'people reached' count to the API?

Can we have the people reached statistic added to the /users/{ids} method? The response could simply be: "people_reached": 1000 I'm asking because it would be cool to get a network-wide number.
ᔕᖺᘎᕊ's user avatar
  • 4,385
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.
qqibrow's user avatar
  • 117
2 votes
1 answer
54 views

How to get up_vote_count and down_vote_count for a user?

I'm testing the following command: $ curl -s "http://api.stackexchange.com/2.1/users/55075?&site=stackoverflow" | gunzip -d | python -m json.tool However it doesn't return up_vote_count and ...
kenorb's user avatar
  • 173
3 votes
1 answer
980 views

How can I extract user information on Stack Overflow using Python and the Stack Overflow API?

I am new to Python. I want to extract a user bio, answers, questions they made in Stack Overflow. Can I do that using the API? For example, can I extract the user: name bio and number of questions ...
Mohan Krishna's user avatar
3 votes
1 answer
124 views

Help with javascript SDK configuration

The following problem is REAL! All names have been changed to protect the innocent. I have a site at "http://Something.github.io/MyRepository/Directory/index.html" And I have my app configured like ...
Jack Sprat's user avatar
5 votes
1 answer
118 views

404 "This Method cannot be called this way" when getting user's inbox

I'm doing a POST request to https://api.stackexchange.com/2.2/users/<id>/inbox to get the users' inbox items. However I'm getting a 400 error on the request, and a JSON body saying it was a 404 ...
Erik Elkins's user avatar
12 votes
0 answers
158 views

Are there plans to involve Area51 in SE API version 3?

Several applications come to mind, proposal publicity, question analysis, making resources files, but I can't find any SE API calls that can do this.
JMP's user avatar
  • 345
5 votes
1 answer
148 views

The StackWrap4J java wrapper gives nothing but `JSONException`s?

I'm using the StackWrap4J java wrapper for the Stack Overflow API. But every code I try, that uses methods of this java wrapper, ends with this JSONException: net.sf.stackwrap4j.json.JSONException: ...
Doron Tro's user avatar
2 votes
1 answer
68 views

Where are the built-in filters?

On api.stackexchange.com/docs/create-filter it states: there are a number of built-in filters which cover common use cases. Where can I find them? Can you make built-in filters a link? I need ...
RickAndMSFT's user avatar
3 votes
0 answers
86 views

Fetch the Personalized Prediction Data through the API?

Is it possible to get a user's personalized prediction data in an automated way? I'm building a graphical visualization of this data, you can check the project here: http://jlhonora.github.io/...
jlhonora's user avatar
  • 131
2 votes
0 answers
313 views

Array boolean values are returning empty

I am trying to convert a JSON array to a PHP array, and the boolean values are being lost. I think I need to loop round using foreach() and cast the items as they are placed in to the new array, but I ...
EntityPaul's user avatar
4 votes
1 answer
52 views

Limiting the number of items returned by a request?

How can I limit the amount of items returned to me when performing an API call? I only want the top 10 most commonly used tags, by default I'm sent back 30. EG: api.stackexchange.com/2.2/tags?order=...
EntityPaul's user avatar
6 votes
1 answer
9k views

'The target origin provided does not match the recipient window's origin' message when trying to use localhost

I am trying to experiment with the Stack Overflow API on my localhost and am struggling to get the authentication to complete. Here is my application JavaScript code (note that I am using IBM ...
MDalt's user avatar
  • 161
6 votes
1 answer
140 views

API throws improper error when "date" parameters are the same

When using the Stack Exchange /questions API using the same date for fromdate and todate I get a 500 internal server error. Using different dates appears to work OK but specifying the same value ...
Andy Clark's user avatar
6 votes
0 answers
434 views

Resurfacing bug: "could not parse proxy url" error message

According to this question, the "could not parse proxy url" bug was solved more than 2 years ago. However, when using the client-side OAuth flow, the aforementioned error message appears when ...
Linostar's user avatar
  • 161
3 votes
1 answer
110 views

Question's body rendering in Android's webview

I've developed an app that get questions from Stack using REST APIs and shows them in a WebView. My problem now is that the body often contains placeholders that must be "replaced" with the real ...
motoDrizzt's user avatar
2 votes
0 answers
64 views

How can I show recently answered questions and answers in my blog site?

I would like to showcase some of my Stack Exchange answers in my blog site. I couldn't find a relevant post on how to implement this. Also, from what I can see, in order to use the API a user needs ...
Rajeev K Tomy's user avatar
2 votes
1 answer
645 views

Unable to download data from the API using UNIX wget?

I want to download the JSON data from this sample API call into a file. I tried using wget, like so: wget -O ~/ks/json.txt "http://api.stackexchange.com/2.2/search/advanced?pagesize=5&fromdate=...
K S Nidhin's user avatar
2 votes
1 answer
81 views

Obtain JSON equivalent of a full Q&A HTML page?

I want to write an application for which, after some logic to select a set of questions, it would be most convenient to get the whole set of stuff at once that is normally shown on a Stack Exchange Q&...
Lutz Prechelt's user avatar
0 votes
1 answer
484 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 ...
Anuraj's user avatar
  • 145
4 votes
1 answer
117 views

What's the difference between the Stack Exchange API and the Stack Overflow API?

I heard about the Stack Overflow API. Is there a Stack Overflow API available. Or is it the same as the Stack Exchange API?
Anuraj's user avatar
  • 145
5 votes
1 answer
75 views

Which reputation events are private?

I've been reading the API documentation on retrieving a user's reputation history (docs/types/reputation-history) and Stack Overflow's description of how reputation is calculated. But, I can't find ...
Andrew's user avatar
  • 153
3 votes
0 answers
47 views

/answers API request returns no tags if body_markdown is included [duplicate]

This API request to /answers has the filter set to return the tags field for the corresponding question. It works fine: api.stackexchange.com/docs/answers#filter=!9YdnSPElz But, when the filter is ...
Boann's user avatar
  • 131
4 votes
0 answers
55 views

Can I ask the API to tell me to back off? [duplicate]

I'm creating a bot that collects all tags from a given site (and over all sites in the network). I would obviously like to run this bot in as little time as possible, but I also do not want to overly ...
Sean Allred's user avatar
12 votes
2 answers
185 views

How to get data related to Winter Bash?

I was thinking of creating a nice question on Programming Puzzles & Code Golf related to Winter Bash 2014, but I need some specific data for that question - The number of hats of each user. Is ...
Optimizer's user avatar
  • 309
2 votes
2 answers
105 views

Total Number Of Answers

I need to find the total number of answers submitted by a user on stackoverflow. I tried the following: I got my json from the following: https://api.stackexchange.com/users/2440312/answers?site=...
Aaditi Jain's user avatar
2 votes
1 answer
111 views

"We are no longer accepting questions from this account.". Error with write access, using the API

I have created an application for testing write-access APIs. After registration, I can successfully retrieve an access token by hitting the URL: https://stackexchange.com/oauth/dialog?client_id=3973&...
user2621858's user avatar
0 votes
0 answers
880 views

How to get my StackOverFlow API Key [duplicate]

I used to login in StackOverFlow site using my Gmail Id/password.How I will get my StackOverFlow API key? I require that key to fire a StackExchage API which requires authentication. Also, could ...
user2621858's user avatar
3 votes
1 answer
54 views

How can I access all questions asked by an arbitrary user?

Within the web app for courses I organize, I'd like students to be able to provide their Stack Overflow username, so that we can pull in their most recent and unanswered questions. This information is ...
Chris Fritz's user avatar
1 vote
1 answer
245 views

StackExchange API's request data is blank in Drupal 7

I'm trying to implement this simple request in Drupal 7 on my local machine: $request = drupal_http_request('https://api.stackexchange.com/2.2/users?order=desc&sort=reputation&site=...
Djouuuuh's user avatar
  • 173
3 votes
1 answer
115 views

Is developing, with the Stack Exchange API, possible on my local machine?

I'm sorry if this question seems trivial for the most of you but I'm not very familiar with OAuth and the Stack Exchange API. Is it possible to use this API in local environment for the development ...
Djouuuuh's user avatar
  • 173
5 votes
0 answers
141 views

Filter doesn't consistently return comment bodies

I've been trying to set up a filter I can use with /questions/{id}/answers/ (using the UI at this link), which returns the following fields: answer: answer_id body_markdown comments ...
Martin Ender's user avatar
0 votes
0 answers
80 views

"error_id":500,"error_message":"this error has been logged","error_name":"internal_error"

I developed an application, user can give vote down or up to question or comments but when I send the request to the API of the stackexchenge the response it is not true and this back to me error ...
hesam's user avatar
  • 31
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?
frustrateddeveloper's user avatar
2 votes
2 answers
669 views

Is it possible to create a private Q&A site using the Stack Exchange API?

I want to create a sort of private Q&A site to allow university students of the same courses to communicate. Is it possible by using the Stack Exchange API?
Fabio Fiorella's user avatar
4 votes
1 answer
67 views

Syntax for Adding a Question as a Favorite?

I would like to be able to have my application make a request to the Stack Exchange API to favorite a question for the current user. The API specifies that this can be done via: /2.2/questions/{id}/...
Emmett's user avatar
  • 43
1 vote
1 answer
6k views

How to programmatically retrieve the access_token from client-side OAuth flow?

I'm making an application in C# and I need to both search and post answers, so I need an access token. I found some information, libraries, and code pieces: The authentication guide for the Stack ...
hesam's user avatar
  • 31
4 votes
0 answers
91 views

How can I get unread messages for inbox testing? [duplicate]

I use /users/{id}/inbox/unread method to get unread items in a user's inbox. But how could I test it if I have no unread items in my inbox? How can I get/generate unread messages for testing? P.S. ...
LA_'s user avatar
  • 161
0 votes
1 answer
47 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 ...
Christopher King's user avatar
9 votes
1 answer
1k views

My registered apps are not showing in my profile; where can I find them?

I registered two apps in Stack Apps, but when I access my account, it shows no registered apps. How can I mark them as my apps and how can access app settings (client id, key), etc?
user avatar
3 votes
1 answer
3k views

Searching on Stack Overflow and using the API give different results?

I am trying to use the Stack Exchange API to see the trends on different topics. Looking at the API documentation, I see that I could do this using the /search path (it's documented that this method ...
nohorbee's user avatar
3 votes
1 answer
76 views

Can I retrieve the API interfaces via the API?

I'd like to retrieve a list of methods with their arguments/defaults and their return types through automated means. Is this possible and, if so, how can I do it? This isn't just for curiosity's ...
Sean Allred's user avatar
5 votes
1 answer
73 views

Possible to get a user's flag history?

Is it possible to retrieve a signed-in user's flagging history, preferably with the status of the flag? I looked at the /me/timeline docs, and noticed it doesn't return flags. Is this type of ...
Andy's user avatar
  • 417
2 votes
0 answers
116 views

Unhelpful error message when attempting to authenticate [duplicate]

I moved my app to a different server as part of a rewrite, and forgot to update the URL of the app on Stack Apps. When I tried to send a query to https://stackexchange.com/oauth and pass my (old, ...
Zev Eisenberg's user avatar
2 votes
1 answer
253 views

C# Stackexchange Questions API [duplicate]

I need to build an web application C# and below is what I'm stuck with Can I use Stack Exchange's API with Key? Do they have a "hello world" key can be used for learning purpose. I wish to get the ...
singhswat's user avatar
  • 133
3 votes
0 answers
37 views

/associated should include user's display name and the api_site_parameter

/associated should include api_site_parameter The /associated routes return the site_name and site_url but not the api_site_parameter. It would be useful if it did because api_site_parameter is ...
Jonathan.'s user avatar
  • 3,118
3 votes
1 answer
120 views

top-answerers / top-askers documentation bug: number of results returned incorrect

The top-answerers-on-tags and top-askers-on-tags documentation claim: Returns the top 30 answerers active in a single tag, of either all-time or the last 30 days. and Returns the top 30 askers ...
Martijn Pieters's user avatar

1
3 4
5
6 7
10