{
  "x402Version": 2,
  "id": 72427,
  "slug": "saylorinnovations-api-text-unicode-inspect",
  "resource": "https://saylorinnovations.com/api/text/unicode-inspect",
  "description": "Inspect a string by code point - UTF-8 bytes, category, script, normalization changes, and warnings for zero-width, bidi and mixed-script lookalike text",
  "type": "http",
  "serviceName": "Saylor Innovations Data Desk",
  "mimeType": "application/json",
  "resourceType": "API",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "So11111111111111111111111111111111111111112",
      "amount": "95830",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "type": "object",
    "properties": {
      "characters": {
        "type": "number",
        "description": "Number of Unicode characters"
      },
      "utf8_bytes": {
        "type": "number",
        "description": "Utf8, in bytes"
      },
      "utf16_units": {
        "type": "number",
        "description": "Utf16 units"
      },
      "ascii_only": {
        "type": "boolean",
        "description": "Ascii only"
      },
      "scripts": {
        "type": "array",
        "description": "Writing systems present"
      },
      "mixed_scripts": {
        "type": "boolean",
        "description": "Mixed scripts"
      },
      "has_invisible": {
        "type": "boolean",
        "description": "True when this has invisible"
      },
      "warnings": {
        "type": "array",
        "description": "Risks found: invisible, bidirectional or mixed-script characters"
      },
      "normalization": {
        "type": "object",
        "description": "For NFC, NFD, NFKC and NFKD: code point count and whether the form differs"
      },
      "inspected": {
        "type": "array",
        "description": "Per-character details: code point, UTF-8 bytes, category, script and flags",
        "items": {
          "type": "object",
          "properties": {
            "char": {
              "description": "The character, null for invisible ones",
              "type": [
                "string",
                "null"
              ]
            },
            "decimal": {
              "description": "Decimal code point",
              "type": [
                "number",
                "null"
              ]
            },
            "script": {
              "description": "Unicode script",
              "type": [
                "string",
                "null"
              ]
            },
            "utf8": {
              "description": "UTF-8 bytes in hex",
              "type": [
                "string",
                "null"
              ]
            },
            "invisible": {
              "description": "True when the character is invisible",
              "type": [
                "boolean",
                "null"
              ]
            },
            "code_point": {
              "description": "Code point"
            },
            "category": {
              "description": "Category"
            },
            "category_name": {
              "description": "Category name"
            },
            "utf16_units": {
              "description": "Utf16 units"
            },
            "bidi_control": {
              "description": "Bidi control"
            }
          }
        }
      },
      "source": {
        "type": "string",
        "description": "Data source the values come from"
      }
    },
    "required": [
      "characters",
      "warnings",
      "inspected"
    ]
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "type": "http",
          "method": "GET",
          "queryParams": {
            "text": "pаypal​"
          }
        },
        "output": {
          "type": "json",
          "example": {
            "characters": 7,
            "utf8_bytes": 10,
            "utf16_units": 7,
            "ascii_only": false,
            "scripts": [
              "Latin",
              "Cyrillic"
            ],
            "mixed_scripts": true,
            "has_invisible": true,
            "warnings": [
              "contains invisible format characters (zero-width or soft hyphen)",
              "mixes scripts (Latin, Cyrillic), a common homoglyph spoofing sign"
            ],
            "normalization": {
              "nfc": {
                "code_points": 7,
                "changed": false
              },
              "nfd": {
                "code_points": 7,
                "changed": false
              },
              "nfkc": {
                "code_points": 7,
                "changed": false
              },
              "nfkd": {
                "code_points": 7,
                "changed": false
              }
            },
            "inspected": [
              {
                "char": "p",
                "code_point": "U+0070",
                "decimal": 112,
                "category": "Ll",
                "category_name": "lowercase letter",
                "script": "Latin",
                "utf8": "70",
                "utf16_units": 1,
                "invisible": false,
                "bidi_control": false
              },
              {
                "char": "а",
                "code_point": "U+0430",
                "decimal": 1072,
                "category": "Ll",
                "category_name": "lowercase letter",
                "script": "Cyrillic",
                "utf8": "D0 B0",
                "utf16_units": 1,
                "invisible": false,
                "bidi_control": false
              },
              {
                "char": "y",
                "code_point": "U+0079",
                "decimal": 121,
                "category": "Ll",
                "category_name": "lowercase letter",
                "script": "Latin",
                "utf8": "79",
                "utf16_units": 1,
                "invisible": false,
                "bidi_control": false
              }
            ],
            "source": "Unicode character properties from the JavaScript engine (Unicode general category and script)"
          }
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "input": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "http"
              },
              "method": {
                "type": "string",
                "enum": [
                  "GET"
                ]
              },
              "queryParams": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "description": "Text to inspect, up to 200 characters"
                  }
                },
                "required": [
                  "text"
                ]
              }
            },
            "required": [
              "type",
              "method"
            ],
            "additionalProperties": false
          },
          "output": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "json"
              },
              "example": {
                "type": "object",
                "properties": {
                  "characters": {
                    "type": "number",
                    "description": "Number of Unicode characters"
                  },
                  "utf8_bytes": {
                    "type": "number",
                    "description": "Utf8, in bytes"
                  },
                  "utf16_units": {
                    "type": "number",
                    "description": "Utf16 units"
                  },
                  "ascii_only": {
                    "type": "boolean",
                    "description": "Ascii only"
                  },
                  "scripts": {
                    "type": "array",
                    "description": "Writing systems present"
                  },
                  "mixed_scripts": {
                    "type": "boolean",
                    "description": "Mixed scripts"
                  },
                  "has_invisible": {
                    "type": "boolean",
                    "description": "True when this has invisible"
                  },
                  "warnings": {
                    "type": "array",
                    "description": "Risks found: invisible, bidirectional or mixed-script characters"
                  },
                  "normalization": {
                    "type": "object",
                    "description": "For NFC, NFD, NFKC and NFKD: code point count and whether the form differs"
                  },
                  "inspected": {
                    "type": "array",
                    "description": "Per-character details: code point, UTF-8 bytes, category, script and flags",
                    "items": {
                      "type": "object",
                      "properties": {
                        "char": {
                          "description": "The character, null for invisible ones",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "decimal": {
                          "description": "Decimal code point",
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "script": {
                          "description": "Unicode script",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "utf8": {
                          "description": "UTF-8 bytes in hex",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "invisible": {
                          "description": "True when the character is invisible",
                          "type": [
                            "boolean",
                            "null"
                          ]
                        },
                        "code_point": {
                          "description": "Code point"
                        },
                        "category": {
                          "description": "Category"
                        },
                        "category_name": {
                          "description": "Category name"
                        },
                        "utf16_units": {
                          "description": "Utf16 units"
                        },
                        "bidi_control": {
                          "description": "Bidi control"
                        }
                      }
                    }
                  },
                  "source": {
                    "type": "string",
                    "description": "Data source the values come from"
                  }
                },
                "required": [
                  "characters",
                  "warnings",
                  "inspected"
                ]
              }
            },
            "required": [
              "type"
            ]
          }
        },
        "required": [
          "input"
        ]
      }
    }
  },
  "tags": [
    "detect hidden zero width",
    "is this string using lookalike",
    "unicode code points of a string",
    "utf-8 bytes of a character",
    "homoglyph phishing check"
  ],
  "sourceHost": "saylorinnovations.com",
  "lastUpdated": "2026-10-26T22:14:01.944Z",
  "quality": {},
  "metadata": {
    "serviceName": "Saylor Innovations Data Desk",
    "method": "GET",
    "mimeType": "application/json",
    "inputSchema": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string",
          "description": "Text to inspect, up to 200 characters"
        }
      },
      "required": [
        "text"
      ]
    },
    "exampleResponse": {
      "characters": 7,
      "utf8_bytes": 10,
      "utf16_units": 7,
      "ascii_only": false,
      "scripts": [
        "Latin",
        "Cyrillic"
      ],
      "mixed_scripts": true,
      "has_invisible": true,
      "warnings": [
        "contains invisible format characters (zero-width or soft hyphen)",
        "mixes scripts (Latin, Cyrillic), a common homoglyph spoofing sign"
      ],
      "normalization": {
        "nfc": {
          "code_points": 7,
          "changed": false
        },
        "nfd": {
          "code_points": 7,
          "changed": false
        },
        "nfkc": {
          "code_points": 7,
          "changed": false
        },
        "nfkd": {
          "code_points": 7,
          "changed": false
        }
      },
      "inspected": [
        {
          "char": "p",
          "code_point": "U+0070",
          "decimal": 112,
          "category": "Ll",
          "category_name": "lowercase letter",
          "script": "Latin",
          "utf8": "70",
          "utf16_units": 1,
          "invisible": false,
          "bidi_control": false
        },
        {
          "char": "а",
          "code_point": "U+0430",
          "decimal": 1072,
          "category": "Ll",
          "category_name": "lowercase letter",
          "script": "Cyrillic",
          "utf8": "D0 B0",
          "utf16_units": 1,
          "invisible": false,
          "bidi_control": false
        },
        {
          "char": "y",
          "code_point": "U+0079",
          "decimal": 121,
          "category": "Ll",
          "category_name": "lowercase letter",
          "script": "Latin",
          "utf8": "79",
          "utf16_units": 1,
          "invisible": false,
          "bidi_control": false
        }
      ],
      "source": "Unicode character properties from the JavaScript engine (Unicode general category and script)"
    },
    "parameterLocation": "query",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "type": "http",
            "method": "GET",
            "queryParams": {
              "text": "pаypal​"
            }
          },
          "output": {
            "type": "json",
            "example": {
              "characters": 7,
              "utf8_bytes": 10,
              "utf16_units": 7,
              "ascii_only": false,
              "scripts": [
                "Latin",
                "Cyrillic"
              ],
              "mixed_scripts": true,
              "has_invisible": true,
              "warnings": [
                "contains invisible format characters (zero-width or soft hyphen)",
                "mixes scripts (Latin, Cyrillic), a common homoglyph spoofing sign"
              ],
              "normalization": {
                "nfc": {
                  "code_points": 7,
                  "changed": false
                },
                "nfd": {
                  "code_points": 7,
                  "changed": false
                },
                "nfkc": {
                  "code_points": 7,
                  "changed": false
                },
                "nfkd": {
                  "code_points": 7,
                  "changed": false
                }
              },
              "inspected": [
                {
                  "char": "p",
                  "code_point": "U+0070",
                  "decimal": 112,
                  "category": "Ll",
                  "category_name": "lowercase letter",
                  "script": "Latin",
                  "utf8": "70",
                  "utf16_units": 1,
                  "invisible": false,
                  "bidi_control": false
                },
                {
                  "char": "а",
                  "code_point": "U+0430",
                  "decimal": 1072,
                  "category": "Ll",
                  "category_name": "lowercase letter",
                  "script": "Cyrillic",
                  "utf8": "D0 B0",
                  "utf16_units": 1,
                  "invisible": false,
                  "bidi_control": false
                },
                {
                  "char": "y",
                  "code_point": "U+0079",
                  "decimal": 121,
                  "category": "Ll",
                  "category_name": "lowercase letter",
                  "script": "Latin",
                  "utf8": "79",
                  "utf16_units": 1,
                  "invisible": false,
                  "bidi_control": false
                }
              ],
              "source": "Unicode character properties from the JavaScript engine (Unicode general category and script)"
            }
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "type": "object",
          "properties": {
            "input": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "http"
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "GET"
                  ]
                },
                "queryParams": {
                  "type": "object",
                  "properties": {
                    "text": {
                      "type": "string",
                      "description": "Text to inspect, up to 200 characters"
                    }
                  },
                  "required": [
                    "text"
                  ]
                }
              },
              "required": [
                "type",
                "method"
              ],
              "additionalProperties": false
            },
            "output": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "json"
                },
                "example": {
                  "type": "object",
                  "properties": {
                    "characters": {
                      "type": "number",
                      "description": "Number of Unicode characters"
                    },
                    "utf8_bytes": {
                      "type": "number",
                      "description": "Utf8, in bytes"
                    },
                    "utf16_units": {
                      "type": "number",
                      "description": "Utf16 units"
                    },
                    "ascii_only": {
                      "type": "boolean",
                      "description": "Ascii only"
                    },
                    "scripts": {
                      "type": "array",
                      "description": "Writing systems present"
                    },
                    "mixed_scripts": {
                      "type": "boolean",
                      "description": "Mixed scripts"
                    },
                    "has_invisible": {
                      "type": "boolean",
                      "description": "True when this has invisible"
                    },
                    "warnings": {
                      "type": "array",
                      "description": "Risks found: invisible, bidirectional or mixed-script characters"
                    },
                    "normalization": {
                      "type": "object",
                      "description": "For NFC, NFD, NFKC and NFKD: code point count and whether the form differs"
                    },
                    "inspected": {
                      "type": "array",
                      "description": "Per-character details: code point, UTF-8 bytes, category, script and flags",
                      "items": {
                        "type": "object",
                        "properties": {
                          "char": {
                            "description": "The character, null for invisible ones",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "decimal": {
                            "description": "Decimal code point",
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "script": {
                            "description": "Unicode script",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "utf8": {
                            "description": "UTF-8 bytes in hex",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "invisible": {
                            "description": "True when the character is invisible",
                            "type": [
                              "boolean",
                              "null"
                            ]
                          },
                          "code_point": {
                            "description": "Code point"
                          },
                          "category": {
                            "description": "Category"
                          },
                          "category_name": {
                            "description": "Category name"
                          },
                          "utf16_units": {
                            "description": "Utf16 units"
                          },
                          "bidi_control": {
                            "description": "Bidi control"
                          }
                        }
                      }
                    },
                    "source": {
                      "type": "string",
                      "description": "Data source the values come from"
                    }
                  },
                  "required": [
                    "characters",
                    "warnings",
                    "inspected"
                  ]
                }
              },
              "required": [
                "type"
              ]
            }
          },
          "required": [
            "input"
          ]
        }
      }
    },
    "examples": [
      {
        "label": "Unpaid discovery call",
        "method": "GET",
        "url": "https://saylorinnovations.com/api/text/unicode-inspect?text=p%D0%B0ypal%E2%80%8B",
        "expectedStatus": 402
      }
    ],
    "cacheTtlSeconds": 0,
    "capabilities": [],
    "noAccountRequired": true,
    "noApiKeyRequired": true,
    "sideEffects": "Paid calls settle the advertised payment; see the provider contract for execution behavior.",
    "payment": {
      "protocol": "x402",
      "settlement": "direct-to-provider"
    },
    "provider": {
      "name": "Saylor Innovations",
      "host": "saylorinnovations.com",
      "manifestUrl": "https://saylorinnovations.com/.well-known/x402.json"
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": true,
  "featured": false,
  "provider": {
    "host": "saylorinnovations.com",
    "manifest_name": "Saylor Innovations Knowledge Base",
    "source": "submitted",
    "source_manifest_url": "https://saylorinnovations.com/.well-known/x402.json",
    "submitted_at": "2026-10-26T05:52:02.113Z"
  },
  "exampleResponse": {
    "characters": 0,
    "utf8_bytes": 0,
    "utf16_units": 0,
    "ascii_only": true,
    "scripts": [
      "value"
    ],
    "mixed_scripts": true,
    "has_invisible": true,
    "warnings": [
      "value"
    ],
    "normalization": {},
    "inspected": [
      {
        "char": "string",
        "decimal": 0,
        "script": "string",
        "utf8": "string",
        "invisible": true,
        "code_point": null,
        "category": null,
        "category_name": null,
        "utf16_units": null,
        "bidi_control": null
      }
    ],
    "source": "string"
  }
}