Check Credit Usage
Returns your credit consumption for the current or specified month.
Requires your x-api-key header.
curl -X GET "https://v3-api.texau.com/api/v1/usage?month=2026-03" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY"
import requests
import json
url = "https://v3-api.texau.com/api/v1/usage?month=2026-03"
headers = {
"Content-Type": "application/json",
"x-api-key": "YOUR_API_KEY"
}
response = requests.get(url, headers=headers)
print(response.json())
const response = await fetch("https://v3-api.texau.com/api/v1/usage?month=2026-03", {
method: "GET",
headers: {
"Content-Type": "application/json",
"x-api-key": "YOUR_API_KEY"
}
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://v3-api.texau.com/api/v1/usage?month=2026-03", nil)
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("x-api-key", "YOUR_API_KEY")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://v3-api.texau.com/api/v1/usage?month=2026-03')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
request['Content-Type'] = 'application/json'
request['x-api-key'] = 'YOUR_API_KEY'
response = http.request(request)
puts response.body
{
"month": "2026-03",
"total_credits": 42.5,
"total_cost": 0.85,
"credit_value": 0.02,
"apis": {
"enrich_profile": {
"calls": 25,
"credits": 25
},
"people_search": {
"calls": 5,
"credits": 17.5
}
}
}
GET
/usage
GET
API Key (header: x-api-key)
x-api-keystring
RequiredYour TexAu API key. Contact TexAu to obtain one.
Your TexAu API key. Contact TexAu to obtain one.
query
monthstring
Month in YYYY-MM format. Defaults to current month.
Request Preview
Response
Response will appear here after sending the request
Authentication
header
x-api-keystring
RequiredAPI Key for authentication. Your TexAu API key. Contact TexAu to obtain one.
Query Parameters
monthstring
Month in YYYY-MM format. Defaults to current month.
Responses
monthstring
total_creditsnumber
total_costnumber
credit_valuenumber
apisobject
Was this page helpful?
Last updated 2 weeks ago
Built with Documentation.AI