Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Question pertaining to the documentation provided with the API.
4
votes
Accepted
Where is "items" & "badge_counts" documentation?
items is documented in the Common Wrapper Object. It is an array of whichever object the given route returns.
In the case of /me/associated, items is an array of network_user objects.
If you use …
2
votes
Accepted
`fromdate` and `todate` parameter in `/me` call
Yes, if you omit those parameters it will give you the expected result...
If a valid token is passed, then it will return the user ("There can be only one.") who obtained/approved that token.
For thi …
2
votes
Accepted
What does "in practice" mean here?
Strictly speaking, that line is incorrect. The method will always return a JSON object (barring certain server failures).
But the items array will be empty or missing.
On success, the default objec …
6
votes
0
answers
72
views
Docs say the API returns a user's age, but it doesn't (anymore)
The documentation still needs to be corrected. …
2
votes
What is the private_info scope for?
The documentation says about private_info:
access full history of a user's private actions on the site. …
7
votes
Accepted
Accessing Authenticated User's Close/Delete History
This is currently not possible via the API. The best you could do is have the user logged into a browser and then screen-scrape the
stackoverflow.com/users/{user_id}/?tab=votes
pages... Hardly an …
2
votes
Accepted
link in post_id in /me/notifications/unread is wrong
This is a very minor bug in the documentation page.
The online doc page adds a convenient hyperlink to the post (The link part is not in the API's JSON response). That's a good thing. … As for the rest, the documentation clearly says:
post_id 2.1 integer, refers to a post, may be absent
(Emphasis added)
post_id is present only when the notification refers to a specific post …
1
vote
How do I find a user by their `display_name`?
You would use the inname parameter of the users path. For example this gets users with marcamillion in their name, on Stack Overflow.
Note that the filter parameter controls what fields are returned …
3
votes
Accepted
How do I parse the dates from the API?
The date is in "Unix epoch time", as described in the API-docs, Date Formats section.
How you do the conversion depends on what language you are coding in. Here's one way in javascript:
function un …
2
votes
Accepted
Difference between `/inbox/unread` & `/me/inbox/unread`
There is no difference and...
The inbox has always been "The global inbox". Certainly for as long as the API has existed.
So any inbox route will be Stack Exchange wide, even if it accepts a site par …
2
votes
Accepted
`types=main_site` in `/me/associated` gives `meta_site` accounts also
This is exactly how it should be (except that the doc page might be more explicit).
The meta_site parameter refers to Per-site Metas.
Meta Stack Exchange is not a per-site meta. Think of it as a …
2
votes
Accepted
Why is the `site` parameter required in `/me` call?
RE:
Is site the api_site_parameter of the site object?
Yes. Although as stated in the "Per-Site Methods" section of the main doc page, you can also use the full domain name, EG cooking.stackexchan …
2
votes
Notice field on questions may be absent?
Yes, officially this is a documentation bug. From the Absent Fields doc:
Fields that are not always guaranteed to be set... are indicated in the per-type documentation. … Any discrepency(sic) between observed behavior and the documentation should be reported on Stack Apps. …
1
vote
0
answers
70
views
The authentication doc gives a wrong domain for authentication
The authentication doc page now lists URL's like:
https://stackoverflow.com/oauth
https://stackoverflow.com/oauth/access_token
etc.
While these seem to work, the correct domain is stackexchange.co …
3
votes
Accepted
My filter is not returning any results. How to create a minimal filter?
The key mistake here is neglecting the Wrapper Object, and this is a big flaw with the filter documentation.
The wrapper is the box that everything you get from the API comes in. …