Family Trip Website from Google Photos Albums

Build a family trip photo website with a page for each region, pulling images from Google Photos shared albums. No API, no OAuth, and free to run.

Illustration for the guide: Family Trip Website from Google Photos Albums

Every family trip ends the same way. A thousand photos are spread across everyone's phones, and a group chat squeezes all of them down to potato quality.

This guide shows how I build a trip website in about 20 minutes, with one page per region and every photo pulled straight from a shared Google Photos album. There is no API, no account linking, and it is free to run.

In short: You build one site with a page for each region of the trip. Each page reads photos from a public Google Photos shared album through a small server-side function, so you do not store any images yourself. You can build the whole thing with one copy-paste prompt in Lovable or Base44.

Key takeaways

  • On March 31, 2025, Google removed read access to the Library API. Apps can now only reach photos they uploaded.
  • A shared album link (photos.app.goo.gl) includes the photo data in the page HTML, in a block named AF_initDataCallback.
  • Each photo gives you a base URL that you can resize with suffixes such as =w400, =w1920-h1080, and =d.
  • The fetch has to run on the server because Google blocks CORS requests from the browser.
  • Photo base URLs are not permanent, so the site refetches the album and caches the result for 1 hour.
  • A shared album link is not a permission. Anyone with the link can see the photos.

Why build a trip photo site instead of sharing a group chat?

A trip site gives the family one link where they can see everything in full quality, without installing anything. Each region gets its own page, so the photos stay organized by place.

The idea is simple. You create a shared album for each region, and each page pulls photos from its album. You send the family one link, and everyone sees the full set.

Can you still connect a site to the Google Photos API?

No, not the way it used to work. On March 31, 2025, Google removed read access to the Library API, so an app can only access photos it uploaded itself. The official route now is the Picker API, where the user chooses photos manually each time.

In practice, this means "connect with Google and see all my photos" no longer works.

How do you pull photos from a shared album without an API?

You read the public album page. When you share an album in Google Photos ("Share" > "Create link"), Google creates a public page at an address that starts with photos.app.goo.gl. That page loads all the photo data inside its HTML, in a JSON block named AF_initDataCallback. When you scroll, the page also makes a call to batchexecute, the same call the Google Photos website makes itself.

Both of these are available to anyone with the link. You do not need OAuth or an API key.

Each photo comes with a base URL. You control its size by adding a suffix:

SuffixUse it for
=w400Thumbnails in the gallery grid (fast)
=w1920-h1080Full view in the lightbox
=dDownloading the original file

This gives you a fast gallery and full quality on click, and you never store a photo yourself. Google acts as your CDN.

Which open-source projects do this?

Several open-source projects already work this way. Each one is a good reference for the scraping logic.

ProjectWhat it does
eyalgal/album_slideshowThe most advanced scraper right now. It uses batchexecute with pagination and pulls up to 20,000 photos from one shared album, including capture dates, GPS, and filters such as "last 7 days" and "on this day last year." It is built as a Home Assistant integration, but the fetch logic in the Google Photos provider file is the best reference. Give that logic to Lovable as an example.
alexcrist/scrape-google-photosA simple CLI. You give it an album link and it returns a JS file with all the photo URLs. It returns preview versions, which are light and fast, so they work well for a website. For a static site, run it once per album and paste the output into your project.
ValentinH/google-photos-apiA serverless function (AWS Lambda + Express) that takes an album link and returns the photos as JSON. The repo is old and small, but the article that goes with it, "How I used Google Photos to host my website pictures gallery," is the classic explanation of this method.
lefuturiste/google-photos-album-crawlerThe same idea in PHP. It downloads the HTML and extracts the JSON with a regex. Useful if you run WordPress or a PHP server.
modularizer/google-photos-slideshowA different direction: a live slideshow for events. You paste an album link and show it on a TV. Any photo guests add to the album appears on the screen while the event is running. Good for a holiday dinner or a wedding.
publicalbum.orgNot a repo, but a free tool. You paste an album link and get an embed code for a ready-made gallery (JS from a CDN). There is no code to write, but it is limited to a few hundred photos and gives you less control over design. It works well as a quick option or for WordPress, where they also have a plugin.

How do you set up Google Photos before you build?

Setting up takes about 5 minutes.

  1. Create one album for each region of the trip, such as "Vienna," "Salzburg," and "Lakes."
  2. In each album, select Share, then "Create link," and copy the link.
  3. Optional but recommended: turn on partner sharing or add family members to the album. Then every photo someone uploads from their phone shows up on the site automatically. This is the real magic, because the site updates itself during the trip.

How do you build the site with the Lovable prompt?

Paste the prompt below as it is. English works best in Lovable. Replace the links and region names with your own before you send it.

Build a family trip website for our vacation in Austria, with full RTL layout.

STRUCTURE:
- Home page: trip title, dates, a hero photo, and an interactive map of Austria (use Leaflet with OpenStreetMap) with a pin for each region. Clicking a pin navigates to that region's page.
- Region pages: Vienna, Salzburg, Hallstatt & Lakes, Innsbruck. Each region page has a short description, and a photo gallery pulled from a Google Photos shared album.

PHOTO SOURCE (important - read carefully):
Google's Photos API cannot access user libraries anymore, so DO NOT use the Google Photos API or OAuth. Instead, each region has a public Google Photos shared album link:
- Vienna: https://photos.app.goo.gl/XXXX1
- Salzburg: https://photos.app.goo.gl/XXXX2
- Hallstatt & Lakes: https://photos.app.goo.gl/XXXX3
- Innsbruck: https://photos.app.goo.gl/XXXX4

Create a Supabase Edge Function called "fetch-album" that:
1. Receives an album URL as a parameter
2. Fetches the album page HTML server-side (this avoids CORS - do not fetch from the browser, it will be blocked)
3. Extracts the photo data from the AF_initDataCallback JSON blob inside the HTML using a regex that captures the array of media items (each item contains a baseUrl starting with https://lh3.googleusercontent.com)
4. Returns a JSON array of photo baseUrls
5. Caches the result for 1 hour so we don't hit Google on every page load

GALLERY:
- Masonry grid of thumbnails using baseUrl + "=w400"
- Click opens a fullscreen lightbox with baseUrl + "=w1920-h1080", with swipe/arrow navigation and a download button using baseUrl + "=d"
- Lazy-load images, show a skeleton while loading
- Show photo count per region on the home page map pins

DESIGN:
- Warm, clean travel-journal feel. Cream background, one accent color, big readable typography (Heebo font). Mobile-first - the family will open this on phones.
- Sticky bottom nav on mobile with the region names.

EXTRAS:
- A simple "About us" page with a family photo
- A shared password gate: one simple password stored in an env variable, entered once and remembered in localStorage (this is casual privacy, not real security - that's fine)

Why does the fetch need a server function?

Google blocks CORS, so a browser cannot fetch the album page directly. A server-side function gets around this. Lovable can generate it for you with Supabase, which is why the prompt asks for an Edge Function instead of a fetch from the browser.

What prompts do you use after the base works?

Once the base works, upgrade it with one prompt at a time.

To add a new region:

Add a new region "Graz" with this album link: https://photos.app.goo.gl/XXXX5. Add it to the map and the nav.

To replace the map with a timeline:

Add a "Timeline" view: all photos from all regions sorted by date taken (extract the timestamp from the album data), grouped by day, with day headers in English like "Day 3: Salzburg".

To include videos:

The album data also contains videos - detect them and show them in the gallery with a play icon, opening in the lightbox.

To add a map of photo locations:

If photos contain geolocation data, add an optional map view showing photo thumbnails as markers where they were taken.

Can you build a family photo feed too?

Yes. The same method works for a private family photo feed, with likes and comments from grandma. Each family member picks a name and emoji avatar on the first visit.

Build a private family photo feed app in English, with full RTL layout, like a minimal photo-sharing app.

- Photo source: a Google Photos shared album (link: https://photos.app.goo.gl/XXXX) fetched via a Supabase Edge Function that parses the album page HTML (no Google API, no OAuth - see AF_initDataCallback approach).
- Feed: newest photos first, one large photo per card.
- Each family member picks a name + emoji avatar on first visit (stored in localStorage, no real auth).
- Likes and comments per photo, stored in Supabase, updating in realtime.
- A simple password gate for the whole app.
- Clean, warm mobile-first

Questions people ask

Can you still connect a website to the Google Photos API?

Not the way you could before. On March 31, 2025, Google removed read access to the Library API, so an app can only reach photos it uploaded itself. The only official route now is the Picker API, where the user selects photos by hand each time.

How do you pull photos from a shared Google Photos album without an API?

The public album page at photos.app.goo.gl loads the photo data inside its HTML, in a JSON block named AF_initDataCallback. A server-side function fetches that HTML, extracts the baseUrl values with a regex, and returns them as a JSON array for the site.

Why does the site need an Edge Function instead of fetching from the browser?

Google blocks CORS, so a browser cannot fetch the album page directly. A server-side function gets around this, and Lovable can generate it for you with Supabase. Base44 uses a similar backend function.

How do you control the size of each photo?

You add a suffix to the baseUrl. Use =w400 for fast thumbnails, =w1920-h1080 for the full-screen lightbox, and =d to download the original file. This gives a fast gallery with full quality on click, and you do not store any photos yourself.

Is a Google Photos shared album private?

It is private only in the sense of a hidden link, not real permissions. Anyone who gets the album link can see the photos. For a family this is usually fine, especially with a site password on top, but do not put sensitive documents in it. For real privacy with permissions, use the Picker API or Immich.

google-photoslovablesupabasefamily-websitefree-tools
I rest. The agents work. A relaxed panda on a beanbag while a small robot carries its paperwork

One email a week. One agent you can copy.

Every week I send the setup I actually used: the tools, the prompts and the steps. Short enough to read on your phone.

No spam. Unsubscribe with one click.