{
  "x402Version": 2,
  "id": 40272,
  "slug": "40272",
  "resource": "https://after6labo-x402-testnet.silly-detective.workers.dev/paid/text-stats",
  "description": "Deterministic Unicode text statistics: UTF-16 units, Unicode code points, UTF-8 bytes, line count, and Japanese script counts.",
  "type": "http",
  "resourceType": "Developer Tool",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:84532",
      "payTo": "0x4b0ace1A77E6971d8F61d3AdBc2ab40B927DA17A",
      "asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
      "amount": "1000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "asciiCodePoints": {
            "type": "integer"
          },
          "hanCodePoints": {
            "type": "integer"
          },
          "hiraganaCodePoints": {
            "type": "integer"
          },
          "katakanaCodePoints": {
            "type": "integer"
          },
          "lines": {
            "type": "integer"
          },
          "unicodeCodePoints": {
            "type": "integer"
          },
          "utf16CodeUnits": {
            "type": "integer"
          },
          "utf8Bytes": {
            "type": "integer"
          }
        },
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "text": "生成AIのAPIを試す"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "asciiCodePoints": 5,
            "hanCodePoints": 3,
            "hiraganaCodePoints": 3,
            "katakanaCodePoints": 0,
            "lines": 1,
            "ok": true,
            "paid": true,
            "unicodeCodePoints": 11,
            "utf16CodeUnits": 11,
            "utf8Bytes": 23
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "text": {
                    "description": "Text to analyze. UTF-8 URL-encode it as the text query parameter.",
                    "maxLength": 2048,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "text"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "asciiCodePoints": {
                    "type": "integer"
                  },
                  "hanCodePoints": {
                    "type": "integer"
                  },
                  "hiraganaCodePoints": {
                    "type": "integer"
                  },
                  "katakanaCodePoints": {
                    "type": "integer"
                  },
                  "lines": {
                    "type": "integer"
                  },
                  "unicodeCodePoints": {
                    "type": "integer"
                  },
                  "utf16CodeUnits": {
                    "type": "integer"
                  },
                  "utf8Bytes": {
                    "type": "integer"
                  }
                },
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "after6labo-x402-testnet.silly-detective.workers.dev",
  "lastUpdated": "2026-10-08T12:31:28.794Z",
  "quality": {
    "calls30d": 14,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-08T12:31:28.257Z"
  },
  "metadata": {
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "text": "生成AIのAPIを試す"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "asciiCodePoints": 5,
              "hanCodePoints": 3,
              "hiraganaCodePoints": 3,
              "katakanaCodePoints": 0,
              "lines": 1,
              "ok": true,
              "paid": true,
              "unicodeCodePoints": 11,
              "utf16CodeUnits": 11,
              "utf8Bytes": 23
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "text": {
                      "description": "Text to analyze. UTF-8 URL-encode it as the text query parameter.",
                      "maxLength": 2048,
                      "minLength": 1,
                      "type": "string"
                    }
                  },
                  "required": [
                    "text"
                  ],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "asciiCodePoints": {
                      "type": "integer"
                    },
                    "hanCodePoints": {
                      "type": "integer"
                    },
                    "hiraganaCodePoints": {
                      "type": "integer"
                    },
                    "katakanaCodePoints": {
                      "type": "integer"
                    },
                    "lines": {
                      "type": "integer"
                    },
                    "unicodeCodePoints": {
                      "type": "integer"
                    },
                    "utf16CodeUnits": {
                      "type": "integer"
                    },
                    "utf8Bytes": {
                      "type": "integer"
                    }
                  },
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "after6labo-x402-testnet.silly-detective.workers.dev",
    "manifest_name": "after6labo-x402-testnet.silly-detective.workers.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "asciiCodePoints": 0,
      "hanCodePoints": 0,
      "hiraganaCodePoints": 0,
      "katakanaCodePoints": 0,
      "lines": 0,
      "unicodeCodePoints": 0,
      "utf16CodeUnits": 0,
      "utf8Bytes": 0
    },
    "type": "string"
  }
}