HTTP API Definition: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 213: Line 213:
</categorylist>
</categorylist>
</pre></code>
</pre></code>
=== Random Recommendation ===
This command mirrors the type of data provided on the main web page.  Use this instead of scraping the web page.  Please note, however, that the 'random recommendations' are, in fact, random.  Please do not expect random results here to match random results there.
==== Access ====
Base URL: <u><nowiki>http://api.anidb.net:9001/httpapi?request=randomrecommendation</nowiki></u>
Parameters:
* <tt>request=randomrecommendation</tt>
Example:
URL: <u><nowiki>http://api.anidb.net:9001/httpapi?client={str}&clientver={int}&protover=1&request=randomrecommendation</nowiki></u>
<code><pre>
<randomrecommendation>
    <recommendation>
        <anime id="7899" restricted="false">
            <type>TV Series</type>
            <episodecount>13</episodecount>
            <startdate>2010-10-04</startdate>
            <enddate>2010-12-27</enddate>
            <title xml:lang="x-jat" type="main">Arakawa Under the Bridge 2</title>
            <picture>54734.jpg</picture>
            <ratings>
                <permanent count="781">623</permanent>
                <recommendations>8</recommendations>
            </ratings>
        </anime>
    </recommendation>
...
<randomrecommendation>


== User Data Commands ==
== User Data Commands ==

Navigation menu

MediaWiki spam blocked by CleanTalk.
MediaWiki spam blocked by CleanTalk.