A fast real-time web search service.
export UNIFUNCS_API_KEY="sk-your-api-key"You need to find information on any topic.
You do not have a specific URL yet.
query supports full search engine syntax (such as site: filters and exact-match phrases in quotes). For years or months in queryfreshness parameter only when strong recency is required.useStockQuery to true.python3 search.py "query"
usage: search.py [-h] [--freshness {Day,Week,Month,Year}]
[--include-images] [--page PAGE] [--count COUNT]
[--format {json,markdown,md,text,txt}]
query
UniFuncs real-time web search API client
positional arguments:
query Search query. Full search engine syntax is
supported (for example site filters and exact-
match with quotes).
options:
-h, --help show this help message and exit
--freshness {Day,Week,Month,Year}
Result freshness filter. Use only when strong
recency is required.
--include-images Include image results (default: false).
--page PAGE Result page number (default: 1).
--count COUNT Results per page, range 1-50 (default: 10).
--format {json,markdown,md,text,txt}
Output format (default: json).
Examples:
search.py "today's gold price" --page 1 --count 5
共 1 个版本