search_api.html 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>Search API &mdash; searx 0.8.0 documentation</title>
  7. <link rel="stylesheet" href="../_static/style.css" type="text/css" />
  8. <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
  9. <script type="text/javascript">
  10. var DOCUMENTATION_OPTIONS = {
  11. URL_ROOT: '../',
  12. VERSION: '0.8.0',
  13. COLLAPSE_INDEX: false,
  14. FILE_SUFFIX: '.html',
  15. HAS_SOURCE: true
  16. };
  17. </script>
  18. <script type="text/javascript" src="../_static/jquery.js"></script>
  19. <script type="text/javascript" src="../_static/underscore.js"></script>
  20. <script type="text/javascript" src="../_static/doctools.js"></script>
  21. <link rel="top" title="searx 0.8.0 documentation" href="../index.html" />
  22. <link rel="next" title="Plugins" href="plugins.html" />
  23. <link rel="prev" title="Engine overview" href="engine_overview.html" />
  24. <link media="only screen and (max-device-width: 480px)" href="../_static/small_flask.css" type= "text/css" rel="stylesheet" />
  25. <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9">
  26. </head>
  27. <body role="document">
  28. <div class="document">
  29. <div class="documentwrapper">
  30. <div class="bodywrapper">
  31. <div class="body" role="main">
  32. <div class="section" id="search-api">
  33. <h1>Search API<a class="headerlink" href="#search-api" title="Permalink to this headline">¶</a></h1>
  34. <div class="section" id="search-api-endpoints-search">
  35. <h2>Search API endpoints: <code class="docutils literal"><span class="pre">/</span></code>, <code class="docutils literal"><span class="pre">/search</span></code><a class="headerlink" href="#search-api-endpoints-search" title="Permalink to this headline">¶</a></h2>
  36. <p>Endpoints have equivalent functionality.</p>
  37. </div>
  38. <div class="section" id="parameters">
  39. <h2>Parameters<a class="headerlink" href="#parameters" title="Permalink to this headline">¶</a></h2>
  40. <table border="1" class="docutils">
  41. <colgroup>
  42. <col width="12%" />
  43. <col width="68%" />
  44. <col width="20%" />
  45. </colgroup>
  46. <thead valign="bottom">
  47. <tr class="row-odd"><th class="head">Name</th>
  48. <th class="head">Description</th>
  49. <th class="head">&nbsp;</th>
  50. </tr>
  51. </thead>
  52. <tbody valign="top">
  53. <tr class="row-even"><td><code class="docutils literal"><span class="pre">q</span></code></td>
  54. <td>The search query, see <a class="reference internal" href="../user/search_syntax.html"><em>Search syntax</em></a></td>
  55. <td>required</td>
  56. </tr>
  57. <tr class="row-odd"><td><code class="docutils literal"><span class="pre">categories</span></code></td>
  58. <td>Comma separated list, specifies the active search categories</td>
  59. <td>optional</td>
  60. </tr>
  61. <tr class="row-even"><td><code class="docutils literal"><span class="pre">engines</span></code></td>
  62. <td>Comma separated list, specifies the active search engines</td>
  63. <td>optional</td>
  64. </tr>
  65. <tr class="row-odd"><td><code class="docutils literal"><span class="pre">pageno</span></code></td>
  66. <td>Search page number</td>
  67. <td>optional (default: <code class="docutils literal"><span class="pre">1</span></code>)</td>
  68. </tr>
  69. </tbody>
  70. </table>
  71. <p>Both <code class="docutils literal"><span class="pre">GET</span></code> and <code class="docutils literal"><span class="pre">POST</span></code> methods are supported.</p>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  78. <div class="sphinxsidebarwrapper"><div class="sidebar_container body">
  79. <h1>Searx</h1>
  80. <ul>
  81. <li><a href="../index.html">Home</a></li>
  82. <li><a href="https://github.com/asciimoo/searx">Source</a></li>
  83. <li><a href="https://github.com/asciimoo/searx/wiki">Wiki</a></li>
  84. <li><a href="https://github.com/asciimoo/searx/wiki/Searx-instances">Public instances</a></li>
  85. </ul>
  86. <hr />
  87. <ul>
  88. <li><a href="https://twitter.com/Searx_engine">Twitter</a></li>
  89. <li><a href="https://flattr.com/submit/auto?user_id=asciimoo&url=https://github.com/asciimoo/searx&title=searx&language=&tags=github&category=software">Flattr</a></li>
  90. <li><a href="https://gratipay.com/searx">Gratipay</a></li>
  91. </ul>
  92. </div>
  93. </div>
  94. </div>
  95. <div class="clearer"></div>
  96. </div>
  97. <div class="footer">
  98. &copy; Copyright 2015, Adam Tauber.
  99. </div>
  100. </body>
  101. </html>