Web search calls
UsageWebSearchCallsResponse admin().organization().usage().webSearchCalls(UsageWebSearchCallsParamsparams, RequestOptionsrequestOptions = RequestOptions.none())
GET/organization/usage/web_search_calls
Web search calls
package com.openai.example;
import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.admin.organization.usage.UsageWebSearchCallsParams;
import com.openai.models.admin.organization.usage.UsageWebSearchCallsResponse;
public final class Main {
private Main() {}
public static void main(String[] args) {
OpenAIClient client = OpenAIOkHttpClient.fromEnv();
UsageWebSearchCallsParams params = UsageWebSearchCallsParams.builder()
.startTime(0L)
.build();
UsageWebSearchCallsResponse response = client.admin().organization().usage().webSearchCalls(params);
}
}{
"object": "page",
"data": [
{
"object": "bucket",
"start_time": 1730419200,
"end_time": 1730505600,
"results": [
{
"object": "organization.usage.web_searches.result",
"num_model_requests": 2,
"num_requests": 2,
"project_id": null,
"user_id": null,
"api_key_id": null,
"model": null,
"context_level": null
}
]
}
],
"has_more": false,
"next_page": null
}
Returns Examples
{
"object": "page",
"data": [
{
"object": "bucket",
"start_time": 1730419200,
"end_time": 1730505600,
"results": [
{
"object": "organization.usage.web_searches.result",
"num_model_requests": 2,
"num_requests": 2,
"project_id": null,
"user_id": null,
"api_key_id": null,
"model": null,
"context_level": null
}
]
}
],
"has_more": false,
"next_page": null
}