Questions tagged [support]
You need help with the use of the Stack Exchange API, apps built on the API, or assistance building scripts that work on Stack Exchange websites.
862
questions
2
votes
1
answer
44
views
How do I get the number of views in the past day on a question?
How do I get the number of views in the past day (or within a specific time-range) on a question with the Stack Exchange API?
3
votes
1
answer
61
views
How can I get user links in the API call like Twitter, GitHub and so on?
I'm trying to get the user's user links from his profile. Like this person
has GitHub and Twitter links on his profile. How can I get those?
3
votes
1
answer
65
views
Receive latest questions with certain tag
I'm creating a simple notification application to inform me about latest questions with defined tags. For example, my tags are python and django.
I want to see the latest asked question with those.
...
3
votes
1
answer
122
views
How to get questions, under a tag, which have at least one answer with 10+ votes?
I want to get all the questions under a tag which has at least one answer with 10 or more votes.
I searched the Advanced Search documentation and searched Py-StackExchange's documentation, but I ...
2
votes
1
answer
57
views
What does "in practice" mean here?
From /answers/{id}/delete:
In practice, this method will never return an object.
For me, "in practice" means that the method will maybe return an object. But why? That's not good from an ...
1
vote
1
answer
57
views
Can I pass a filter to a write method?
I was wondering if I'm allowed to pass a filter to methods that use write access? Like for example /answers/{id}/accept. There is no "filter" parameter, and changing the filter doesn't seem to change ...
1
vote
1
answer
212
views
access_token not present in /oauth/access_token response
When using the explicit OAuth authentication for apps, I have problems receiving the access_token. A user goes to /approve and is then forwarded to approve the app. When redirected back to my site I ...
1
vote
1
answer
40
views
How do I future-proof my app to work with every SE site?
I just wrote an app for Chrome extensions and received a request to make it cross-StackExchange compatible.
If there's eventually going to be more sites than just the few listed and I don't really ...
1
vote
1
answer
659
views
No 'Access-Control-Allow-Origin' for oauth/access_token
Following the Stack Apps documentation Authentication (explicit) section I crafted this AJAX call
$.ajax({
url:"https://stackexchange.com/oauth/access_token",
type:"...
0
votes
1
answer
121
views
What token parameters to use for OAuth2 Authorizaton?
I'm trying to connect a piece of desktop software to the Stack Exchange web service through OAuth2. I've read the docs but the problem is that what it talks about is subtly different to what ...
2
votes
1
answer
63
views
How do I get information about top users of a Stack Exchange community?
I was going through the stack exchange API and I want to extract information about, say, top 20 users of a particular stack exchange community. How do I use the API for that?
I tried on this page ...
1
vote
0
answers
46
views
Please add gallery thumbnails to this site's search results
I would like to link to a list of all my stuff, but I'd like it to display with thumbnails and excerpts (like it does on tag searches).
Is this possible? It seems like a reasonable use case, but for ...
5
votes
1
answer
2k
views
Permission to link to Stack Overflow webpages from my app?
Update: My problem has now been resolved. I've added details at the bottom of this post.
I wrote a little Android app (Stack Flower) that allows customized searches of Stack Overflow. If the user ...
4
votes
1
answer
168
views
“Try It” URL has wrong URI
On API doc pages, the “link” link at the top-right of the “Try It” sections presents a URL with the wrong domain name:
For example, on docs/similar, the URL displayed will be:
https://api....
3
votes
0
answers
101
views
Moderation request: Please make `app-key` a synonym of `api-key`
Refer to Are "api-key" and "app-key" the same thing?.
Although I've now retagged the questions that used app-key, there are still plenty of places where the redundant term is ...
1
vote
1
answer
215
views
Will the Stack Exchange API work with an org-specific Stack Overflow site?
We have a company-specific Stack Overflow site for folks to ask questions with the company. It has a *.stackoverflow.com domain/URL.
Would I be able to use the Stack Exchange API to access the ...
3
votes
1
answer
2k
views
Implicit OAuth flow puts the access token in the hash?
The implicit OAuth flow puts the access token in the hash.
However, I would like to get that in the query (from example.com/hi#access_token=123456 to example.com/hi?access_token=123456) for it to work ...
1
vote
1
answer
126
views
Is it okay to just send the API key (without implementing oauth-2 login)?
I'm writing a small Android app that issues customizable queries and displays the results in a read-only format. I might implement oauth-2 in a future version, but want to leave it out of version 1.0 (...
2
votes
0
answers
38
views
Mass find and replace in answers, questions and titles of questions
1. Briefly
I don't find, how I can mass replace string in multiple answers, questions and titles of questions of any Stack Exchange site.
2. Example
For example, I want to replace incorrect form of ...
2
votes
1
answer
123
views
How to get the number/count/total of tags/badges/something from the API?
I see we can fetch tags via the API, which works fine
but, sadly, there doesn't seem to be a way to get the count of all possible tags.
Currently the Stack Overflow Tags page shows 36 tags per page ...
6
votes
1
answer
441
views
Got 502 response after very few calls
This looks like a duplicate of Throttle violation after 300 calls but this one is reported as fixed in 2012.
Today I made ~450 requests with an app key (no oauth token) and suddenly got a 502 ...
0
votes
1
answer
60
views
Get a great many counts of questions, by select tags for a date range?
I am trying to get the number of questions associated with a specific tag for a particular date range. I initially assumed the fromdate and todate parameters would do this. However, it appears that ...
3
votes
0
answers
83
views
Java Wrapper for the 2.2 API
I've been looking for a Java based API/wrapper/DAO for the new SE API 2.2. but could not find any (May very well be a limitation of my search skills, though.)
I found references to attempts at ...
4
votes
2
answers
77
views
Default Stack Exchange behavior interferes with my "Mark answers as favorites" code?
I'm developing a browser extension that lets users mark answers as favorites. The default Stack Exchange behavior when the favorite button is clicked messes everything up, though. Even if I set my own ...
5
votes
1
answer
105
views
Access token keeps being invalidated
For Stack Overflow Extras (SOX), a few users and myself have seen our access tokens being invalidated very often without any apparent reason.
We aren't requesting new tokens (which would invalidate ...
5
votes
1
answer
113
views
How to get total visited days and consecutives of an user?
I checked docs , there are no endpoints to get total visited days and consecutive days. Is there any way to get them?
4
votes
1
answer
87
views
How to use shallow_user?
I can not understand how to access the summary information about the user's reputation. How to use the shallow_user object ?
I tried:
https://api.stackexchange.com/2.2/shallow-user/2765346/...
2
votes
2
answers
136
views
How to get notified when user posts, comments, etc.?
I want to create a slack integration that will list the user's Stack Overflow activity. EG: when the user asks a question, posts an answer, edits a post etc.
What can I use for this kind of ...
2
votes
1
answer
186
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....
4
votes
1
answer
398
views
Refresh expired acess token basics
I'm trying to learn how to implement an OAuth flow in an Android app using a simple app with the Stack Exchange API.
Using WebView, I'm able to retrieve an access token and store it in my shared ...
3
votes
1
answer
39
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 ...
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
187
views
Stack Exchange login hangs on Windows 10 Mobile?
I am working on a Stack Exchange App (Stack App for Windows 10 PC/Mobile and Windows 8.1 Mobile).
I have a user login set up and using the WebAuthenticationBroker in Universal Windows Platform, to ...
2
votes
1
answer
134
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
1
answer
368
views
iOS Client for stackoverflow always throws redirect_uri not a valid uri
I tried to use the Stack Exchange API to authenticate the user.
I have registered my app with redirect_uri as stackexchange.com/oauth/login_success.
But it always throws "redirect_uri is not a valid ...
2
votes
1
answer
99
views
Can I pass multiple filters?
I've tried adding filter=total and filter=withbody in the same request but get the following error:
{"error_id":400,"error_message":"Invalid filter specified","error_name":"bad_parameter"}
How ...
-5
votes
1
answer
622
views
What is the root cause for too many request issue?
I am getting the following error when importing questions under a particular tag name:
{"error_id":502,"error_message":"too many requests from this IP, more
requests available in 56100
seconds"...
1
vote
0
answers
82
views
Get all questions of a particular tag in API 2.2 in PHP
I'm trying to get all the questions for documentation on Meta Stack Overflow in PHP.
The code I'm using is as follows:
<?php
$feed = file_get_contents('https://api.stackexchange.com/2.2/...
5
votes
1
answer
400
views
How to increase app request quota from 300 to 10,000?
In the app management page for a little app I made, the following statement is presented below this key Pw9D)judG8FE4tJR3qjUTA((:
Pass this as key when making requests against the Stack Exchange ...
7
votes
1
answer
165
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
1
answer
156
views
Can I have a separate account just for testing my Stack App?
I want to test my Stack App to make sure it works properly without and problems. Is it allowed if I use a separate account just for this purpose?
2
votes
1
answer
168
views
Implicit Flow Isn't Redirecting
I'm using the WebAuthenticationBroker to allow users to log in to their account:
var accessToken = "";
var uri = "https://stackexchange.com/oauth/dialog?redirect_uri=https://localhost.com&...
1
vote
1
answer
171
views
How do I find all questions/answers per a tag using .Net?
I want to get the list of questions based on tag name using .Net. can any one please let me know how to achieve this using .Net with API Version 2.2?
-3
votes
1
answer
83
views
Why API Version 2.2 returns null always while getting questions list?
The below 2 codes returns null always. How to get the list of questions using API Version 2.2?
Question thisPost = context.Official
.StackApps
.Questions.ById(1)
.WithComments(true)
.First();
var ...
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
1
answer
319
views
Is the Stack API daily quota of 10,000 a hard limit, or can it be increased?
We are developing an indexer that will be used to store and serve up questions/answers related to our products. The indexer uses a key (and soon an access_token) to retrieve the data from Stack ...
1
vote
1
answer
59
views
wrong results of /search/advanced
I am querying mobile in stackoverflow. The second result is an answer. Results of /search/advanced is giving only questions when queried mobile. This is applicable for all other terms which are to be ...
3
votes
1
answer
257
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
70
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
64
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 ...