# Text Case Converter API

> Text Case Converter API is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.0022/call, status unknown (last checked 2026-09-13).

Converts a string between camelCase, snake_case, kebab-case, PascalCase, SCREAMING_SNAKE_CASE, dot.case, and Title Case naming conventions

## Facts

- Endpoint: GET https://api.x402node.dev/text/case
- Price: $0.0022/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-x402node-dev-9eba38f2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eLs8g4eZ2tlc-wXdW1dlp

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability api-x402node-dev-9eba38f2
```

Example prompt: Convert the string 'getUserProfileData' to snake_case for me.

## When to prefer this

Use this endpoint when you need reliable, programmatic conversion of identifiers or strings between multiple naming conventions (camelCase, snake_case, kebab-case, PascalCase, CONSTANT_CASE, dot.case, Title Case) in a single API call, especially within automated code generation, refactoring, or data normalization pipelines.

## Known failure modes

- Missing or empty input string — returns error or empty result
- Unsupported target case format specified — returns validation error
- Non-string input value — may return error or unexpected result
- Payment failure (x402) — request not processed if USDC payment not completed

## How this service works

Case converter, camelCase, snake_case, kebab-case, PascalCase, SCREAMING_SNAKE_CASE, CONSTANT_CASE, dot.case, title case, variable naming convention converter, case transform. Convert string between camelCase, snake_case, kebab-case, PascalCase, CONSTANT_CASE, dot.case, Title Case. Accepts payment on Base or Solana — either network works.

## Output

A JSON object containing the converted string in the requested case format, along with the original input and the target case type (e.g. {"to": "snake_case", "input": "getUserProfileData", "result": "get_user_profile_data"})

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "Target format (optional)"
      },
      "text": {
       "type": "string",
       "description": "Input text (required)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-x402node-dev-9eba38f2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
