API: Difference between revisions
No edit summary |
summary of hacking days |
||
Line 22: | Line 22: | ||
* size of an article (chars, bytes, words) |
* size of an article (chars, bytes, words) |
||
* list of authors of an article (ugly to compute when it comes to articles with 1000+ revisions) |
* list of authors of an article (ugly to compute when it comes to articles with 1000+ revisions) |
||
* |
|||
==Wikimania API discussion== |
|||
===Basic needs=== |
|||
* readrevision |
|||
** out: -return speacial:Export and preferably metadata about redirect |
|||
** in: - article title / revision ID / page ID |
|||
* readhistory |
|||
** in: artile title or pageID, rangestart, rangeend |
|||
range can be, ISO date or timestamp, if negative rangestart, fetch last rangestartrevisions |
|||
bounded by a maximum amount of revisions: currently: 5000 |
Revision as of 20:43, 3 August 2006
I was not able to find a list of suggested API functions for retrieving Information via SOAP/WHATEVER. If you find one that already exists, please delete this page. If you consider meta inappropriete for this kind of page, please delete it. Or move it to my user name subpage. If you feel offended by the pseudo-syntax or naming of these functions, alter them unless they are beyond repair. Thanks.
Data Retrieval
Articles
- article_mw ( string lemma )
article_mw() returns a single article from a wiki in the original Mediawiki syntax
- article_xml ( string lemma )
article_xml returns a single article from a wiki in xml output
- article_section_mw ( string lemma, int section)
returns a single section from a single article from a wiki in the original mediawiki syntax. section is the same as section in the edit option
Search
- list of articles that contain string query
- size of an article (chars, bytes, words)
- list of authors of an article (ugly to compute when it comes to articles with 1000+ revisions)
Wikimania API discussion
Basic needs
- readrevision
- out: -return speacial:Export and preferably metadata about redirect
- in: - article title / revision ID / page ID
- readhistory
- in: artile title or pageID, rangestart, rangeend
range can be, ISO date or timestamp, if negative rangestart, fetch last rangestartrevisions
bounded by a maximum amount of revisions: currently: 5000