Duaer

入门

在 Duaer 里查Our World in Data

在 Duaer 里:读取 Our World in Data 任意图表背后的国家时间序列,如预期寿命、人均二氧化碳排放,也可按关键词查找图表。一次成功查询用 1 额度。

能拿到什么

Duaer 数据市场里的「Our World in Data」:读取 Our World in Data 任意图表背后的国家时间序列,如预期寿命、人均二氧化碳排放,也可按关键词查找图表。查到结果时用 1 额度,结果交给数字组织的下一个节点。

从节点创建器选 Duaer 数据 → Our World in Data,或打开 数据市场。相关:世界银行指标、联合国可持续发展目标指标。

适合做什么

  • 比较各国预期寿命、排放或能源结构。
  • 为某主题找到 Our World in Data 图表并取出数据。

在画布里检索

  1. 打开节点创建器,选 Duaer 数据 → Our World in Data。
  2. 填 Chart(如 life-expectancy);Countries 可选(如 CHN,USA)。或只填 Find Charts 查图表名。
  3. Limit 默认 10,最大 20。执行。

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

用 API 调用

  • GET https://api.duaer.com/v1/data/owid?chart=life-expectancy&countries=CHN,USA
  • Authorization: Bearer <Duaer key>

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

调用技能(英文)

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

---
name: duaer-owid
description: >-
  Duaer Our World in Data. Country time series behind any Our World in Data chart, such as life expectancy or CO2 per capita, or find charts by words.
  One successful search uses 1 Duaer credit.
---

# Duaer Our World in Data

Duaer Our World in Data reads the data behind an Our World in Data chart for chosen countries, newest year first. Without a chart, it finds charts that match your words.

## When to use

- Compare countries on a long-run indicator such as life expectancy.
- Find which chart covers a topic, then read its data.

## When not to use

- Official national accounts. Use https://skills.duaer.com/world-bank.md.
- SDG series by code. Use https://skills.duaer.com/un-sdg.md.

## Call

`GET https://api.duaer.com/v1/data/owid?chart=life-expectancy&countries=CHN,USA`

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 `chart`, or `words` to find charts.

- `chart` — Chart slug from the chart URL, such as life-expectancy or co2-emissions-per-capita.
- `countries` — Optional. ISO codes such as CHN,USA; OWID_WRL is the world. Default CHN,USA.
- `words` — Optional. With no chart, list charts that match, such as electricity from solar.
- `limit` — Optional. Rows to return, from 1 to 20. Default 10.

## Examples

- `GET https://api.duaer.com/v1/data/owid?chart=life-expectancy&countries=CHN,USA` — life expectancy in China and the US.
- `GET https://api.duaer.com/v1/data/owid?words=electricity%20from%20solar` — charts about solar electricity.

## Result

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

- Chart data: `chart`, `entity`, `code`, `year`, `unit`, plus one field per chart column.
- Chart search: `chart` slug and `countries` covered.

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/world-bank.md — Duaer World Bank indicators
- https://skills.duaer.com/un-sdg.md — Duaer UN SDG indicators

常见问题

Duaer 的Our World in Data检索扣多少额度?

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

Duaer Our World in Data 的 Chart 怎么找?

只填 Find Charts(如 electricity from solar)调用 Duaer Our World in Data,从结果里复制 chart。

同组