> For the complete documentation index, see [llms.txt](https://doc.duaer.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.duaer.com/getting-started/apod.md).

# NASA Astronomy Picture of the Day in Duaer

In Duaer: NASA APOD: the daily astronomy image or video with its explanation, for one day or a range of days. One successful search uses 1 credit.
## What you get

Duaer NASA Astronomy Picture of the Day returns the APOD entry for a day or a run of days, newest first, with the image link and the explanation. Duaer holds the upstream API key; you only send your Duaer key.

Pick Duaer Data → NASA Astronomy Picture of the Day in the node creator, or open the [data market](/getting-started/data-market.md). Related: [Exoplanets](/getting-started/exoplanets.md), [NASA solar flares](/getting-started/solar-flares.md).

## When to use it

- Show the astronomy picture of the day in a newsletter or app.
- Collect a week of APOD images with credits.

## When not to use it

- Asteroid data. Use [Asteroids and comets (JPL)](/getting-started/small-bodies.md).
- Space weather. Use [NASA solar flares](/getting-started/solar-flares.md).

## Search on the canvas

1. Open the node creator and pick Duaer Data → NASA Astronomy Picture of the Day.
2. Fill Days (such as 7). Optional: Date (such as 2026-09-28).
3. Limit defaults to 10, max 20. Execute.

A search uses 1 credit only when it returns rows. No rows, wrong input, or an upstream failure uses 0.

## Call the API

- GET https://api.duaer.com/v1/data/apod?days=1
- Authorization: Bearer <Duaer key>

The call skill below matches Copy skill in the Duaer data market, with parameters, examples, and result fields.

## Call skill

Same text as Copy skill.

```
---
name: duaer-apod
description: >-
  Duaer NASA Astronomy Picture of the Day. NASA APOD: the daily astronomy image or video with its explanation, for one day or a range of days.
  One successful search uses 1 Duaer credit.
---

# Duaer NASA Astronomy Picture of the Day

Duaer NASA Astronomy Picture of the Day returns the APOD entry for a day or a run of days, newest first, with the image link and the explanation. Duaer holds the upstream API key; you only send your Duaer key.

## When to use

- Show the astronomy picture of the day in a newsletter or app.
- Collect a week of APOD images with credits.

## When not to use

- Asteroid data. Use https://skills.duaer.com/small-bodies.md.
- Space weather. Use https://skills.duaer.com/solar-flares.md.

## Call

`GET https://api.duaer.com/v1/data/apod?days=1`

Header: `Authorization: Bearer <Duaer key>`

Use an account key or a model API key.

Get a Duaer key: https://skills.duaer.com/keys.md

## Parameters

Provide `date` or `days`.

- `date` — Optional. YYYY-MM-DD from 1995-06-16. Default is the latest picture.
- `days` — Optional. Pictures for this many days ending on `date`, 1 to 20. Default 1.
- `limit` — Optional. Rows to return, from 1 to 20. Default 10.

## Examples

- `GET https://api.duaer.com/v1/data/apod?days=1` — the latest picture.
- `GET https://api.duaer.com/v1/data/apod?date=2026-09-28&days=7` — the week ending 28 September 2026.

## Result

The response is `{ "items": [...] }`. Each item has `source`, `title`, `url`, and `summary`, plus:

- `date`, `mediaType` — day and image or video.
- `imageUrl`, `thumbnailUrl` — full image (or video) and video thumbnail.
- `copyright` — credit; empty means public domain.
- `explanation` — the APOD text.

Fields without a value are left out.

## Credits

A search that returns at least one row uses 1 credit.
An empty search, a search that finds nothing, or a failed search uses 0.
Wrong input returns 400 with a message and uses 0.
No remaining credits returns 402 and does not search.
A missing key returns 401.

## Related

- https://skills.duaer.com/exoplanets.md — Duaer Exoplanets
- https://skills.duaer.com/solar-flares.md — Duaer NASA solar flares

```
## Questions

### How many credits does a NASA Astronomy Picture of the Day search use in Duaer?

One credit when Duaer returns rows. A search with no rows or an error uses 0.

### Can I reuse images from Duaer NASA Astronomy Picture of the Day?

Rows with no copyright are public domain. For credited images, follow the author terms. Duaer returns the image link and credit.

## Related

- [Exoplanets in Duaer](https://doc.duaer.com/getting-started/exoplanets.md)
- [NASA solar flares in Duaer](https://doc.duaer.com/getting-started/solar-flares.md)

