Web search calls
Changed onGet web search calls usage details for the organization.
Request
- Base URLhttps://api.openai.com/v1
- URLhttps://api.openai.com/v1/organization/usage/web_search_calls
- AuthHTTP bearer
Query parameters
Start time (Unix seconds) of the query time range, inclusive.
End time (Unix seconds) of the query time range, exclusive.
Width of each time bucket in response. Currently 1m, 1h and 1d are supported, default to 1d.
Return only usage for these projects.
Return only usage for these users.
Return only usage for these API keys.
Return only usage for these models.
Return only web search usage for these context levels.
Group the usage data by the specified fields. Support fields include project_id, user_id, api_key_id, model, context_level, api_source or any combination of them. When grouped by api_source, results use agents_api for attributed Agents API activity and unlabeled for all other activity. Without source grouping, api_source is null.
Specifies the number of buckets to return.
- bucket_width=1d: default: 7, max: 31
- bucket_width=1h: default: 24, max: 168
- bucket_width=1m: default: 60, max: 1440
A cursor for use in pagination. Corresponding to the next_page field from the previous response.
Response
Usage data retrieved successfully.
Changes
- info
added the optional property
////////to the response with the status
- info
- info
added the optional property
//////to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info