Questions tagged [api-v2.1]

For questions relating to version 2.1 of the Stack Exchange API.

Filter by
Sorted by
Tagged with
4 votes
1 answer
592 views

How to create API filters?

I used the following request link to extract data from the Stack Exchange API. But I have no idea how to create "filter" as used in the request line. Please help me understand the creation of such ...
Manish Bhanu's user avatar
1 vote
1 answer
57 views

How do I update redirect_uri param for a StackExchange App [duplicate]

I've created a StackExchange app but now I cannot find the edit page so I can update the app settings, like: redirect_uri - which is an OAuth param
ApiFox's user avatar
  • 57
1 vote
1 answer
84 views

What is the private_info scope for?

In the docs it says you can pass private_info for scope when authenticating a user. What does this allow you to access, that you couldn't otherwise?
Jonathan.'s user avatar
  • 3,128
6 votes
0 answers
233 views

localhost API key receives Curl error when retrieving access token

I have registered two apps -- one that will redirect to my website and the other that will redirect to a localhost server that I have running so I don't have to test my code on the site. I have ...
austin's user avatar
  • 171
3 votes
0 answers
49 views

Incorrect link parameter on the "Complex Queries" documentation page

The "Complex Queries" documentation page has this link: Of these three posts on Server Fault, the one with the most recent activity where "the one with the most recent activity" links to https://...
ForkandBeard's user avatar
2 votes
1 answer
155 views

V2.1 API body HTML has unclosed li tags

The Stack Exchange API (with a safe filter) is returning question body content with malformed HTML, specifically <li> elements that do not have closing tags (and no valid parent). I've seen ...
Rob MacEachern's user avatar
5 votes
1 answer
145 views

The API /questions/{ids}/timeline path doesn't return several items that occurred after the fromdate parameter

I need to get all the question activity after some particular time. I am using the timeline API, like so:       /questions/20032212/timeline?fromdate=1384705610&site=stackoverflow.com But it ...
Sachin Jain's user avatar
0 votes
1 answer
125 views

API v2.1 supports write access, but is anyone using it?

Over the weekend, I attended an NHS "Hackday" where we tried to solve a problem one of the junior doctors brought. We hacked together a stack exchange alternative for medical doctors to ask questions. ...
JonJ's user avatar
  • 1
4 votes
0 answers
37 views

Link to applied_count leads to a 404

To Reproduce Run an API query on tag-synonyms, you will get a result that includes something like this: Issue(s) Click on the applied_count link and you get redirected to this page which is a 404. It ...
jmac's user avatar
  • 141
3 votes
0 answers
86 views

Include creator in tag_synonym

When I looked at recent tag synonyms there is a Creator row, but I can't query this data with the API. I'd like to see this data added, and a list of all approves would be nice too.
Johannes Kuhn's user avatar
3 votes
1 answer
69 views

Trying to get the Total results count crashes the /notifications path

I am trying to use the filter !9ciXfDSYM (same as default but with total) with the /notifications request and the response is: { "error_id": 500, "error_name": "internal_error", "...
dileping's user avatar
  • 139
5 votes
1 answer
88 views

API calls that return select post bodies throw JSON errors

When calling the Stack Exchange API to get the post body, it will return an error for some posts. EG: /docs/questions#page=13&pagesize=100&fromdate=2013-09-01&todate=2013-09-02&order=...
Michael Sun's user avatar
1 vote
1 answer
29 views

Get points from Multiple sites in one call

Is there any way to get total points and badges from various sites (e.g. stackoverflow, sharepoint, wordpress etc.) in one call?
Rahul's user avatar
  • 223
4 votes
0 answers
62 views

Can Stack Exchange include the number of edits a user has made on a site in /users/<id>/edits?

Originally, I wrote: In the old review queue, users could see their progress towards the Copy Editor and Strunk and White badges, but since the new review queues were implemented, this information ...
jmort253's user avatar
  • 753
6 votes
1 answer
430 views

What's the different between user_id and account_id?

What is the difference between user_id and account_id in the User object ? Both are different and I'm looking for the unique ID of the User. { "items": [ { "user_id": 2144246, "...
Tony Baguette's user avatar
6 votes
0 answers
106 views

The "advanced search" path returns very wrong results for the `q` parameter

I'm trying to search for a string. It's a hardware identifier 10ec:8168 and should be unique to that make/model of chip. Any questions that mention is should be relevant. But compare the site search ...
Oli's user avatar
  • 253
6 votes
1 answer
108 views

/users/{ids}/timeline creation_date missing or incorrect

I am writing a small widget that displays the time since I was awarded my last badge on Stack Overflow. I noticed that my most recent badge was missing from the timeline data (/users/{ids}/timeline). ...
Steph Sharp's user avatar
1 vote
1 answer
63 views

How to get the question title for reputation history entries?

I'm trying to implement a simple rep list, much like as seen on Stack Exchange sites. What I would like is to get three things: the rep change amount, type of change, and question title. However, ...
user avatar
1 vote
1 answer
99 views

How to sort by the newest question?

I'm trying to retrieve the latest questions posted in a particular tag. What's the equivalent for: http://stackoverflow.com/questions/tagged/php?sort=newest&pagesize=15 I see that v1.1 API is ...
Amal Murali's user avatar
5 votes
1 answer
2k views

Desktop login URL: WebBrowser hangs (.NET) - JavaScript endless-loop

I am using .NET 4 and trying to use the desktop authentication via the web-browser control (WPF and/or WinForms; StackApp NNTP bridge for accessing StackExchange forums (like StackOverflow)). It seems ...
Jochen Kalmbach's user avatar
4 votes
0 answers
118 views

Parameter `tagged` in `search/advanced` seems to use `AND` instead of `OR`

It seems that search/advanced has the same problem as in "The tagged parameter does not work with multiple tags" question. When I select c#; .net I only get results tagged both c# and .net: http://...
Andrey Shchekin's user avatar
3 votes
1 answer
153 views

Inbox item not marked as read after viewing [duplicate]

Accessing inbox items using the following url: /me/inbox Unread inbox items remain unread (is_unread = true) even after that specific item has been read using the API (v2.1). The items are marked ...
Prasanna's user avatar
  • 348
1 vote
1 answer
78 views

Inbox and Notifications aren't being filtered by site

I'm using the API get inbox messages and notifications for various sites on the StackExchange network, but it doesn't seem to matter what site parameter I pass in the query string. I always get my ...
Spencerooni's user avatar
1 vote
1 answer
70 views

Off-by-one error in fromdate processing

When running a query with a given fromdate value, values which match fromdate - 1 are returned. An example: When using fromdate=1367715851 results will be returned which have a creation_date of ...
Michael Hampton's user avatar
1 vote
0 answers
27 views

The 2.1, "similar" path is returning empty results

I've been a happy user of the /2.1/similar Stack Exchange API for a while. But, at some point within the last 24 hours, or so, it started returning empty results (but otherwise reporting everything as ...
kamstrup's user avatar
3 votes
1 answer
89 views

List of object types on SE API v2.0+

Beware: The API is Huge!! Below is the list of all the "types" of objects returned by the API v2.0+ :- Note: v2.1 specific types are noted in a seperate box Type | Field ...
pradyunsg's user avatar
  • 163
0 votes
1 answer
124 views

Write comment API failing with error_id: 500

I am trying to test post comment with the following URL https://api.stackexchange.com/2.1/posts/10305691/comments/add?key=HIDDEN&access_token=HIDDEN&site=stackoverflow&preview=true&...
Prasanna's user avatar
  • 348
1 vote
0 answers
111 views

Please differentiate between meta sites for beta versus normal sites, in the /sites method

Currently, in the /sites method, a site can have a site_state of: normal, open_beta, closed_beta, or linked_meta. This makes it easy to tell if a main site is in beta or not. But it becomes a 2 or 3 ...
Brock Adams's user avatar
  • 12.9k
7 votes
1 answer
74 views

Allow post type to optionally return title field

Currently, it's possible to get the title field from the question type returned by /questions/{ids} and from the answer type returned by /answers/{ids}, using the appropriate filters. Unfortunately, ...
Tim Stone's user avatar
  • 4,686
5 votes
1 answer
349 views

Why am I being told to backoff when I'm well within my API limit?

I've been running my API app fine for some time now and when I added another function I realized I was being told to backoff. I only run the app once a night and don't really pull that much data. I ...
Brad's user avatar
  • 53
5 votes
1 answer
122 views

API docs titled "v2.0"; should be "v2.1"

The documentation is titled "StackExchange API v2.0"... this should be updated to "v2.1" as it's not readily obvious that version 2.1 has been published otherwise. https://api.stackexchange.com/docs
Alex Lockwood's user avatar
1 vote
0 answers
257 views

How can my app authenticate users with only a Stack Overflow account, using the Stack Exchange OAuth API 2.1?

Recently I registered an app in stackapps.com to provide a way to authenticate users with their Stack Overflow account. Then I noticed that Stack Exchange OAuth only works for users with a Stack ...
agares's user avatar
  • 181
3 votes
1 answer
4k views

HTTP 400 "Bad Request" while using "access_token" in request Url

I registered an app, obtained a key and I have implemented the implicit OAuth 2.0 flow in a Windows 8 desktop app (as per the documentation available here). After receiving and storing the access ...
indyfromoz's user avatar
2 votes
1 answer
30 views

The "Get Started" section in the sidebar only mentions API 2.0 and API 1.1

Now that API 2.1 is "public, frozen, and out the door" shouldn't we update the "Get Started" section in the sidebar on the right side of the screen. It talks about API 2.0 and API 1.1 but doesn't ...
hippietrail's user avatar
2 votes
1 answer
64 views

No token field in the docs test page for /me/reputation-history

There is no form field for an access token at: https://api.stackexchange.com/docs/me-reputation-history https://api.stackexchange.com/docs/me-full-reputation-history After attempting to Run the API ...
pb2q's user avatar
  • 123
2 votes
1 answer
54 views

Error retrieving question using a filter that includes question.notice

I have created a filter to include the question.notice field. It seems to be OK as returned by https://api.stackexchange.com/2.1/filters/-9xc1l%2Au-JEsf_Q Then if I want to fetch this question using ...
Jilouc's user avatar
  • 355
2 votes
1 answer
50 views

The migrated predicate on advanced_search seems underachieving

What does the migrated parameter to the advanced_search method mean? Setting it to true on CS finds only one question that has been migrated away, out of several: { "items": [ { "...
Gilles 'SO- stop being evil''s user avatar
2 votes
1 answer
71 views

Advanced search by title doesn't filter on the title

Searching by title on the advanced search method doesn't restrict the results to posts containing the specified text as a word or even substring. Varying the string has some influence, but I can't ...
Gilles 'SO- stop being evil''s user avatar
1 vote
2 answers
45 views

Link field on notification type

There is no link field on notification. Is this by design or a bug? If it's by design can it be changes so it's included, I can't see how to build the URL with only a post id, and not know what type ...
Jonathan.'s user avatar
  • 3,128
2 votes
1 answer
38 views

View count restriction isn't working for /search/advanced.

I have constructed the following URL, but the questions returned don't contain anywhere near 50k views, despite the query string parameter: http://api.stackexchange.com/2.1/search/advanced?site=...
Nathan Osman's user avatar
  • 23.3k