json.html.go 931 B

1234567891011121314151617181920
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>JSON API</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
  6. <meta name="description" content="Using the JSON API"/>
  7. </head>
  8. <body>
  9. <h1>Using JSON API</h1>
  10. <p>Use https://domain/json/ to get a JSON output of search results.<br><br>
  11. Example: <a href="https://domain/json/?q=test">https://domain/json/?q=test</a> outputs results for the query 'test'.<br><br>
  12. Append the parameter &o=NUM to get the next page of results.<br>
  13. To determine the value of NUM, look for the presence of <b>NextOffset</b> at the end of the JSON data.<br><br>
  14. Example: <a href="https://domain/json/?q=test&o=12">https://domain/json/?q=test&o=12</a><br><br>
  15. Append the parameter &nsfw to include results that are marked as not safe for work.
  16. <br><br><b>Terms of Use:
  17. <br>1. Set terms here.
  18. </b></p>
  19. </body>
  20. </html>