Lorem Picsum
All posts
Guide

LoremFlickr Alternatives After Flickr Blocked It Again

LoremFlickr not working? Flickr blocked its API again in October 2026. Compare LoremFlickr alternatives, with URL examples and a migration guide.

If your placeholder images suddenly stopped loading, the cause may not be your code. On October 21, 2026, the LoremFlickr update log reported that Flickr had blocked its API access again. For anyone who hotlinks loremflickr.com in a mock-up, a Storybook story, or a test fixture, that sentence explains why the pictures are gone. This guide covers what happened, how to confirm LoremFlickr is not working for you, and which LoremFlickr alternatives are worth switching to, including Lorem Picsum, a random image generator built on CC0 photos.

What happened to LoremFlickr

LoremFlickr is a long-running placeholder service. You put a width, a height, and a keyword in a URL, and it returns a random photo from Flickr that matches the keyword. It has served billions of images, and the whole idea depends on one thing: access to the Flickr API.

That dependency is the problem. The update log on the LoremFlickr homepage tells the story in dates:

  • December 2024: Flickr starts rate-limiting API access, which severely affects LoremFlickr.
  • March 2025: Flickr appears to block the loremflickr.com domain. The advice from the maintainer is to roll your own.
  • May–June 2025: The maintainer cancels the pro version and releases version 3 for self-hosting.
  • February 2026: Flickr unblocks the API and LoremFlickr is back in action.
  • October 2026: Flickr blocks the API use again.

The recovery in February and the renewed block in October illustrate the same dependency. For a demo or CI job, check whether the page still works when the upstream API is unavailable.

Is LoremFlickr not working for you? Quick checks

Before you migrate, confirm the cause. When LoremFlickr is not working, run through this list:

  1. Open https://loremflickr.com/320/240 in a browser tab. If it renders there but not in your app, look at your CSP, ad blocker, or mixed-content rules.
  2. Run curl -I https://loremflickr.com/320/240/dog. A 200 with an image type is healthy. A 4xx or 5xx status, or an HTML error body, means the service is failing.
  3. Check the homepage update log. The maintainer posts blocks and recoveries there, so it is the fastest way to tell an outage from a local problem.
  4. Try a keyword you know exists. The service is documented to return a fallback photo when nothing matches, so a wrong-looking picture is not the same as an outage.
  5. Look at timing. If the failure started in late October 2026, it matches the latest Flickr block.

If the checks point to the upstream block, waiting is a gamble, since earlier blocks lasted for months. A migration is the safer move.

Why people look for LoremFlickr alternatives

Outages are the loudest reason, but developers have several practical needs:

  • Reliability. A service that depends on another company's API can disappear without warning, as it already did twice.
  • Repeatable output. Tests and screenshots need the same image every run.
  • Subject control. Mock-ups still need a coffee shop, a forest, or a city street, not a random picture.
  • Clear licensing. Flickr photos come with many different licenses, so teams often want a catalog where every image is free to use.
  • Larger sizes. LoremFlickr documents a limit of 1,280 pixels per side, and some layouts need full HD.

The best LoremFlickr alternatives

1. Lorem Picsum (picsum.org)

Lorem Picsum is the closest drop-in replacement. It keeps the idea that made LoremFlickr popular, a URL that returns a photo at a size you choose, and it does not depend on Flickr. Every photo is a CC0 photograph, so you can use them in commercial prototypes without attribution.

<!-- Random photo at a free preset size -->
<img src="https://picsum.org/800/600" width="800" height="600" alt="Random placeholder photo" />

<!-- A random photo that matches a subject -->
<img src="https://picsum.org/800/600?tag=dog" width="800" height="600" alt="Dog placeholder" />

<!-- The same photo on every reload, chosen by a seed -->
<img src="https://picsum.org/seed/paris/1200/800" width="1200" height="800" alt="Paris placeholder" />

Why it works as one of the LoremFlickr alternatives:

  • Subjects. Add ?tag=dog to a random URL, or use the subject as a seed, such as /seed/coffee/800/600. The seed is matched against photo tags, so the result is both repeatable and relevant.
  • Search. The catalog holds 100,000 CC0 photos you can search by subject on the site.
  • Free presets. The sizes 800x600, 640x640, 1200x800, 600x800, 1280x720, and 1920x1080 work with no API key or sign-in, in JPEG or WebP.
  • Categories. Narrow a random pick with ?category=city.
  • Effects. Grayscale and blur are available through query parameters.
  • MCP tools. An MCP server lets AI coding agents search photos and build image URLs directly.

Custom dimensions up to 2,000 pixels per side, grayscale, and blur also work without a key or credits. Open the generated file to confirm its format and dimensions. Photo IDs from one catalog do not identify the same image in another catalog.

2. Self-hosting LoremFlickr version 3

The LoremFlickr maintainer recommends this route themselves: version 3 is open source on GitHub, runs on your own server, and lets you set an hourly request limit to stay within Flickr's limits. You get the same keyword-based URLs. The trade-off is that you need your own Flickr API key, a server to run it, and you still depend on Flickr, so a policy change can still affect you.

3. Unsplash API

Unsplash offers high-quality photography under its own license, with search by keyword. It needs an access key and has rate limits, so it is better for production galleries and hero images than for throwaway placeholders. Check the Unsplash API guidelines before you ship, including attribution and use of the returned image URLs.

LoremFlickr alternatives compared

Option Depends on Flickr Keyword search No API key Best for
Lorem Picsum No Yes (tags and seeds) Yes Drop-in random image URLs
LoremFlickr v3 (self-hosted) Yes Yes No, needs a Flickr key Teams who want the original behavior
Unsplash API No Yes No High-quality hero images

Move from LoremFlickr to Lorem Picsum in minutes

Switching is mostly a find and replace. The table below maps each LoremFlickr URL pattern to a Lorem Picsum equivalent.

LoremFlickr Lorem Picsum
loremflickr.com/320/240 picsum.org/800/600
loremflickr.com/320/240/dog picsum.org/800/600?tag=dog
loremflickr.com/320/240?lock=7 picsum.org/seed/7/800/600
loremflickr.com/g/320/240/paris picsum.org/seed/paris/800/600?grayscale

The 800 × 600 examples keep the 4:3 ratio. If you need the exact original size, use 320 × 240 in the new URL and keep the width and height attributes in sync. Grayscale works without credits.

Step 1: centralize the host. Stop hardcoding the domain in components.

const PLACEHOLDER_HOST = 'https://picsum.org';

export function placeholder(width: number, height: number, seed?: string) {
  return seed
    ? `${PLACEHOLDER_HOST}/seed/${seed}/${width}/${height}`
    : `${PLACEHOLDER_HOST}/${width}/${height}`;
}

Step 2: replace lock with a seed. LoremFlickr's lock parameter keeps an image stable only while its cache lasts. A seed gives repeatable results while the catalog stays the same. For fixtures that must never drift, use a photo ID or store a local copy.

Step 3: replace random=1 cache-busters with different seeds. When you need several different images on one page, give each a different seed, such as /seed/card-1/800/600 and /seed/card-2/800/600.

Step 4: add an onerror fallback. A last line of defense keeps a dead image host from leaving a broken icon.

<img
  src="https://picsum.org/seed/card/800/600"
  width="800"
  height="600"
  alt="Card placeholder"
  onerror="this.onerror=null;this.src='/images/placeholder-800x600.jpg'"
/>

Build a placeholder setup that survives the next block

The lesson of LoremFlickr is that any free service tied to someone else's API can disappear. A few habits make that harmless:

  • Wrap the host in one function. Changing providers should be a one-line edit.
  • Prefer seeds. Repeatable images make tests and visual regression runs calm.
  • Set explicit width and height. The layout stays stable even if an image fails.
  • Write real alt text. It helps accessibility and gives users context when a picture does not load.
  • Keep a local default. One small bundled placeholder costs almost nothing and covers emergencies.
  • Use real assets in production. Placeholders belong in development and staging.

Frequently asked questions

Is LoremFlickr down or blocked?

According to the update log on its homepage, Flickr blocked the LoremFlickr API use again on October 21, 2026. Earlier blocks lasted for months, so plan for a migration instead of waiting.

Why does LoremFlickr keep breaking?

It serves photos by calling the Flickr API. When Flickr rate-limits or blocks that access, as it did in December 2024, March 2025, and October 2026, the service cannot return images.

What is the easiest LoremFlickr alternative to switch to?

Lorem Picsum. Its URLs use the same shape of width, height, and an optional subject or seed, and it does not rely on Flickr. In most projects you change a single host constant.

Can I search by keyword like LoremFlickr?

Yes. Use ?tag=dog on a random URL, or put the subject in a seed such as /seed/dog/800/600. You can also search the catalog on the site.

Is Lorem Picsum free?

Yes. The public photo generator and image URL API work without signing in or providing an API key. You can choose presets or custom dimensions up to 2,000 pixels per side and use grayscale or blur for free.

Are the photos safe for commercial use?

The Lorem Picsum catalog is made of CC0 photographs, which can be used in commercial projects without attribution. Check the license of any other provider you add to a fallback chain.

How do I get the same image every time?

Use a seed URL such as /seed/hero/1200/800. The same seed always returns the same photo.

Should I run my own LoremFlickr?

Only if you need exactly its behavior and accept the Flickr dependency. You still need a Flickr API key, and a new block can break your own copy as well.

Final thoughts

LoremFlickr gave developers a simple way to get keyword-based placeholder photos for more than a decade, and the maintainer has been open about every block and recovery. The takeaway is practical: pick one of the LoremFlickr alternatives above, centralize the URL, use seeds for repeatable output, and keep a local fallback image. For most teams, Lorem Picsum is the quickest way to get random, CC0, subject-aware photos back on the page.

Ready to switch? Open Lorem Picsum to search the catalog, copy an image URL, and drop it into your project.