Byted InfoQuest Search
AI-optimized web search and content extraction using BytePlus InfoQuest API. Returns concise, relevant results with time filtering and site-specific search capabilities.
Search
node {baseDir}/search.mjs "query"
node {baseDir}/search.mjs "query" -d 7
node {baseDir}/search.mjs "query" -s github.com
Options
-d, --days <number>: Search within last N days (default: all time)-s, --site <domain>: Search within specific site (e.g.,github.com)
Extract content from URL
node {baseDir}/extract.mjs "https://example.com/article"
Examples
Recent News Search
# Search for AI news from last 3 days
node search.mjs "artificial intelligence news" -d 3
Site-Specific Research
# Search for Python projects on GitHub
node search.mjs "Python machine learning" -s github.com
Content Extraction
# Extract content from a single article
node extract.mjs "https://example.com/article"
Notes
API Access
- API Key: Get from https://console.byteplus.com/infoquest/infoquests
- Documentation: https://docs.byteplus.com/en/docs/InfoQuest/What_is_Info_Quest
- About: InfoQuest is AI-optimized intelligent search and crawling toolset independently developed by BytePlus
Search Features
- Time Filtering: Use
-dfor searches within last N days (e.g.,-d 7) - Site Filtering: Use
-sfor site-specific searches (e.g.,-s github.com)
Quick Setup
-
Set API key:
export INFOQUEST_API_KEY="your-api-key-here" -
For Node.js < 18, install fetch support:
# Node.js 18+ includes fetch natively # For older versions, install node-fetch npm install node-fetch -
Test the setup:
node search.mjs "test search"
Error Handling
The API returns error messages starting with "Error:" for:
- Authentication failures
- Network timeouts
- Empty responses
- Invalid response formats