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

Return a sample SVG image

GEThttps://api.testingapis.com/api/formats/svgSign in to see this endpoint's URL

Responses

200
Success.

Example

Request
curl -X GET "https://api.testingapis.com/api/formats/svg" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
Content-Type: image/svg+xml; charset=utf-8

<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200">
  <rect width="200" height="200" fill="#1e1e1e"/>
  <polygon points="100,20 170,60 170,140 100,180 30,140 30,60" fill="#ffc107"/>
  <text x="100" y="110" font-family="sans-serif" font-size="28" text-anchor="middle" fill="#1e1e1e">TestingAPIs</text>
</svg>

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.