Requests
curl --request GET \
--url https://llm.report/api/v1/requestsimport requests
url = "https://llm.report/api/v1/requests"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://llm.report/api/v1/requests', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://llm.report/api/v1/requests",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://llm.report/api/v1/requests"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://llm.report/api/v1/requests")
.asString();require 'uri'
require 'net/http'
url = URI("https://llm.report/api/v1/requests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyAPI Reference
Requests
This endpoint gets your logged requests
GET
/
api
/
v1
/
requests
Requests
curl --request GET \
--url https://llm.report/api/v1/requestsimport requests
url = "https://llm.report/api/v1/requests"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://llm.report/api/v1/requests', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://llm.report/api/v1/requests",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://llm.report/api/v1/requests"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://llm.report/api/v1/requests")
.asString();require 'uri'
require 'net/http'
url = URI("https://llm.report/api/v1/requests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body-
Endpoint and HTTP Method:
- Endpoint:
/api/v1/requests - HTTP Method:
GET
- Endpoint:
-
Query Parameters:
user_id(optional, string): The ID of the user.search(optional, string): The search query to filter requests.sortBy(optional, string): The field to sort requests by. Possible values areid,createdAt,updatedAt,ip,url,method,status, andcached.sortOrder(optional, string): The order to sort requests. Possible values areasc(ascending) anddesc(descending).pageSize(optional, number): The number of requests to return per page.pageNumber(optional, number): The page number of requests to return.filter(optional, string): Additional filtering parameters in JSON format.
-
Request Headers:
Authorization(required, string): LLM REPORT API key.
-
Response:
- Status: 200 OK - The request was successful.
- JSON Body:
requests(array of objects): An array of request objects.id(string): The ID of the request.createdAt(string): The timestamp when the request was created.updatedAt(string): The timestamp when the request was last updated.ip(string): The IP address of the request.url(string): The URL of the request.method(string): The HTTP method used in the request.status(string): The status code of the request.cached(boolean): Indicates if the request was cached.streamed(boolean): Indicates if the response was streamed.user_id(string): The ID of the user associated with the request.completion(string): The completion response of the request.model(string): The model used for the request.openai_id(string): The ID of the request in the OpenAI system.prompt_tokens(number): The number of tokens in the prompt.completion_tokens(number): The number of tokens in the completion.request_body(string): The request body.response_body(string): The response body.streamed_response_body(string): The streamed response body.cost(number): The cost of the request calculation.
totalCount(number): The total count of requests matching the query parameters.
-
Error Responses:
- Status: 401 Unauthorized - The user is not logged in or the provided API key is invalid.
- JSON Body:
{ error: "You must be logged in or provide an API key." }or{ error: "Invalid API key." }
- JSON Body:
- Status: 405 Method Not Allowed - The HTTP method used is not allowed for this endpoint.
- JSON Body:
{ error: "Method not allowed" }
- JSON Body:
- Status: 401 Unauthorized - The user is not logged in or the provided API key is invalid.

