Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using the /questions method, I tried to get upvote and downvote counts, along with question Ids. This is the request I sent:!w-1qg-_wOmTqzZSU1Z

The last_activity_date is returned despite being excluded by the filter. I re-checked on the docs page that the filter !w-1qg-_wOmTqzZSU1Z indeed excludes last_activity_date parameter.

share|improve this question

The path seems to use a default sort key on last_activity_date and that corrupts the filter somehow. (I checked for caching by waiting more than 1 minute and by varying the question ids.)

If I create a new filter and explicitly specify a sort key on votes, it worked for a time or two (no last_activity_date returned).

But somehow it still inserts last_activity_date randomly on subsequent runs. I haven't figured out the pattern to it yet.

As a partial workaround for this bug, always specify a sort key that doesn't rely on a field not returned by the filter.

share|improve this answer
Here's a fun fact: So far, adding &type=jsontext to the end of the request clears up the misbehavior! This is flaky stuff. – Brock Adams Jul 8 '14 at 6:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .