Update json.html.go

This commit is contained in:
wibyweb 2022-10-17 01:48:52 -04:00 committed by GitHub
parent 2db5bcfa5d
commit 5e9b6302b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,14 +7,13 @@
</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><br>
Example: <a href="https://domain/json/?q=test&o=12">https://domain/json/?q=test&o=12</a><br><br>
<p>Use https://domain.com/json/ to get a JSON output of search results.<br><br>
Example: <a href="https://domain.com/json/?q=test">https://domain.com/json/?q=test</a> outputs results for the query 'test'.<br><br>
Append the parameter &p=NUM to get the next page of results.<br><br>
Example: <a href="https://domain.com/json/?q=test&p=2">https://domain.com/json/?q=test&p=2</a><br><br>
Append the parameter &nsfw to include results that are marked as not safe for work.
<br><br><b>Terms of Use:
<br>1. Set terms here.
</b></p>
<br>1. Use this service at your own risk.
</b></p>
</body>
</html>