Reputation: 3940
Does the Wikipedia API have some endpoint or parameter to return only the wikitext of a page or a section of a page in the HTTP response body (i.e. without the JSON around it?) In this case it could use HTTP status codes to signal an error. The point would be to simplify parsing (no JSON).
Upvotes: 0
Views: 84
Reputation: 28160
Not technically part of the API but it's possible:
https://en.wikipedia.org/wiki/Cape_York_meteorite?action=raw https://en.wikipedia.org/wiki/Cape_York_meteorite?action=raw§ion=0
Upvotes: 3