cURL
curl --request POST \ --url https://api.dirtroad.dev/tools/string-utils/length \ --header 'Content-Type: application/json' \ --header 'X-Payment: <api-key>' \ --data ' { "str": "<string>" } '
{ "str": "<string>", "result": 123 }
Get the length of a string Requires x402 blockchain payment.
x402 blockchain payment authorization header containing signed EIP-3009 Transfer with Authorization
Input string to process
String length