TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Return string edge cases

GEThttps://api.testingapis.com/api/edge-cases/stringsSign in to see this endpoint's URL

Return string edge cases: unicode, emoji, RTL, zero-width, escapes, injection-looking text and a ~10 KB string.

Responses

200
Success.

Example

Request
curl -X GET "https://api.testingapis.com/api/edge-cases/strings" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
{
  "empty": "",
  "whitespace": "   ",
  "leadingTrailingSpaces": "  padded  ",
  "unicode": "Café, naïve, Straße, Ærø, Ελληνικά, Русский, 中文, 日本語, 한국어, हिन्दी",
  "emoji": "🐝🚀🔥👍🏽👨‍👩‍👧‍👦🏳️‍🌈",
  "rtl": "مرحبا بالعالم — שלום עולם",
  "zeroWidth": "zero​width‌joiner‍here",
  "combiningCharacters": "é vs é",
  "escapes": "quote:\" backslash:\\ slash:/ newline:\n tab:\t cr:\r backspace:\b formfeed:\f",
  "unicodeEscapes": "Aé中🐝",
  "controlCharacter": "bell:\u0007 null:\u0000 end",
  "multiline": "line one\nline two\nline three",
  "html": "<script>alert('xss')</script><b>bold</b> &amp; &lt;tag&gt;",
… (9 more lines)

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.