Tell me more ×
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It's 100% free, no registration required.

I'm trying to use the GUID returned by the revisions object to create links to raw markdown pages on a given SE site. For instance, if I wanted to see the last revision of:

http://gaming.stackexchange.com/questions/81135/how-can-i-beat-the-final-boss-in-faster-than-light

I might look at the revision history, and fetch the revision GUID for the highest number revision, like:

http://api.stackexchange.com/2.1/posts/81135/revisions?site=gaming

This gives me a GUID of 8881D546-F3D7-4861-A7F8-FE396FDF3E34 for the post.

If I actually try to fetch this GUID though, I get:

http://api.stackexchange.com/2.1/revisions/8881D546-F3D7-4861-A7F8-FE396FDF3E34?site=gaming&filter=!9hnGsv)eh

Even though my filter includes the "body" attribute, it is apparently NULL, which means the body is not returned. Further, trying to view the view-source page for this revision gives a 40x error:

http://gaming.stackexchange.com/revisions/8881D546-F3D7-4861-A7F8-FE396FDF3E34/view-source

For my query, I don't particularly need to know the body field, so I'm not asking for it in order to save bandwidth (and presumably load on SE servers). However, it's the only way I can figure out so far to determine whether or not a given version will return an error if I request the view-source page for it. If it is NULL, then that GUID/revision is invalid for the purposes of my use, and if it isn't, then the GUID/revision is potentially interesting.

Is there a better way to approach this problem?

share|improve this question

You must log in to answer this question.

Browse other questions tagged