תוצאה של API של מדיה־ויקי

זהו ייצוג ב־HTML של תסדיר JSON. תסדיר HTML טוב לתיקון שגיאות, אבל אינו מתאים ליישומים.

יש לציין את הפרמטר format כדי לשנות את תסדיר הפלט. כדי לראות ייצוג של תסדיר JSON לא ב־HTML יש להגדיר format=json.

ר' את התיעוד המלא, או את העזרה של API למידע נוסף.

{
    "error": {
        "code": "internal_api_error_Wikimedia\\Assert\\PreconditionException",
        "info": "[74fbcd8df26dbef5efd58bac] Exception caught: Precondition failed: This Title instance does not represent a proper page, but merely a link target.",
        "errorclass": "Wikimedia\\Assert\\PreconditionException",
        "*": "Wikimedia\\Assert\\PreconditionException at /var/www/html/w/vendor/wikimedia/assert/src/Assert.php(49)\nfrom /var/www/html/w/vendor/wikimedia/assert/src/Assert.php(49)\n#0 /var/www/html/w/includes/Title.php(4187): Wikimedia\\Assert\\Assert::precondition(boolean, string)\n#1 /var/www/html/w/includes/Title.php(4168): Title->assertProperPage()\n#2 /var/www/html/w/includes/Revision/RevisionStore.php(1828): Title->getId(boolean)\n#3 /var/www/html/w/includes/Revision/RevisionStore.php(1733): MediaWiki\\Revision\\RevisionStore->ensureRevisionRowMatchesPage(stdClass, Title)\n#4 /var/www/html/w/includes/Revision/RevisionStore.php(1609): MediaWiki\\Revision\\RevisionStore->newRevisionFromRowAndSlots(stdClass, NULL, integer, Title, boolean)\n#5 /var/www/html/w/includes/api/ApiFeedContributions.php(240): MediaWiki\\Revision\\RevisionStore->newRevisionFromRow(stdClass, integer, Title)\n#6 /var/www/html/w/includes/api/ApiFeedContributions.php(209): ApiFeedContributions->feedItem(stdClass)\n#7 /var/www/html/w/includes/api/ApiMain.php(1904): ApiFeedContributions->execute()\n#8 /var/www/html/w/includes/api/ApiMain.php(879): ApiMain->executeAction()\n#9 /var/www/html/w/includes/api/ApiMain.php(850): ApiMain->executeActionWithErrorHandling()\n#10 /var/www/html/w/api.php(90): ApiMain->execute()\n#11 /var/www/html/w/api.php(45): wfApiMain()\n#12 {main}"
    }
}