Your key and quota
curl --request GET \
--url https://api.dis.dog/v1/me \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.dis.dog/v1/me"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.dis.dog/v1/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"plan": "hound",
"planExpiresAt": "2023-11-07T05:31:56Z",
"usage": {
"used": 12,
"limit": 500,
"remaining": 488,
"resetAt": "2023-11-07T05:31:56Z"
}
}{
"error": "plan_has_no_api",
"retryAfterMs": 2000
}Account
Get your account
Your plan, when it ends, and what is left of today’s quota. Never spends a search.
GET
/
v1
/
me
Your key and quota
curl --request GET \
--url https://api.dis.dog/v1/me \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.dis.dog/v1/me"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.dis.dog/v1/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"plan": "hound",
"planExpiresAt": "2023-11-07T05:31:56Z",
"usage": {
"used": 12,
"limit": 500,
"remaining": 488,
"resetAt": "2023-11-07T05:31:56Z"
}
}{
"error": "plan_has_no_api",
"retryAfterMs": 2000
}Use it to check a key, or to read your quota before a batch of searches. It never spends a search.
On Alpha,
usage.limit and usage.remaining are null (no daily limit), and the X-RateLimit-Limit and X-RateLimit-Remaining headers say unlimited. planExpiresAt is null on Pup. Plans and limits →
