https://dummyapi-backend.onrender.com/api
CodeSmash โ†—

๐Ÿ› ๏ธUtilities โ€“ Docs

Utility endpoints for generating custom images, identicons from usernames, returning mock HTTP status codes, and getting the client IP.

Base URL: https://dummyapi-backend.onrender.com/api
GET

Generate a custom PNG image. Params: text, width, height, bg, color, fontSize.

๐Ÿ”—

GET https://dummyapi-backend.onrender.com/api/image?text=Hello&width=300&height=300

?text?width?height?bg?color?fontSize
fetch('https://dummyapi-backend.onrender.com/api/image?text=Hello&width=300&height=300')
.then(res => res.json())
.then(console.log);
GET

Generate an identicon PNG avatar from a username string.

๐Ÿ”—

GET https://dummyapi-backend.onrender.com/api/identicon/:username

fetch('https://dummyapi-backend.onrender.com/api/identicon/:username')
.then(res => res.json())
.then(console.log);
GET

Return a mock HTTP response with any status code.

๐Ÿ”—

GET https://dummyapi-backend.onrender.com/api/mock?status=404

?status
fetch('https://dummyapi-backend.onrender.com/api/mock?status=404')
.then(res => res.json())
.then(console.log);
GET

Returns the client's IP address.

๐Ÿ”—

GET https://dummyapi-backend.onrender.com/api/ip

fetch('https://dummyapi-backend.onrender.com/api/ip')
.then(res => res.json())
.then(console.log);