> For the complete documentation index, see [llms.txt](https://doc.duaer.com/zh/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/zh/getting-started/sunrise.md).

# 在 Duaer 里查日出日落

在 Duaer 里：查询某地连续最多七天的日出、日落、正午、民用晨昏蒙影与白昼时长。一次成功查询用 1 额度。
## 能拿到什么

Duaer 数据市场里的「日出日落」：查询某地连续最多七天的日出、日落、正午、民用晨昏蒙影与白昼时长。查到结果时用 1 额度，结果交给数字组织的下一个节点。

从节点创建器选 Duaer 数据 → 日出日落，或打开 [数据市场](/zh/getting-started/data-market.md)。相关：[美国潮汐预报](/zh/getting-started/tides.md)、[天气预报](/zh/getting-started/weather.md)。

## 适合做什么

- 安排拍摄的黄金时刻。
- 查某地某天的日照时长。

## 在画布里检索

1. 打开节点创建器，选 Duaer 数据 → Sunrise and sunset。
2. 填 Place（如 Shanghai），或 Latitude + Longitude；Date、Days 可选。
3. Limit 默认 10，最大 20。执行。

查到结果才扣 1 额度；没有结果、输入有误或上游失败都不扣。

## 用 API 调用

- GET https://api.duaer.com/v1/data/sunrise?place=Reykjavik&date=2026-12-21
- Authorization: Bearer <Duaer key>

下方是与数据市场「复制技能」相同的英文技能，含参数、示例与返回字段。

## 调用技能（英文）

与数据市场「复制技能」一致。

```
---
name: duaer-sunrise
description: >-
  Duaer Sunrise and sunset. Sunrise, sunset, solar noon, civil twilight, and day length for a place and up to seven consecutive days.
  One successful search uses 1 Duaer credit.
---

# Duaer Sunrise and sunset

Duaer Sunrise and sunset calculates sun times for a place in its local time zone, one row per day.

## When to use

- Plan photography or fieldwork around daylight.
- Compare day length across seasons or latitudes.

## When not to use

- Weather. Use https://skills.duaer.com/weather.md.
- Solar energy estimates. Use https://skills.duaer.com/nasa-power.md.

## Call

`GET https://api.duaer.com/v1/data/sunrise?place=Reykjavik&date=2026-12-21`

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 `place`, or `latitude` and `longitude`.

- `place` — Place name, such as Seattle. Duaer looks up its coordinates.
- `latitude`, `longitude` — Optional. Coordinates instead of a place name.
- `date` — Optional. YYYY-MM-DD. Default today.
- `days` — Optional. Consecutive days, 1 to 7. Default 1.

## Examples

- `GET https://api.duaer.com/v1/data/sunrise?place=Reykjavik&date=2026-12-21` — the shortest day in Reykjavik.
- `GET https://api.duaer.com/v1/data/sunrise?place=Shanghai&days=7` — a week of sun times in Shanghai.

## Result

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

- `place`, `latitude`, `longitude`, `timezone` — the point and its time zone.
- `date`, `sunrise`, `sunset`, `solarNoon` — ISO times with offset.
- `dayLengthSeconds`, `civilTwilightBegin`, `civilTwilightEnd` — daylight and twilight.

During polar day or night, `sunrise` and `sunset` are left out and the summary says so.

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/tides.md — Duaer US tide predictions
- https://skills.duaer.com/weather.md — Duaer Weather forecast

```
## Questions

### Duaer 的日出日落检索扣多少额度？

查到结果时扣 1 额度；没有结果或出错不扣。

### Duaer 日出日落用的是哪个时区？

Duaer 日出日落按该地点的当地时区返回时间。

## 相关

- [在 Duaer 里查美国潮汐预报](https://doc.duaer.com/zh/getting-started/tides.md)
- [在 Duaer 里查天气预报](https://doc.duaer.com/zh/getting-started/weather.md)

