CUSIP check API
Check the length and check digit of a CUSIP and split it into issuer, issue and check digit.
POST https://api.curatedapi.com/v1/calc/check/cusip
- Version 1
- MCP tool
calc_check_cusip - Try it in the browser
Checks a nine-character CUSIP, the identifier of US and Canadian securities: six characters for the issuer, two for the issue and a check digit worked out with the CUSIP form of the Luhn rule (the 'modulus 10 double-add-double' method).
Formula
value each character (digits as they are, A = 10 … Z = 35, * = 36, @ = 37, # = 38), double every second value, add the digits of all values; check digit = (10 − total mod 10) mod 10
- The number is checked by arithmetic alone. Nothing is looked up, so a valid result means the number is well formed, not that the account, company or security exists.
Inputs
Send numbers as strings to keep every digit. options sets precision and rounding (see numbers and rounding).
| Input | Type | Description |
|---|---|---|
number required |
string | The nine-character CUSIP. Spaces, dots, hyphens and slashes are ignored, and lower-case letters are read as upper case. At most 64 characters. |
Result
Under result in the answer, next to exactness, precision, inputs, formula, references and warnings.
| Result | Type | Description |
|---|---|---|
valid | boolean | Whether the CUSIP passes every check. |
normalized | string | The number as it was checked: separators removed, letters in upper case. |
problem | string | What is wrong, when valid is false: CHARACTERS: a character that cannot appear in this kind of number; LENGTH: the wrong number of characters; COUNTRY: an unknown or unsupported country code; FORMAT: the right length but the wrong structure; CHECK_DIGIT: the check digit or check characters do not match the rest of the number. |
message | string | The result in a sentence, naming the rule that failed. |
issuer | string | Characters 1 to 6. |
issue | string | Characters 7 and 8. |
check_digit | string | The ninth character. |
expected_check_digit | string | The check digit the first eight characters give. |
Examples
Apple Inc. common stock
curl https://api.curatedapi.com/v1/calc/check/cusip \
-H "Authorization: Bearer $CURATEDAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"number": "037833100"
}'
{
"calculator": "check/cusip@1",
"result": {
"valid": true,
"normalized": "037833100",
"message": "A well-formed CUSIP.",
"issuer": "037833",
"issue": "10",
"check_digit": "0",
"expected_check_digit": "0"
},
"exactness": {},
"precision": null,
"inputs": {
"number": "037833100"
},
"formula": "value each character (digits as they are, A = 10 … Z = 35, * = 36, @ = 37, # = 38), double every second value, add the digits of all values; check digit = (10 − total mod 10) mod 10",
"references": [
{
"title": "CUSIP Global Services: about CUSIP identifiers",
"url": "https://www.cusip.com/identifiers.html"
},
{
"title": "CUSIP: check digit calculation",
"url": "https://en.wikipedia.org/wiki/CUSIP"
}
],
"warnings": []
}
Wrong check digit
curl https://api.curatedapi.com/v1/calc/check/cusip \
-H "Authorization: Bearer $CURATEDAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"number": "037833108"
}'
{
"calculator": "check/cusip@1",
"result": {
"valid": false,
"normalized": "037833108",
"problem": "CHECK_DIGIT",
"message": "The check digit is 8, but the first eight characters give 0.",
"issuer": "037833",
"issue": "10",
"check_digit": "8",
"expected_check_digit": "0"
},
"exactness": {},
"precision": null,
"inputs": {
"number": "037833108"
},
"formula": "value each character (digits as they are, A = 10 … Z = 35, * = 36, @ = 37, # = 38), double every second value, add the digits of all values; check digit = (10 − total mod 10) mod 10",
"references": [
{
"title": "CUSIP Global Services: about CUSIP identifiers",
"url": "https://www.cusip.com/identifiers.html"
},
{
"title": "CUSIP: check digit calculation",
"url": "https://en.wikipedia.org/wiki/CUSIP"
}
],
"warnings": []
}
References
Results follow each calculator's documented rules and the sources listed. They are not financial, tax or legal advice. Check that the rules fit your case before you rely on a result. See the terms.
Errors share one format; see errors. Billing, retries and batches work the same for every endpoint.