NASA Space Data Scraper
Pricing
Pay per usage
Go to Apify Store
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.
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
- apod: /planetary/apod?count={count}
- asteroids: /neo/rest/v1/feed?start_date={startDate}&end_date={endDate}
- 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:
datetitleexplanationurlhdurlmedia_typecopyright
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
