Account
Get Account Usage Statistics
Retrieve your current API credit usage statistics including used, remaining, and total credits.
Endpoint: (GET) https://api.lusha.com/account/usage
Rate Limits: This endpoint has a specific rate limit of 5 requests per minute.
GET
/
account
/
usage
Get Account Usage Statistics
curl --request GET \
--url https://api.lusha.com/account/usage \
--header 'api_key: <api-key>'import requests
url = "https://api.lusha.com/account/usage"
headers = {"api_key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {api_key: '<api-key>'}};
fetch('https://api.lusha.com/account/usage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.lusha.com/account/usage")
.header("api_key", "<api-key>")
.asString();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lusha.com/account/usage"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("api_key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"usage": {
"bulkCredits": {
"used": 150,
"total": 1000,
"remaining": 850
}
}
}{
"statusCode": 401,
"message": "Invalid API key"
}{
"statusCode": 429,
"message": "Too many requests. Please wait before making another request."
}{
"statusCode": 500,
"message": "Internal server error. Please try again later."
}Authorizations
Your Lusha API key. You can find this in your Lusha dashboard under API settings.
Include this key in the api_key header for all requests.
Response
Account usage statistics retrieved successfully
The usage stats for the account
Show child attributes
Show child attributes
Was this page helpful?
⌘I
Get Account Usage Statistics
curl --request GET \
--url https://api.lusha.com/account/usage \
--header 'api_key: <api-key>'import requests
url = "https://api.lusha.com/account/usage"
headers = {"api_key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {api_key: '<api-key>'}};
fetch('https://api.lusha.com/account/usage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.lusha.com/account/usage")
.header("api_key", "<api-key>")
.asString();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lusha.com/account/usage"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("api_key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"usage": {
"bulkCredits": {
"used": 150,
"total": 1000,
"remaining": 850
}
}
}{
"statusCode": 401,
"message": "Invalid API key"
}{
"statusCode": 429,
"message": "Too many requests. Please wait before making another request."
}{
"statusCode": 500,
"message": "Internal server error. Please try again later."
}