Placeholder API Documentation
Dynamic image fetching & rendering endpoint
Base URL
https://sodeom.com/placeholder
Query Parameters
-
q(required) — Search term for the placeholder image.
Example:?q=car -
page(optional, default=1) — Page number of search results.
Example:?q=car&page=2
Example Request
GET request:
https://sodeom.com/placeholder?q=car
Example Response
The endpoint returns an image file directly. You can embed it in HTML:
<img src="https://sodeom.com/placeholder?q=car" alt="Car Image">
Error Handling
- If
qis missing → returnsEnter The Query - If no image is found → returns a plain text error message
Usage in HTML
<!-- Example integration --> <img src="https://sodeom.com/placeholder?q=mountain" alt="Mountain">