Hosted REST API 1,000 Real Photography Assets Zero Auth Required

Random Image REST API

Instant zero-auth JSON REST API serving 1,000 real high-definition photography assets across 25 curated categories (humans, animals, nature, cities, space, abstract, etc.). Ideal for UI avatars, placeholders, and app testing.

BASE URL: https://api.ajitdev.com/api/random
LIVE INTERACTIVE PLAYGROUND Interactive
Random Real Photo Image
Asset ID: 1
HUMANS
Title: Humans #001
File Asset: 001.webp

Supported API Endpoints

Explore production REST endpoints with instant live execution

GET /api/random

Returns a single random image JSON object from all 1,000 WebP assets.

GET /api/random?type=cat

Filter by category (human, cat, wild-animal, space, etc.).

GET /api/random/42

Fetch a specific image record by primary ID (1 to 1000).

GET /api/random?limit=5

Fetch multiple random image records in an array (up to 50 items).

Integration Code Examples

// JavaScript Fetch API Example
fetch('https://api.ajitdev.com/api/random?type=cat')
  .then(response => response.json())
  .then(data => {
    console.log('Random Image URL:', data.data.url);
    document.getElementById('myAvatar').src = data.data.url;
  });