We use cookies to ensure you get the best experience on our website. Some of these cookies are provided by third parties. You are free to decide which categories you would like to permit and can withdraw this consent at any time (via cookie preferences link on the footer).
By accepting the necessary cookies, you agree to our privacy policy and terms of service, both located in the footer of the website.
Learn more on our terms of service and privacy policy.
Search the live web
asknews web <query>Search the live web
Arguments:
| Argument | Description |
|---|---|
<query> | web search query |
Options:
| Option | Description |
|---|---|
--hours-back <hours> | compatibility alias for --lookback |
--lookback <value> | Number of hours back to allow the websearch to look. Defaults to All time [query, string, optional] |
--start-datetime <value> | Earliest acceptable publication datetime for results. For v1, acts like the existing lookback filter. [query, string, optional] |
--end-datetime <value> | Latest acceptable publication datetime for results. [query, string, optional] |
--engine <value> | Search engine version to use for live websearch results. [query, string, optional, default: "v1"] Choices: v1, v1.5. |
--domains <value> | A list of domains to search. [query, string, optional] |
--strict [boolean] | If true, the websearch will only return results that have a known publication date and are within the lookback period. [query, boolean, optional, default: false] |
--offset <value> | The number of results to offset for followup queries. [query, string, optional, default: 0] |
Examples:
asknews web "recent central bank statements" --output jsonAll commands support --output human|table|json|jsonl|yaml, --json, API/auth URL
overrides, request timeout, and color control. Result data is written to stdout; diagnostics
are written to stderr.