Smart Search

Smart Search

0calls
4 credits / call

Want to integrate search functionality into your app? This endpoint helps you easily implement real-time web search.

Overview

UAPI Pro Search returns more relevant search results based on query content. You can search any keyword, or limit searches to specific websites or file types.

  • Real-time web search: Millisecond-level response, quickly returns search results
  • Smart ranking: Returns more relevant results based on query content
  • Time sorting: Supports sorting by publish time to get latest content
  • Time range filtering: Supports filtering results by day/week/month/year
  • Site search: Supports site: operator to search within specified websites
  • File type filtering: Supports filetype: operator to quickly find specific format files like PDF, Word, etc.

Request body

query
stringrequired

Search query keyword, supports Chinese and English

site
stringoptional

Limit search to specific website, no need for site: prefix

filetype
stringoptional

Limit file type, no need for filetype: prefix. Supports pdf, doc, docx, ppt, pptx, xls, xlsx, txt, etc.

fetch_full
booleanoptional

Whether to fetch full page content (will affect response time)

sort
stringoptional

Sorting method

time_range
stringoptional

Time range filter

Response

200 / OK

Search successful, returns intelligently sorted search results, matched search source information and request metadata

JSON

400 / Bad Request

Request parameter error

JSON

401 / Unauthorized

Unauthorized

JSON

429 / Too Many Requests

Too many requests

JSON

500 / Internal Server Error

Internal server error

JSON