← Back to Home

SVG Image

/image/svg
Returns a sample SVG image. Useful for testing vector graphics rendering.

Examples

curl
# Download SVG image
curl https://tcpdata.com/image/svg -o image.svg
JavaScript (fetch)
fetch('https://tcpdata.com/image/svg')
  .then(res => res.text())
  .then(svg => {
    const div = document.createElement('div');
    div.innerHTML = svg;
    document.body.appendChild(div);
  });
Python (requests)
import requests

response = requests.get('https://tcpdata.com/image/svg')
with open('image.svg', 'w') as f:
    f.write(response.text)