HTTP API Definition: Difference between revisions

Jump to navigation Jump to search
Line 248: Line 248:
<randomrecommendation>
<randomrecommendation>
</pre></code>
</pre></code>
=== 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.
==== Access ====
Base URL: <u><nowiki>http://api.anidb.net:9001/httpapi?request=randomsimilar</nowiki></u>
Parameters:
* <tt>request=randomsimilar</tt>
Example:
URL: <u><nowiki>http://api.anidb.net:9001/httpapi?client={str}&clientver={int}&protover=1&request=randomsimilar</nowiki></u>
<code><pre>
<randomsimilar>
    <similar>
        <source aid="7056" restricted="false">
        <title xml:lang="x-jat" type="main">Aoi Bungaku Series</title>
        <picture>37124.jpg</picture>
    </source>
    <target aid="3654" restricted="false">
        <title xml:lang="x-jat" type="main">Ayakashi: Japanese Classic Horror</title>
        <picture>44085.jpg</picture>
    </target>
</similar>
...
</randomsimilar>
</pre></code>
== User Data Commands ==
== User Data Commands ==


Navigation menu

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