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
4 votes
0 answers
96 views

How to quickly retag a question from the API?

I'm playing with the write API, and I'd like to simply retag a question. This is the code I have so far: $editURL = 'https://api.stackexchange.com/2.2/questions/' . $question->{"question_id"} . '/...
4 votes
1 answer
49 views

Can we find the time of a vote using the API?

I've been looking at the API docs and more specifically at the filters available for the /answers/{ids}, /posts/{ids} and /questions/{ids} routes but can't find anything other than upvoted and ...
1 vote
2 answers
50 views

Is there a glossary of the properties returned in response to the Stack Exchange API?

While most items are self-explanatory, some aren't, and I was wondering if there was a glossary explaining all the properties in each of the response types?
7 votes
1 answer
204 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.
1 vote
1 answer
70 views

How to get the user's last seen time in user's profile

In user's profile page, there's a last seen xx mins ago info: How can I get this information in user object or other object field?
1 vote
1 answer
39 views

How to get visits per day via the API?

At the overview page of the Stack Exchange network, one can see a list of all sites of the network with some statistics for each site (number of questions, answers etc.). Most of these statistics can ...
1 vote
1 answer
48 views

What's the meaning about " is_answered" field of question object?

I saw the question object has a is_answered field. I mentioned that there're the following cases: The is_answered field is true, and the question has an accepted answer. The is_answered field is ...
10 votes
1 answer
3k views

What exactly is a valid OAuth domain name for registering your app?

I'm starting to write a native Android client for Stack Overflow, and wondering what exactly is a valid OAuth domain name? Is it the package name of my app? Or do I have to point it to a server ...
2 votes
0 answers
70 views

I'm having a hard time finding resources for using Stack Overflow's API in Python to query some questions [duplicate]

I can just go through documentation but it'd be a time saver if I could find some sort of tutorial or intro or anything. Does anybody happen to have any resources, notes, or code examples they could ...
user avatar
0 votes
1 answer
161 views

How to pass multiple tags (OR between the tags) to the Stack Exchange Questions/Unanswered API

I am using the /questions/unanswered API to try and get all unanswered questions, sorted by upvotes, and with the tags specified. How can I pass multiple tags to the /unanswered route(s) using OR-...
2 votes
1 answer
82 views

Can I get the user's top percentile, for tags, using the API?

this is the data I receive when asking for a user data with the Stack Exchange API: { "items": [{ "badge_counts": { "bronze": 27, "silver": 12, "gold": 0 }, "...
1 vote
2 answers
83 views

How to use the StacMan library to add a new question?

I didn't find any client.Questions.Add method. So, how do I use the StacMan library to add a new question ? Any sample C# example?
3 votes
1 answer
124 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 ...
4 votes
1 answer
336 views

My filter is not returning any results. How to create a minimal filter?

I'm having trouble getting the SO API Filters to cooperate. I've gone over the documentation as well as similar questions like this and this. I'll use this call as an example since it successfully ...
2 votes
1 answer
164 views

Is there an easy way to get user reputation via API?

I am looking for an easy way to access user reputation so that I can write a small react component and display my rep on my portfolio site. I want to make this package available on NPM and have ...
4 votes
1 answer
314 views

Getting an API key for an application without a server

When I go to register my application, it asks me my OAUTH application URL. But I don't have an OAuth server and I just want to get the api-key without my server. How can I fill out the form required ...
3 votes
1 answer
49 views

The /users/{id}/timeline route is reporting incorrect totals

It seems that the /users/{id}/timeline route is returning an incorrect total. For example, the following URL is reporting a total of 1607 items: http://api.stackapps.com/1.1/users/7789/timeline ......
2 votes
1 answer
51 views

Exclude records where field is present (ie., return only open questions)

How do I exclude records based on the presence of a certain field (like the equivalent of SQL's [fieldname] Is Null)? Example: Results for Closed questions include field closed_date=1234567890. ...
0 votes
1 answer
131 views

API responses are sometimes missing fields

conclusion never mind. the fields are marked as optional in the spec. it was late. sue me. the q is left for reference What is coming out: { "tags": [ "cakephp", &...
2 votes
1 answer
61 views

How to Create a Multi-tag URI Request to /questions

Just want to confirm if I'm doing this right. The /questions guide doesn't mention this. Let's say I want to ask for multiple tags in one request, am I doing this right? https://api.stackexchange....
20 votes
3 answers
138 views

Documentation or API method for `option_id` information, for the `/flags/options` API calls?

The Stack Exchange API has a couple of calls that return a list of flag_option objects. These objects contain a couple of properties that can be used to identify the flag you need. For example, when ...
4 votes
1 answer
137 views

How to use /me to display my profile data in StackExchange API?

So I'm able to use API calls like: https://api.stackexchange.com/2.2/questions?pagesize=30&order=desc&sort=activity&site=stackoverflow to display a list of questions. This is easy as it ...
4 votes
1 answer
72 views

What API do I call to measure popularity growth for specific tags over time?

I believe I can use the Stack Exchange API to get total questions that fit chosen tags. I have an example I wrote myself here:           data.stackexchange.com/stackoverflow/...
1 vote
0 answers
33 views

Could you please return tags pertaining to the question when the api's "answers on user" endpoint is called?

When I call "answers on users", I see that I can select a filter named "tags". https://api.stackexchange.com/docs/answers-on-users#page=1&pagesize=5&order=desc&sort=votes&ids=303685&...
0 votes
1 answer
53 views

How to use date parameters in the /questions API? [duplicate]

When using /questions (e.g. like this)), dates are represented by a number. I'd like to know how I can convert a number to a date. For example if I have 1293840000, what date does it represent?
2 votes
1 answer
248 views

How to get deleted answers?

Users with a certain reputation, can see deleted answers (deleted either by moderators or by their owners themselves). Does the API offer any means to access such deleted answers?
8 votes
2 answers
728 views

What is the right way to create a Stack Exchange API filter?

I'm trying to create a filter by following the documentation, but a few things are quite unclear: How do I create a filter that does not have a base filter? I'm creating a filter without a base so I ...
1 vote
1 answer
43 views

Paging issue: is /users/{ids}/associated API route returning incomplete information?

When querying to find associated accounts for a list of account ids, some ids in the results appear to be missing many of the associated sites. I have only observed this in multi-page responses. For ...
1 vote
0 answers
120 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?
4 votes
0 answers
147 views

Can we specify more than one OAuth Domain?

I would like to use the API from a browser extension. With WebExtensions, I should be able to support Firefox and Chrome with the same code. Chrome provides an identity API for OAuth2, and so does ...
2 votes
0 answers
218 views

Stackoverflow Javascript Authentication error

Using the Stack Overflow javascript authentication API, I get this error: Application Login Failure An error occurred while login into an application. Error Details error description: ...
2 votes
0 answers
112 views

JavaScript API Library for StackExchange API?

I'm developing an application that integrates with the Stack Exchange Network for posting questions and importing whole discussions. Therefore I'm looking for a JavaScript library for the Stack ...
1 vote
1 answer
2k views

How to login programmatically on Android?

I think my question is not a duplicate of this one: How to login programmatically I have read the authentication document but, still, I am unable to get what's needed to login programmatically on ...
2 votes
1 answer
105 views

Authentication uses # instead of `?`?

I need authentication for my app so I used the implicit flow way. The authentication works just fine but the access_token and expires variables return weirdly! For example: https://example.com/#...
1 vote
1 answer
111 views

Stack API doesn't return json with encoding of UTF-8

Here is the query RESULT { "items": [ { "badge_counts": { "bronze": 2, "silver": 1, "gold": 0 }, ...
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. ...
1 vote
1 answer
58 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 ...
2 votes
1 answer
67 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 ...
-4 votes
1 answer
52 views

/tags search multiple words ("or") inname

Is there any way to search for tags... but for ex "aa bb" so I want back the tag "aa-cc" and tag "aa-ccbb". at the moment the inname searches for "aa bb" so only a tag called "aa bbcc" will be a ...
26 votes
0 answers
245 views

Deleting an application key? [duplicate]

There should be delete buttons on stackapps.com/apps https://stackapps.com/apps/oauth/ so we can delete API-keys. Or at least de-activate them? I mean, cancelled projects, etc... A deletion button ...
9 votes
1 answer
1k views

How to delete apps in StackApps?

I have registered an app in Stack Apps. I am trying to delete it, but unable to find the solution. Is there a way to delete it?
9 votes
1 answer
934 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?
3 votes
1 answer
136 views

How to access my App info

I've registered for an app yesterday, but I'm not finding where should I go to see/edit its info again. I've search through profile, at stackexchange.com but couldn't find it.
5 votes
1 answer
200 views

Provide a streaming API instead of forcing API users to poll

I've written an IRC bot that can notify channels when new questions with a certain tag are posted. However, currently I'm polling the URL #{APIURL}questions?pagesize=100&fromdate=#{@...
22 votes
1 answer
453 views

Stack Exchange thinks that Shog is a elected moderator

I was browsing the API for the list of elected moderators, The API URL is http://api.stackexchange.com/docs/elected-moderators#pagesize=100&order=desc&sort=reputation&site=stackoverflow&...
3 votes
1 answer
111 views

Add Twitter accounts on the /sites route?

Would it be possible to add references to the site Twitter accounts in the /site listing? If your wondering what I'm talking about: blog.stackoverflow.com/2011/01/twitter-question-feeds-for-stack-...
2 votes
1 answer
105 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 ...
2 votes
0 answers
68 views

Provide a way to get display name via access token

Please include a new (network) method with the ability to gather display name and profile image directly via access token. Right now to retrieve this information you have to first authenticate a ...
11 votes
0 answers
165 views

Provide a way to reset - not invalidate - API tokens

I'm running a service with ~300 write-authenticated access tokens. It's terrifying. As part of running such a service, I'd like to be able to cycle API tokens - so that if, heaven forbid, one made an ...
1 vote
1 answer
75 views

How to sort /questions/featured by bounty_closes_date

The API documentation describes tthe usage of /questions/featured. Unfortunately there does not seem to be a way to sort the result by bounty_closes_date, which is IMO the sort option making most ...

1 2 3
4
5
10