Media APIs

Various endpoints for image, SVG, avatar, QR codes, and other media needs for your applications.

Images

Generate placeholder images and use stock photos for your projects.

https://mockly.me/image/placeholder
GET

Placeholder images generate simple background images with text.
You can specify dimensions, apply blur effects, and convert to grayscale.

Example URLs:

Available Parameters:

  • /{width} - Width of the image (1-2000px)
  • /{width}/{height} - Width and height of the image (1-2000px each)
  • ?blur=n - Blur effect (0-10)
https://mockly.me/image/stock
GET

Stock images return real photos for your mockups.
You can specify dimensions (images are center-cropped), apply blur, and convert to grayscale.
Note: Default stock images return a random image each time. Custom sizes are cached for better performance.

Example URLs:

Effect Combinations:

Available Parameters:

  • /{width} - Width of the image (1-2000px)
  • /{width}/{height} - Width and height of the image (1-2000px each)
  • ?blur=n - Blur effect (0-10)
  • ?grayscale=true - Convert to grayscale
SVGs

Generate SVG graphics for your projects.

https://mockly.me/svg
GET

Example Output:

Sample SVG

Basic SVG placeholder with "Placeholder" text

Customization:

Avatars

Profile pictures and avatar generation for your applications.

https://mockly.me/avatar
GET
Random Avatar

Random avatar with initials (default size: 200px)

Examples:

QR Codes

Generate QR codes for links, text, and other data.

Utilities

Additional media-related utility endpoints.

https://mockly.me/pixel
GET

1×1 transparent pixel (typically used for tracking)

Transparent Pixel

Pixel (magnified for visibility)

Use this endpoint for tracking email opens, page views, or other analytics purposes.

AI-Powered

Meet Mockly Assistant

Your AI assistant for API testing, debugging and code generation. Access the power of mockly.me directly in ChatGPT.

  • Generate code examples in your preferred language
  • Get guidance for request/response handling and formatting
  • Supercharged by ChatGPT Plus from OpenAI

"How do I send data to a POST endpoint"

"I can show you how to structure your request with headers and JSON — here's a code example..."

Powered by AI