Tools

Web Search Basic

Run a web search and get structured results with title, snippet, site, and URL. You are charged once per successful call that returns at least one result; failed or empty-result calls are free. See WebSearch Pricing.

post/v1/tools/search

Request

  • Base URL: https://api.moonshot.ai
  • URL: https://api.moonshot.ai/v1/tools/search
  • Auth: HTTP bearer

Request body

text_querystring required

Search query text. Must not be empty.

timeout_secondsinteger

Search timeout in seconds, from 1 to 60. If omitted, no per-request timeout is applied.

limitinteger

Maximum number of results to return, from 1 to 20. Defaults to 5.

include_contentboolean

Whether to return full page content in each result's text field. Defaults to false.

Response

Search results

Changes

No recorded changes to this operation across all 1 revision of this API.