Setup
Put them in your environment or
.env; Data APIs covers the other ways.
Notes
- Credits are charged when a request completes successfully (even with zero results); failed requests are free. $1 buys 1,000 credits; new accounts get 100 free.
- Cost per call: search 1, news 1, crawl 1, sitemap 1, trending 1, screenshot 2, maps 3 per page, ask 5, extract 10, deepcrawl 20; status checks and usage are free.
- Search, news and crawl also take a batch: an array of up to 50 request objects; this entry’s params cover the single-request form.
- The docs also offer OAuth 2.1 for interactive clients; API keys are fully supported and used here.
Endpoints
Web search
- A read over POST: nothing is changed on your account; it spends credits.
- Costs 1 credit, plus 1 per page crawled successfully when crawl_results is set. The docs also allow a batch: send an array of up to 50 request objects (not supported by this entry’s named params).
News search
- A read over POST: nothing is changed on your account; it spends credits.
- Costs 1 credit, plus 1 per page crawled successfully when crawl_results is set.
Agentic search
- A read over POST: nothing is changed on your account; it spends credits.
- Costs 5 credits.
Google Maps places
- A read over POST: nothing is changed on your account; it spends credits.
- Costs 3 credits per page, however few places max_results keeps.
Read a web page
- A read over POST: nothing is changed on your account; it spends credits.
- Costs 1 credit. A batch form accepts an array of up to 50 items.
Screenshot a page
- A read over POST: nothing is changed on your account; it spends credits.
- Costs 2 credits.
Site sitemap links
- A read over POST: nothing is changed on your account; it spends credits.
- Costs 1 credit.
Trending topics
- A read over POST: nothing is changed on your account; it spends credits.
- Costs 1 credit.
Extract structured data from a page
- A read over POST: nothing is changed on your account; it spends credits.
- Beta. Costs 10 credits per request.
Start a site deep crawl
- Starts a billed job: it only produces data and changes nothing else in your account.
- Beta. Poll search1api.web.deepcrawl_status with the returned task id.
- Costs 20 credits per task regardless of page count.
Check a deep crawl
- Free.
Check credit balance
- Free.