Check API Credits
curl --request POST \
--url https://api.casparser.in/v1/credits \
--header 'x-api-key: <api-key>'import requests
url = "https://api.casparser.in/v1/credits"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.casparser.in/v1/credits', 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://api.casparser.in/v1/credits",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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://api.casparser.in/v1/credits"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.casparser.in/v1/credits")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.casparser.in/v1/credits")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"used": 15,
"remaining": 35,
"limit": 50,
"is_unlimited": false,
"resets_at": "2026-02-15T00:00:00Z",
"enabled_features": [
"cams_kfintech_cas_parser",
"cdsl_cas_parser",
"nsdl_cas_parser"
]
}{
"detail": "Access tokens cannot be used for credits API. Use your API key instead."
}{
"status": "failed",
"msg": "Authentication failed: API key is missing. Please provide a valid API key in the x-api-key header."
}Authorization
Check API Credits
Check your remaining API credits and usage for the current billing period.
Returns:
- Number of API calls used and remaining credits
- Credit limit and reset date
- List of enabled features for your plan
Credits reset at the start of each billing period.
POST
/
v1
/
credits
Check API Credits
curl --request POST \
--url https://api.casparser.in/v1/credits \
--header 'x-api-key: <api-key>'import requests
url = "https://api.casparser.in/v1/credits"
headers = {"x-api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.casparser.in/v1/credits', 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://api.casparser.in/v1/credits",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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://api.casparser.in/v1/credits"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.casparser.in/v1/credits")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.casparser.in/v1/credits")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"used": 15,
"remaining": 35,
"limit": 50,
"is_unlimited": false,
"resets_at": "2026-02-15T00:00:00Z",
"enabled_features": [
"cams_kfintech_cas_parser",
"cdsl_cas_parser",
"nsdl_cas_parser"
]
}{
"detail": "Access tokens cannot be used for credits API. Use your API key instead."
}{
"status": "failed",
"msg": "Authentication failed: API key is missing. Please provide a valid API key in the x-api-key header."
}Authorizations
Your API key for authentication.
Use sandbox-with-json-responses as Sandbox key.
Response
Credits information retrieved successfully
Number of credits used this billing period
Example:
15
Remaining credits (null if unlimited)
Example:
35
Total credit limit for billing period
Example:
50
Whether the account has unlimited credits
Example:
false
When credits reset (ISO 8601)
Example:
"2026-02-15T00:00:00Z"
List of API features enabled for your plan
Example:
[
"cams_kfintech_cas_parser",
"cdsl_cas_parser",
"nsdl_cas_parser"
]
Was this page helpful?

