Reports what the calling key spent on web calls, by day, by endpoint, or both. Days are UTC, the range is at most 400 days, and calls appear within a minute. The report never contains the query.
The grouping of data, as requested. One of day, endpoint, day_endpoint.
totalsrequired
object
Show fields
Name
Type
Description
callsrequired
integer
charged_callsrequired
integer
datarequired
array of object
Show fields
Name
Type
Description
day
string
Date YYYY-MM-DD (UTC).
endpoint
string
callsrequired
integer
charged_callsrequired
integer
pricing
object
What a paid call costs now. Present only while the site has a valid price; the same for every key, also for administrator preview keys, whose calls stay free. A call costs the sum of weight times units in credits, at price_per_1000_credits_usd per 1,000 credits.Show fields
Name
Type
Description
price_per_1000_credits_usdrequired
number
Above 0.
weightsrequired
object
Credit weight of each billing unit the endpoints deliver (section 6.2), such as search_web, content_page, fetch_page, fetch_pdf_pages, geocode and reverse_geocode.
Errors
Status
Codes
400
invalid_request, invalid_url, invalid_schema or invalid_image. Not charged.
401
invalid_token. Not charged.
403
pre_consume_token_quota_failed (the key's own spending limit), access_denied, web_not_allowed or model_not_in_plan (customer keys while plans cannot include the web tools). Not charged.
404
not_found or invalid_endpoint. Not charged.
413
read_request_body_failed: the request body is over the limit. Not charged.
429
rate_limited, concurrency_limited, api_key_temporarily_frozen, or the failure guard. Not charged.
500
internal_error. Not charged.
501
api_not_implemented: the endpoint, type or option has not shipped. Not charged.
503
source_unavailable, web_api_disabled, token_cache_busy or billing_busy (the charge could not be prepared in time; retry after Retry-After). Not charged.