I try to read the sections of a wikipedia article through the api through following URL: http://en.wikipedia.org/w/api.php?action=parse&text={{:Mozart}}__TOC__&prop=sections
The "old format" was a HTML like output format, which obviously has changed the last weeks. Now I get a JSON output.
How to get the old HTML format ?
I know that JSON is a better format, so please don't suggest this :-) I have my reasons to wish my old format.
Previously, the default value for format
was xmlfm
, now it's jsonfm
.
So, to get the old format, add &format=xmlfm
to your query.
But both formats are meant for humans. If you want to actually use the API from your code, you should use one of the normal formats, like xml
or json
.