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

What's the minimum filter and simplest way to detect if a question (by its ID) was asked by a user whose account has been deleted?

share|improve this question

I've finally found one such question.

From the \question\{id}\ route you need the !YwUIfd5b6 filter:

  1. items from .wrapper
  2. owner from question
  3. user_type from shallow_user

If you get {"items":[{"owner":{"user_type":"does_not_exist"}}]} as a response, the owner has been deleted. Sample query.

(If you instead get {"items":[]} then the ID is not a question's or the question has been deleted.)

share|improve this answer
A question that was migrated to site where the asker doesn't have an account will show as "does_not_exist" as well (because they don't, on that site); you should check migrated_from if you want true "deletions". – Kevin Montrose Feb 17 '12 at 17:46

You must log in to answer this question.

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