wiby/html/json/form.html.php
2022-07-07 23:48:28 -04:00

20 lines
834 B
PHP
Executable file

<!DOCTYPE html>
<html>
<head>
<title>JSON API</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta name="description" content="Using the JSON API"/>
</head>
<body>
<h1>Using JSON API</h1>
<p>Use https://domain/json/ to get a JSON output of search results.<br><br>
Example: <a href="https://domain/json/?q=test">https://domain/json/?q=test</a> outputs results for the query 'test'.<br><br>
Append the parameter &o=NUM to get the next page of results.<br>
To determine the value of NUM, look for the presence of <b>NextOffset</b> at the end of the JSON data.<br>
Example: <a href="https://domain/json/?q=test&o=12">https://domain/json/?q=test&o=12</a>
<br><br><b>Terms of Use:
<br>1. Set terms here.
</b></p>
</body>
</html>