Research
NASA Mars logo

NASA Mars API

mars.nasa.gov

NASA Mars - missions, hub content, and program listings.

Actions
2
Category
Research
Login
Not required
Output
JSON

Call the NASA Mars API

Submit a task, then poll the job until it settles. This example runs act_mars_nasa_gov_mars_hub_landing_ssr.

curl -X POST https://api.anakin.io/v1/wire/task \
  -H "X-API-Key: $ANAKIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_id": "act_mars_nasa_gov_mars_hub_landing_ssr",
    "params": {}
  }'

2 actions on mars.nasa.gov

Read

  • Mars Hub Landing

    act_mars_nasa_gov_mars_hub_landing_ssrread1 credit / call

    Returns the Mars hub page title, summary, body, and featured highlights.

  • Mars Missions Program Listing

    act_mars_nasa_gov_mars_missions_program_listing_ssrread2 credits / call

    Returns Mars mission tiles with titles, summaries, and detail URLs.

    program_section_url
    string · required

NASA Mars API questions

Is there an API for NASA Mars?
NASA Mars does not offer a public data API for this, but Anakin Wire provides 2 maintained endpoints for mars.nasa.gov. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
How do I scrape NASA Mars data?
POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when mars.nasa.gov changes its markup, Anakin updates the action.
Do I need a NASA Mars account?
No. Every NASA Mars action listed here runs anonymously — no account and no credentials required.
What does the NASA Mars API cost?
Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.

More Research APIs

All Research sites