7NOW

Get 7NOW search-term suggestions

Returns search-term completions for a partial query, e.g. "chi" -> "chips ahoy", "chips", "chicken". No store is required. q must be at least 3 characters -- shorter values return a typed invalid-param error, matching upstream's own enforced minimum. vertical selects which search index to complete against, and the indexes are materially different rather than variations on one list: for "chi", convenience answers "chips ahoy, chips, chicken wings" while restaurant answers "chipotle, chinese food, chili". global is a sparse cross-vertical index -- many prefixes legitimately return no suggestions there.

get/7now/suggest

Request

  • Base URL: https://api.crawlora.net/api/v1
  • URL: https://api.crawlora.net/api/v1/7now/suggest
  • Auth: API key in header x-api-key

Query parameters

qstring required

Partial search term, at least 3 characters.

vertical'convenience' | 'restaurant' | 'global'

Which search index to complete against. One of: convenience, restaurant, global. Defaults to convenience.

Headers

x-api-keystring required

API key required

Response

OK

codeinteger

Code is the HTTP status code or a custom code used to indicate the result of the request @example 200

msgunknown

Example response

{
  "data": {
    "query": "chi",
    "suggestions": [
      "chips ahoy",
      "chips",
      "chicken"
    ]
  }
}

Changes

No recorded changes to this operation across all 2 revisions of this API.