NASA Space Data Scraper avatar

NASA Space Data Scraper

Pricing

from $1.50 / 1,000 results

Go to Apify Store
NASA Space Data Scraper

NASA Space Data Scraper

Extract space data from NASA APIs. Get Astronomy Picture of the Day, Mars Rover photos, near-Earth asteroids, and Earth imagery.

Pricing

from $1.50 / 1,000 results

Rating

0.0

(0)

Developer

cloud9

cloud9

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

22 days ago

Last modified

Categories

Share

Extract space data from NASA APIs. Get Astronomy Picture of the Day, Mars Rover photos, near-Earth asteroids, and Earth imagery.

Features

  • Extract data from https://api.nasa.gov
  • Multiple scraping modes: apod, asteroids, marsPhotos
  • Automatic rate limiting (1000 req/hour)
  • Proxy support via Apify Proxy
  • API authentication support

Input Configuration

Modes

  1. apod: /planetary/apod?count={count}
  2. asteroids: /neo/rest/v1/feed?start_date={startDate}&end_date={endDate}
  3. marsPhotos: /mars-photos/api/v1/rovers/curiosity/photos?sol={sol}&page={page}

Example Input

{
"apiKey": "DEMO_KEY",
"mode": "apod",
"query": "example search",
"maxResults": 10
}

Authentication

Free API key from api.nasa.gov (or use DEMO_KEY)

Output

The actor stores results in the Apify dataset. Each item contains:

  • date
  • title
  • explanation
  • url
  • hdurl
  • media_type
  • copyright

Usage Example

const input = {
"apiKey": "DEMO_KEY",
"mode": "apod",
"query": "example search",
"maxResults": 10
};
const run = await ApifyClient.actor('nasa-data-scraper').call(input);
const { items } = await ApifyClient.dataset(run.defaultDatasetId).listItems();
console.log(items);

Limits

  • Maximum results per run: 100
  • Rate limiting: 1000 req/hour

Support

For issues or questions, contact the developer or open an issue on GitHub.

License

Apache-2.0