API Documentation

This documentation provides complete information about our public API tools including image generation, placeholder fallback images, PDF creation, and a fake users API for testing and development purposes.

All endpoints are REST-based, lightweight, and designed for developers who need fast and reliable utilities for projects, demos, and testing environments.

Image Generator API

Generate dynamic placeholder images with custom width, height, text overlay, and color customization. Useful for UI mockups, development environments, and testing image layouts.

Request Parameters

width x heightImage size in format 600x400.
textText displayed on the image.
bgBackground color (hex value without #).
colorText color (hex value without #).

Example Request

/api/image/600x400?text=Hello&bg=6366f1&color=ffffff

No Image Placeholder API

Generate fallback images for products, profiles, or content when an image is missing. This helps maintain UI consistency in websites and applications.

Request Parameters

wImage width in pixels.
hImage height in pixels.
textText displayed on the placeholder.
bgBackground color (hex value).

Example Request

/no-image?w=400&h=300&text=No+Image&bg=cccccc

PDF Generator API

Generate simple PDF documents dynamically using query parameters. Ideal for generating test documents, invoices, demo reports, or downloadable content previews.

Request Parameters

titleTitle displayed in the PDF.
textMain content text.
pagesNumber of pages (maximum 5).

Example Request

/api/sample.pdf?title=Hello&text=World&pages=1

Fake Users API

A test API that returns paginated fake user data. Supports search, filtering by role, and pagination parameters. Useful for frontend development and testing dashboards.

Request Parameters

pagePage number for pagination.
limitNumber of users per page (maximum 100).
searchSearch users by name or email.
roleFilter users by role.

Example Request

/api/users?page=1&limit=10&search=john&role=admin