NASA API
The NASA API is a collection of public, open-data web services published by NASA at api.nasa.gov. It provides programmatic access to imagery and space-science datasets, including the Astronomy Picture of the Day (APOD), Near Earth Object Web Service (NeoWs), Mars rover photos, Earth Polychromatic Imaging Camera (EPIC) imagery, DONKI space-weather events, and the NASA Image and Video Library. All requests are authenticated with a free API key passed as the api_key query parameter.
Power end-to-end data operations for your NASA API API with Nexla. Our bi-directional NASA API connector is purpose-built for NASA API, making it simple to ingest data, sync it across systems, and deliver it anywhere — all with no coding required. Nexla turns API-sourced data into ready-to-use, reusable data products and makes it easy to send data to NASA API or any other destination. With comprehensive monitoring, lineage tracking, and access controls, Nexla keeps your NASA API workflows fast, secure, and fully governed.
Features
Type: API
- Seamless API Integration: Connect to any endpoint as source or destination without coding, with automatic data product creation
- Visual Composition & Chaining: Build complex integrations using visual templates, chain API calls, and compose workflows with data validation and filtering
- API Proxy: Expose curated slices of your data securely with a secure and customizable API proxy that validates and transforms data on the fly
- Request optimization with intelligent batching, retry, and caching to minimize API calls and costs
Prerequisites
Before creating a NASA API credential, you need a NASA API key. NASA authenticates every request with an API key that is passed as the api_key query parameter in the request URL. The key is free, and no billing or account approval is required.
To obtain a NASA API key, follow these steps:
-
Navigate to the NASA Open APIs portal at https://api.nasa.gov/.
-
Locate the Generate API Key form on the page and enter the required details: your First Name, Last Name, and Email. The optional How will you use the APIs? field can be used to briefly describe your intended application.
-
Click Signup to submit the form. NASA generates a unique API key and displays it on the confirmation page, and also emails a copy to the address you provided.
-
Copy your API key and store it securely, as you will enter it when creating your Nexla credential.
NASA also provides a shared DEMO_KEY for quick exploration without signing up, but it is rate-limited to 30 requests per IP address per hour (and 50 per day). A registered API key raises the limit to 1,000 requests per hour. Current usage is reported in the X-RateLimit-Limit and X-RateLimit-Remaining response headers. For production use, always use your own registered key.
For complete information about authentication, rate limits, and the available APIs, see the NASA Open APIs documentation.
Authenticate
Credentials required
| Field | Required | Secret | Description |
|---|---|---|---|
| API Key Value | Yes | Yes | An encoded string value used as a secret token to authenticate API requests |
| Base URL | Yes | No | The base URL for the NASA API. |
| Images Base URL | Yes | No | The base URL for the NASA Image and Video Library API. |
Create a credential in Nexla
-
After selecting the data source type, click the Add Credential tile to open the Add New Credential overlay.
-
Enter a name for the credential in the Credential Name field and a short, meaningful description in the Credential Description field.
-
Enter your NASA API key in the API Key Value field. This key authenticates Nexla with the NASA API and is sent as the
api_keyquery parameter on every request. It is treated as a secret and should be kept confidential. -
Enter the base URL for the NASA API in the Base URL field. In most cases this is
https://api.nasa.gov, which is the default value. -
Enter the base URL for the NASA Image and Video Library API in the Images Base URL field. In most cases this is
https://images-api.nasa.gov, which is the default value. This host serves the NASA Image and Video Library endpoints. -
Click the Save button at the bottom of the overlay. The newly added credential will now appear in a tile on the Authenticate screen during data source creation.
Use as a data source
To create a new data flow, navigate to the Integrate section, and click the New Data Flow button. Select the NASA API connector tile, then select the credential that will be used to connect to the NASA API, and click Next; or, create a new NASA API credential for use in this flow.
Endpoint templates
Nexla provides pre-built templates that can be used to rapidly configure data sources to ingest data from common NASA API endpoints. Select the endpoint from which this source will fetch data from the Endpoint pulldown menu. Available endpoint templates are listed in the expandable boxes below.
Once the selected endpoint template has been configured, click the Test button to the right of the endpoint selection menu to retrieve a sample of the data that will be fetched. Sample data will be displayed in the Endpoint Test Result panel on the right, allowing you to verify that the source is configured correctly before saving.
Manual configuration
NASA API data sources can also be manually configured to ingest data from any valid NASA API endpoint, including endpoints not covered by the pre-built templates, chained API calls, or custom request parameters. Select the Advanced tab at the top of the configuration screen, and follow the instructions in Connect to Any API to configure the API method, endpoint URL, date/time and lookup macros, path to data, metadata, and request headers.
Once all of the relevant settings have been configured, click the Create button in the upper right corner of the screen to save and create the new NASA API data source. Nexla will now begin ingesting data from the configured endpoint and will organize any data that it finds into one or more Nexsets.