It's been a while since we
discussed the possibility of a metafilter API. Is there any news on this front? Is it worth reconsidering?
In the past I've used the rss feeds to harvest metafilter data, though I have noticed there are a few pages with character encoding issues/entity issues, and the parsing of user ids and timestamps is bloody awful.
I would love to see something like:
{ 'post_title' : {{ post_title }},
'id': {{ post_id }},
'user_id': {{ post_user_id }}
'post_body': {{ post_body }},
'more_inside': {{ more_inside }},
'date': {{ date_published }},
'deleted': {{ is_deleted }},
"comments" : [
{'id': {{ comment_id }},
'date': {{ comment_date_published }},
'user_id': {{ comment_user_id }},
'comment': {{ comment }},
'deleted': {{ comment_is_deleted }}
},
...
]
}
Here is my thought: Start with a read-only system using the "accepts" header to specify that JSON be returned. Start with a basic set of returned fields for posts and comments and then slowly whitelist more fields to be returned, per your comfort level of course. Only logged in users can use the API and I would think that use of the API for commercial purposes (and such) should require your permission and perhaps renumeration. In fact, developing an API could eventually be a good money making venture for the site.
One question though, is metafilter ready for an API and does it make sense to open the data-gates in this fashion? I think a good compromise is a read-only API system in the interim. Personally, I don't want to see Metafilter damaged by any hasty transitions, it is a great asset. So of course we must defer to good judgment in this matter.
posted by kuatto to Feature Requests at 10:32 PM (56 comments total)
1 user marked this as a favorite
posted by pb (staff) at 10:40 PM on July 28, 2011 [6 favorites]