Overview

The SearchVista HTTP API provides programmatic access to our search engine index. You can execute queries, paginate through results, and request responses formatted as standard HTML, JSON, structured XML, or lightweight Plain Text.

API Endpoint & Parameters

All search requests are submitted via HTTP GET to the /search endpoint:

GET /search?q={query}&fmt={format}&type={type}&off={offset}

Query Parameters

Parameter Type Default Description
q string (None) Required. The search query. Supports exact phrases ("..."), forced terms (+word), exclusions (-word), Boolean groups (OR, (...)), and filters (site:, file:).
fmt string html Output format: html, json, xml, or text.
type string text Search modality: text (standard web search) or images / image (visual image search).
off integer 0 Result offset for pagination (number of top matches to skip).
Example JSON Request:
GET /search?q=learning+C&fmt=json

Ignored Stop Words (dropped_terms)

To maximize query throughput, SearchVista filters out common English grammatical query stop words (such as to, in, the, and, or) from plain unquoted queries.

Any words omitted from the search are explicitly listed in the dropped_terms array/collection of the response.

How to force dropped words:

Response Schema & Fields

Payloads are structured into three primary blocks:

Special Token Queries

The query engine supports specialized compound entities directly:

Output Format Examples

1. JSON Output (fmt=json)

Example request: GET /search?q=learning+C+to+code&fmt=json

{
  "search_parameters": {
    "engine": "searchvista",
    "q": "learning C to code",
    "type": "text",
    "results_skip": 0
  },
  "search_information": {
    "total_results": 5832,
    "time_taken_ms": 24,
    "query_displayed": "learning C to code",
    "dropped_terms": ["to"]
  },
  "results": [
    {
      "position": 1,
      "title": "The C Programming Language",
      "link": "https://example.org/c-intro",
      "snippet": "Start learning C programming and write clean code..."
    },
    {
      "position": 2,
      "title": "Modern C for Beginners",
      "link": "https://example.com/modern-c",
      "snippet": "A guide to code in C covering syntax and libraries..."
    }
  ]
}

2. XML Output (fmt=xml)

Standard XML document encoding for enterprise and service-oriented architectures:

<?xml version="1.0" encoding="UTF-8"?>
<search_response>
    <search_parameters>
        <engine>searchvista</engine>
        <q>learning C to code</q>
        <results_skip>0</results_skip>
    </search_parameters>

    <search_information>
        <total_results>5832</total_results>
        <time_taken_ms>24</time_taken_ms>
        <query_displayed>learning C to code</query_displayed>
        <dropped_terms>
            <term>to</term>
        </dropped_terms>
    </search_information>

    <results>
        <result>
            <position>1</position>
            <title>The C Programming Language</title>
            <link>https://example.org/c-intro</link>
            <snippet>Start <strong>learning</strong> <strong>C</strong> programming...</snippet>
            <snippet>html formatted snippet</snippet>
        </result>
    </results>
</search_response>

3. Plain Text Output (fmt=text)

A lightweight, line-oriented key-value representation ideal for terminal scripts, CLI utilities, and minimal parsing overhead:

search_parameters
 engine searchvista
 q learning C to code
 results_skip 0
search_information
 total_results 5832
 time_taken_ms 24
 query_displayed learning C to code
 dropped_term to
results
 position 1
 title The C Programming Language
 link https://example.org/c-intro
 snippet Start <strong>learning</strong> <strong>C</strong> programming...

4. HTML Output (fmt=html)

Renders standard visual search results. When terms are omitted, an advisory box is presented at the top of results informing the user which terms were omitted and how to force them using + or quotation marks.

Pagination & Offsets

To paginate through results, increment the off parameter by the page size. For example, to retrieve results in sets of 10: