{
  "generated_at": "2026-04-24T15:01:35.625676+00:00",
  "slug": "httpay-xyz-api-text-diff",
  "title": "HTTPay \u00b7 Text Diff Utility",
  "url": "https://httpay.xyz/api/text-diff",
  "category": "tools",
  "summary": "Compute character-level or line-level differences between two text strings for version comparison and change detection.",
  "seo": {
    "title": "Text Diff x402 API | String Comparison Utility",
    "description": "Pay-per-call text utility API via x402. Compute diffs between two text strings. $0.003 USDC per call on Base."
  },
  "use_cases": [
    "Compare document versions to identify changes",
    "Detect modifications in configuration files",
    "Validate text transformations in pipelines",
    "Generate human-readable change summaries"
  ],
  "ideal_buyer": "Developers and CI/CD pipelines requiring programmatic text comparison without local diff libraries.",
  "example_prompt": "Show me the differences between these two code snippets, highlighting added and removed lines.",
  "example_request_body": {
    "type": "lines",
    "text1": "function greet() {\n  return 'Hello';\n}",
    "text2": "function greet(name) {\n  return `Hello, ${name}`;\n}"
  },
  "risk_notes": [],
  "pricing_sanity": {
    "flag": "cheap",
    "ratio": 0.15,
    "median_category_atomic": 20000
  },
  "pricing_review_required": false,
  "pricing_decimal_suspect": false,
  "trust_tier": "indexed_external",
  "accepts": [
    {
      "scheme": "exact",
      "network": "base",
      "pay_to": "0x5f5d6fcb315871c26f720dc6fef17052dd984359",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "max_amount_required_atomic": "3000",
      "max_timeout_seconds": 60,
      "verified": false,
      "hints": {
        "input": {
          "type": "http",
          "method": "POST",
          "bodyType": "json"
        },
        "output": {
          "type": "json",
          "example": {
            "description": "Compute the diff between two text strings. POST JSON body: {text1, text2, type}. 'type' can be 'chars', 'words', or 'lines' (default: lines). Returns added/removed counts and a structured patch. Uses the 'diff' npm package."
          }
        }
      }
    }
  ],
  "origin": {
    "slug": "httpay-xyz",
    "host": "httpay.xyz",
    "title": "httpay.xyz \u2014 307 Pay-Per-Call APIs via x402 on Base",
    "description": "307 pay-per-call APIs (287 native + Gateway for 37 services). Token intelligence, DeFi yields, MEV risk, AI tools, web scraping. No API keys \u2014 pay $0.001\u2013$0.05 USDC per call.",
    "url": "https://httpay.xyz",
    "og_image": "https://httpay.xyz/og-image.png",
    "favicon": "https://httpay.xyz/favicon.png"
  },
  "json_ld": {
    "@id": "https://x402all.com/resource/httpay-xyz-api-text-diff",
    "url": "https://x402all.com/resource/httpay-xyz-api-text-diff",
    "name": "HTTPay \u00b7 Text Diff Utility",
    "@type": "WebAPI",
    "offers": {
      "url": "https://x402all.com/resource/httpay-xyz-api-text-diff",
      "@type": "Offer",
      "price": "0.003",
      "availability": "https://schema.org/InStock",
      "priceCurrency": "USDC",
      "priceSpecification": {
        "@type": "UnitPriceSpecification",
        "price": "0.003000",
        "unitText": "call",
        "priceCurrency": "USDC"
      },
      "eligibleCustomerType": "Agent",
      "additionalProperty": [
        {
          "@type": "PropertyValue",
          "name": "paymentNetwork",
          "value": "base"
        },
        {
          "@type": "PropertyValue",
          "name": "paymentAsset",
          "value": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
        }
      ]
    },
    "sameAs": "https://httpay.xyz/api/text-diff",
    "@context": "https://schema.org",
    "provider": {
      "@id": "https://x402all.com/server/httpay-xyz",
      "url": "https://httpay.xyz",
      "name": "httpay.xyz \u2014 307 Pay-Per-Call APIs via x402 on Base",
      "@type": "Organization"
    },
    "identifier": "httpay-xyz-api-text-diff",
    "description": "Pay-per-call text utility API via x402. Compute diffs between two text strings. $0.003 USDC per call on Base.",
    "potentialAction": {
      "@type": "BuyAction",
      "target": "https://axon402.com/test-buy?resource=httpay-xyz-api-text-diff",
      "description": "Test-buy this endpoint on AXON"
    },
    "applicationCategory": "tools"
  },
  "axon_deep_link": "https://axon402.com/test-buy?resource=httpay-xyz-api-text-diff"
}
