HTTP API Definition: Difference between revisions

Jump to navigation Jump to search
Line 251: Line 251:
=== Random Similar ===
=== Random Similar ===


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 similar' are, in fact, random.  Please do not expect random results here to match random results there.
This command mirrors the type of data provided on the main web page.  Use this instead of scraping the HTML.  Please note, however, that the 'random similar' are, in fact, random.  Please do not expect random results here to match random results there.


==== Access ====
==== Access ====
Line 278: Line 278:


</randomsimilar>
</randomsimilar>
</pre></code>
=== Hot Anime ===
This command mirrors the type of data provided on the main web page.  Use this instead of scraping the HTML.  Unlike the two random result commands, the results here will match the results as supplied by the main web page (with some possible variance of a few hours, depending on cache life.)
==== Access ====
Base URL: <u><nowiki>http://api.anidb.net:9001/httpapi?request=hotanime</nowiki></u>
Parameters:
* <tt>request=hotanime</tt>
Example:
URL: <u><nowiki>http://api.anidb.net:9001/httpapi?client={str}&clientver={int}&protover=1&request=hotanime</nowiki></u>
<code><pre>
<hotanime>
    <anime id="8556" restricted="false">
        <episodecount>12</episodecount>
        <startdate>2012-01-10</startdate>
        <title xml:lang="x-jat" type="main">Another</title>
        <ratings>
            <permanent count="248">6.61</permanent>
            <temporary count="261">7.88</temporary>
            <review count="1">4.33</review>
        </ratings>
        <picture>79963.jpg</picture>
    </anime>
...
</hotanime>
</pre></code>
</pre></code>


Navigation menu

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