ParseForge Scrapers

NASA Astronomy Picture of the Day Scraper

parseforge/apod-nasa-images-scraper

BusinessAutomationOther

Scrapes NASA's Astronomy Picture of the Day archive by date, range, or random sample. Returns each entry as a flat row with the image URL, explanation, copyright, and media type.

Run this scraper See the API call
Total users
1
Monthly active
0
Total runs
119
Bookmarked
0
Rating
Not rated yet
Last modified
12 days ago

Overview

ParseForge

NASA Astronomy Picture of the Day Scraper

Scrape NASA's Astronomy Picture of the Day by date, range, or random sample, up to a million per run. Each record includes the full explanation, image and HD URLs, media type, copyright, and date. No API key required. Export to JSON, CSV, Excel, or XML.

The NASA APOD API rate-limits and requires a key for heavy use. This scraper reads the archive directly, fetching the title, explanation, image URL, and metadata for any date from June 16, 1995 to today. Pull a single day, a date range, or a random sample of cosmic imagery in one fixed schema.

Who uses it What they scrape NASA APOD for
Space educators Build a classroom archive of daily astronomy images with explanations.
Content creators Source high-resolution space images for videos, blogs, or social media.
Data scientists Analyze trends in astronomical imaging and descriptive text over decades.
App developers Populate a space-themed app or wallpaper service with fresh daily content.

What it does

This Actor collects NASA Astronomy Picture of the Day entries by date, range, or random sample and returns each one as a flat row with the image URL, explanation, and metadata.

  • ๐Ÿ“… Date range mode: pull every picture between two dates, defaulting to the last 10 days if no dates are given.
  • ๐ŸŽฒ Random sample mode: request up to 100 random pictures per run for variety or testing.
  • ๐ŸŽฌ Video thumbnails: when the day's media is a video, automatically include its thumbnail URL alongside the playable link.
  • ๐Ÿ“† Single date mode: target one specific day, from the archive start in 1995 through today.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

What you can do with NASA APOD data

๐Ÿ“š Build a teaching archive.

A science teacher pulls the last 365 APOD entries to create a daily astronomy bell-ringer activity with images and explanations.

๐ŸŽฅ Source daily space content.

A YouTube creator runs the scraper each morning to grab today's image and explanation for a short-form astronomy video script.

๐Ÿ“Š Analyze image trends.

A researcher fetches the full APOD archive to study how the topics and media types chosen by NASA editors have shifted since 1995.

๐Ÿ“ฑ Feed a wallpaper app.

A mobile developer schedules a daily run to pull the latest high-resolution space image and push it to app users as their wallpaper of the day.

Why choose this scraper

What you get
No API key Bypass the official API key requirement and rate limits for bulk pulls.
Full archive access Reach every picture back to June 16, 1995, the first APOD.
Fixed flat schema Every record lands with the same columns, ready for analysis or a database.
Video handling Get thumbnail URLs for video days so you always have a preview image.

How it compares

This Actor focuses exclusively on the APOD archive with bulk date-range and random-sample modes, while other NASA scrapers bundle additional endpoints or offer simpler single-date fetching.

Feature ParseForge NASA Space Data Scraper NASA APOD Scraper - Astronomy Picture of Day NASA APOD Scraper
Date range mode Yes, with configurable start and end dates Not listed Yes Yes
Random sample mode Yes, up to 100 per run Not listed Yes Not listed
Video thumbnail URLs Yes, optional Not listed Not listed Not listed
No API key required Yes Yes Not listed Not listed
Mars Rover photos Not listed Yes Not listed Not listed
Near Earth Objects data Not listed Yes Not listed Not listed

Configure the run

Drive the Actor with a single date, a start and end date, or a random count. The max items cap stops the run once you have enough records. The Input tab lists every parameter.

A first run with the defaults:

{
  "maxItems": 10
}

A larger pull:

{
  "maxItems": 200
}

Pricing

Pay-per-result: $0.033 per result collected. You pay only for the results written to your dataset.

Results collected Approximate cost
100 results $3.30
1,000 results $33.00
10,000 results $330.00

New Apify accounts start with $5 in free credit.

Free users

Free-plan runs return up to 10 results as a preview. Upgrade your Apify plan to collect up to 1,000,000 results per run.

Run it

  1. Create a free Apify account with $5 in credit.
  2. Open the NASA Astronomy Picture of the Day Scraper.
  3. Set your inputs and any filters, then click Start.
  4. Export the results as CSV, Excel, JSON, or XML from the Dataset tab.

Run it programmatically through the Apify API (run-sync-get-dataset-items) or the ApifyClient for JavaScript and Python.

Use with AI agents (MCP)

Give an AI agent live access to NASA APOD through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

claude mcp add --transport http apify "https://mcp.apify.com?tools=parseforge/apod-nasa-images-scraper"

Then prompt it in plain language to run the scraper and read back the results.

Troubleshooting

Why am I getting no results for a date before 1995?

The APOD archive begins on June 16, 1995. Any date earlier than that will return no picture. Adjust your start date to 1995-06-16 or later.

Why does my random sample have fewer pictures than I requested?

The upstream random endpoint caps at 100 pictures per call. If you requested more, the Actor returns whatever the endpoint provides. Run it again for a fresh batch.

I got a video URL but no thumbnail. What happened?

Check that the 'Thumbnails for Videos' option is set to true in your input. If it is off, the thumbnail field will be empty for video entries.

My date range run stopped early.

The max items setting caps the total records collected. If your range spans more days than the cap, the run stops once it hits that number. Raise the max items limit.

Why is the HD URL field empty for some older pictures?

High-definition URLs were not always provided in the early years of the archive. The field will be blank when NASA did not supply an HD version for that date.

FAQ

Question Answer
Do I need a NASA API key to use this scraper? No. This Actor reads the public APOD archive directly, so you do not need to register for a key or worry about rate limits.
How far back can I scrape pictures? The archive starts on June 16, 1995. You can request any date from then through the current day.
What happens when the picture of the day is a video? The record includes the video URL and its media type. If you enable the thumbnails option, it also returns a still thumbnail image URL.
Can I get a random set of pictures instead of a date range? Yes. Set the mode to Random sample and choose how many pictures you want, up to 100 per run.
What output formats are supported? You can export your dataset to JSON, CSV, Excel, or XML from the Apify run console.
How do I pull more than 100 random pictures? Run the Actor multiple times with the random mode. Each run draws a fresh random sample from the archive.
Does this scraper return the HD image URL? Yes. Each record includes the standard image URL and, when available, the high-definition version.
Is the copyright field included? Yes. The copyright attribution for each image is returned as part of the flat record.
Can I schedule this to run every day? Yes. Use Apify's scheduler to run the Actor daily in Latest mode and collect each new picture automatically.
What is the maximum number of images I can collect in one run? The max items setting lets you cap a run at up to 1,000,000 records, though the archive itself contains far fewer entries.

Related actors

Browse the full ParseForge collection for more scrapers.

๐Ÿ†˜ Need help? Email parseforge@protonmail.com with your run ID, your input, and what you expected.

โš ๏ธ Disclaimer. This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by NASA. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

Input

FieldTypeWhat it doesDefault
mode string (4 options) How to select pictures: latest (single most recent), single date, date range, or random sample. Default 'latest' returns just today's picture; switch to 'range' or 'random' for bulk pulls. latest
date string YYYY-MM-DD. Used when Fetch Mode = 'Single date'. Earliest available is 1995-06-16. not set
startDate string YYYY-MM-DD. Used when Fetch Mode = 'Date range'. If both start and end are omitted in range mode, the scraper defaults to the most recent 10 days. not set
endDate string YYYY-MM-DD. Used when Fetch Mode = 'Date range'. Defaults to today if omitted. not set
randomCount integer Number of random pictures to return when Fetch Mode = 'Random sample'. 1-100 (upstream cap). For larger random batches, use multiple runs. 10
thumbsForVideos boolean When the picture of the day is a video, also return its thumbnail image URL alongside the playable video URL. true
maxItems integer How many images to collect per run. 10

Pricing

from $24.75 per 1,000 results

Charged forWhat it isPrice each
result Single result in the default dataset. $0.02475 to $0.033

Tiered: the lower figure is the price on a higher Apify plan. Billing and the free credit live on Apify.

API

One POST returns the dataset directly. Same shape for every scraper in the library, so swapping the slug is the only change.

POST ยท run and get results
curl -X POST "https://api.apify.com/v2/acts/parseforge~apod-nasa-images-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "helloWorld": 123
  }'

Examples

Input that runs as-is.

input.json
{
  "helloWorld": 123
}

Reviews

No reviews yet. Be the first.

Issues

We build and maintain this scraper, so a problem with it comes to us. Report it on the Apify listing and the thread stays attached to the scraper where the next person can find it: open an issue.

Broken and urgent, or you would rather not post in public? Write to parseforge@protonmail.com and it reaches the people who wrote it.

Related scrapers

Run NASA Astronomy Picture of the Day Scraper on Apify All scrapers