{
  "generated_at": "2026-04-24T15:01:35.625676+00:00",
  "slug": "api-dirtroad-dev-tools-string-utils-length",
  "title": "Dirt Road \u00b7 String Length Utility",
  "url": "https://api.dirtroad.dev/tools/string-utils/length",
  "category": "tools",
  "summary": "Calculate the character length of any input string with sub-cent micropayment.",
  "seo": {
    "title": "Dirt Road String Length API | x402 Utility Tool",
    "description": "Pay-per-call string length utility API. Calculate character count for any string via x402 micropayments on Base. Minimal cost utility endpoint."
  },
  "use_cases": [
    "Validate string length constraints in form processing",
    "Count characters for social media post limits",
    "Pre-check text field lengths before database storage",
    "Automate content length validation in document pipelines"
  ],
  "ideal_buyer": "AI agents and automation systems needing reliable string length calculation with verifiable micropayment settlement.",
  "example_prompt": "Check if this product description fits within 280 characters: 'Experience the ultimate wireless earbuds with 40-hour battery life and active noise cancellation.'",
  "example_request_body": {
    "str": "Experience the ultimate wireless earbuds with 40-hour battery life and active noise cancellation."
  },
  "risk_notes": [],
  "pricing_sanity": {
    "flag": "cheap_outlier",
    "ratio": 0.005,
    "median_category_atomic": 20000
  },
  "pricing_review_required": false,
  "pricing_decimal_suspect": false,
  "trust_tier": "indexed_external",
  "accepts": [
    {
      "scheme": "exact",
      "network": "base",
      "pay_to": "0x71dc0bc68e7f0e2c5aace661b0f3fb995a80aaf4",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "max_amount_required_atomic": "100",
      "max_timeout_seconds": 300,
      "mime_type": "application/json",
      "description": "length (paid)",
      "verified": false,
      "hints": {
        "input": {
          "type": "http",
          "method": "POST"
        },
        "output": {
          "type": "object",
          "required": [
            "str",
            "result"
          ],
          "properties": {
            "str": {
              "type": "string"
            },
            "result": {
              "type": "number"
            }
          }
        }
      }
    }
  ],
  "duplicate_cluster_id": "data-cl-d3e4505c54c2",
  "origin": {
    "slug": "api-dirtroad-dev",
    "host": "api.dirtroad.dev",
    "url": "https://api.dirtroad.dev",
    "favicon": "https://dirtroad.dev/mintlify-assets/_mintlify/favicons/dirtroaddev/hL1CxJhINP8GaPGW/_generated/favicon/favicon.ico"
  },
  "json_ld": {
    "@id": "https://x402all.com/resource/api-dirtroad-dev-tools-string-utils-length",
    "url": "https://x402all.com/resource/api-dirtroad-dev-tools-string-utils-length",
    "name": "Dirt Road \u00b7 String Length Utility",
    "@type": "WebAPI",
    "offers": {
      "url": "https://x402all.com/resource/api-dirtroad-dev-tools-string-utils-length",
      "@type": "Offer",
      "price": "0.0001",
      "availability": "https://schema.org/InStock",
      "priceCurrency": "USDC",
      "priceSpecification": {
        "@type": "UnitPriceSpecification",
        "price": "0.000100",
        "unitText": "call",
        "priceCurrency": "USDC"
      },
      "eligibleCustomerType": "Agent",
      "additionalProperty": [
        {
          "@type": "PropertyValue",
          "name": "paymentNetwork",
          "value": "base"
        },
        {
          "@type": "PropertyValue",
          "name": "paymentAsset",
          "value": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
        }
      ]
    },
    "sameAs": "https://api.dirtroad.dev/tools/string-utils/length",
    "@context": "https://schema.org",
    "provider": {
      "@id": "https://x402all.com/server/api-dirtroad-dev",
      "url": "https://api.dirtroad.dev",
      "name": "api.dirtroad.dev",
      "@type": "Organization"
    },
    "identifier": "api-dirtroad-dev-tools-string-utils-length",
    "description": "Pay-per-call string length utility API. Calculate character count for any string via x402 micropayments on Base. Minimal cost utility endpoint.",
    "potentialAction": {
      "@type": "BuyAction",
      "target": "https://axon402.com/test-buy?resource=api-dirtroad-dev-tools-string-utils-length",
      "description": "Test-buy this endpoint on AXON"
    },
    "applicationCategory": "tools"
  },
  "axon_deep_link": "https://axon402.com/test-buy?resource=api-dirtroad-dev-tools-string-utils-length"
}
