Перейти к навигации

How do I search news, papers, patents, shopping, or places? Why do news have no snippet and places have no url?

Просмотр в формате Markdown

Set type on POST /v1/web/search to switch between web (default), news, images, videos, scholar, patents, shopping, and places—every type costs the same $0.005 per successful call regardless of max_results (1–10). Each type returns its own schema: news has no snippet (call POST /v1/web/read on the article URL to read it) and places has no url (check website, address, and phone instead).

Fields and filter limits by type

typeKey extra fieldsSupports time_range, include_domains, exclude_domains?
websnippet, published_atYes
newssource, published_at, image_url (no snippet)Yes
imagesimage_url, thumbnail_url, width, height, sourceYes
videossource, duration, published_at, image_urlYes
scholarpublication_info, year, cited_by, pdf_urlNo (passing them returns 400 bad_request)
patentspublication_number, priority_date, filing_date, grant_date, inventor, assignee, pdf_urlNo
shoppingsource, price, rating, rating_count, image_urlNo
placesaddress, latitude, longitude, rating, rating_count, category, phone, website (no url)No

Example: search academic papers or recent news

curl -sS https://api.beatapi.io/v1/web/search \
-H "Authorization: Bearer $BEATAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"retrieval augmented generation evaluation","type":"scholar","max_results":5}'
  • CJK language auto-detection: If you omit both country and language, a query written in Chinese, Japanese, or Korean automatically searches in that language and region.
  • Avoid 400 bad_request: Do not pass time_range, include_domains, or exclude_domains with scholar, patents, shopping, or places. See BeatAPI Web Search API and Web Search API reference.

Back to Web Search questions.