“Astronomy Picture of the Day” が移転・リニューアル
NASA の “Astronomy Picture of the Day”(以下 APOD)は普段 Bluesky や Mastodon で更新を眺めているのだが,先日ひさしぶりに Web ページに行ってみたら
APOD’s main NASA site is moving: From apod.nasa.gov to science.nasa.gov/apod
During 2026 August and September, APOD’s main NASA website will be moving from https://apod.nasa.gov/ to https://science.nasa.gov/apod . Please be sure to update your bookmarks and other web pointers before the end of September.
とアナウンスされていた。 今月中に対応しろということらしい。 おそらくだけど新しい方は WordPress で作成・運用されてるっぽい。 RSS フィードも一新されていて
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:apod="https://science.nasa.gov/apod/">
<channel>
<title>APOD Basic</title>
<description>APOD Basic markup feed.</description>
<link>https://science.nasa.gov/</link>
<atom:link href="https://science.nasa.gov/feed/apod-basic/" rel="self" type="application/rss+xml" />
<language>en-us</language>
<item>
<title>Webb's View of M64</title>
<link>https://science.nasa.gov/image-article/apod-2026-september-16-webbs-view-of-m64/</link>
<guid isPermaLink="true">https://science.nasa.gov/image-article/apod-2026-september-16-webbs-view-of-m64/</guid>
<pubDate>Wed, 16 Sep 2026 04:05:00 +0000</pubDate>
<apod:url>https://science.nasa.gov/image-article/apod-2026-september-16-webbs-view-of-m64/</apod:url>
<apod:hdurl>https://assets.science.nasa.gov/dynamicimage/assets/science/cds/apod/apod/2026/september/M64_Webb.jpg?w=3853&h=4070&fit=clip&crop=faces%2Cfocalpoint</apod:hdurl>
<apod:credit><![CDATA[NASA, CSA, ESA, F. Belfiore (ESO), J. Lee (STScI), A. Leroy (OSU), and D. Thilker (JHU); <em>Processing</em>: G. Kober (NASA/Catholic University)]]></apod:credit>
<apod:copyright><![CDATA[NASA, CSA, ESA, F. Belfiore (ESO), J. Lee (STScI), A. Leroy (OSU), and D. Thilker (JHU); <em>Processing</em>: G. Kober (NASA/Catholic University)]]></apod:copyright>
<apod:alt>Hubble and JWST image of M64. A massive spiral galaxy glows with a yellow core, surrounded by arms full of orange-brown dust and pink and blue patches of star formation. Framed by a haze of dark dust, the galaxy shines against black space dotted with a few stars.</apod:alt>
<apod:primary_image_alt>Hubble and JWST image of M64. A massive spiral galaxy glows with a yellow core, surrounded by arms full of orange-brown dust and pink and blue patches of star formation. Framed by a haze of dark dust, the galaxy shines against black space dotted with a few stars.</apod:primary_image_alt>
<apod:secondary_image_alt>Hubble image of M64. A massive spiral galaxy glows with a yellow core, surrounded by arms full of dark dust and pink and blue patches of star formation. Framed by a haze of dark dust, the galaxy shines against black space dotted with a few stars.</apod:secondary_image_alt>
<apod:explanation><![CDATA[ ... ]]></apod:explanation>
<description><![CDATA[... ]]></description>
<content:encoded><![CDATA[<!doctype html> ... </html>]]></content:encoded>
</item>
...
</channel>
</rss>
みたいな感じに apod の語彙を使って構造化されている。
<item> 内の主なフィールドは以下の通り。
Field Meaning titleAPOD title. linkAPOD post URL. guidPermanent item URL. pubDateWordPress publication date. apod:explanationAPOD explanation text. apod:urlAPOD post URL. apod:hdurlFull-size featured image URL when available. descriptionRSS-standard description field. It uses the same value as apod:explanation.content:encodedFull APOD Basic HTML document.
Atom はこういう拡張ができるからいいよな(XML データの解析は面倒くさいけど)。
なお RSS フィードでは年月を指定して過去のデータを取得することもできるようだ。
$ curl -sS https://science.nasa.gov/feed/apod-basic/?year=2026&month=9
NASA API も大きく変わった。
The APOD API has been updated. It now returns information from https://science.nasa.gov/wp-json/wp/v2/apod-basic. The legacy APOD API will be archived on December 1, 2026. Full documentation on the new APOD API can be found here.
NASA Open APIs
まず,上の引用のように API エンドポイントが変わった(旧エンドポイントは 2026-12-01 まで)。 これも WordPress かな? 以前必要だった API キーも要らないようだ。 パラメータなしでリクエストを発行すると,最新30件の APOD データが取得できる。
$ curl -sS https://science.nasa.gov/wp-json/wp/v2/apod-basic/ | jq .
[
{
"date": "2026-09-16",
"post_id": 1339001,
"title": "Webb's View of M64",
"permalink": "https://science.nasa.gov/image-article/apod-2026-september-16-webbs-view-of-m64/",
"media_type": "image",
"explanation": "...",
"credit": "NASA, CSA, ESA, F. Belfiore (ESO), J. Lee (STScI), A. Leroy (OSU), and D. Thilker (JHU); <em>Processing</em>: G. Kober (NASA/Catholic University)",
"copyright": "NASA, CSA, ESA, F. Belfiore (ESO), J. Lee (STScI), A. Leroy (OSU), and D. Thilker (JHU); <em>Processing</em>: G. Kober (NASA/Catholic University)",
"alt": "Hubble and JWST image of M64. A massive spiral galaxy glows with a yellow core, surrounded by arms full of orange-brown dust and pink and blue patches of star formation. Framed by a haze of dark dust, the galaxy shines against black space dotted with a few stars.",
"url": "https://science.nasa.gov/image-article/apod-2026-september-16-webbs-view-of-m64/",
"hdurl": "https://assets.science.nasa.gov/dynamicimage/assets/science/cds/apod/apod/2026/september/M64_Webb.jpg?w=3853&h=4070&fit=clip&crop=faces%2Cfocalpoint",
"basic_html": "<!doctype html> ... </html>",
"basic_html_url": "https://science.nasa.gov/wp-json/wp/v2/apod-basic/260916/html"
},
...
]
また,パスに日付を YYMMDD 形式で指定して1件のみ取得することも可能である。
$ curl -sS https://science.nasa.gov/wp-json/wp/v2/apod-basic/260916 | jq .
{
"date": "2026-09-16",
"post_id": 1339001,
"title": "Webb's View of M64",
"permalink": "https://science.nasa.gov/image-article/apod-2026-september-16-webbs-view-of-m64/",
"media_type": "image",
"explanation": "...",
"credit": "NASA, CSA, ESA, F. Belfiore (ESO), J. Lee (STScI), A. Leroy (OSU), and D. Thilker (JHU); <em>Processing</em>: G. Kober (NASA/Catholic University)",
"copyright": "NASA, CSA, ESA, F. Belfiore (ESO), J. Lee (STScI), A. Leroy (OSU), and D. Thilker (JHU); <em>Processing</em>: G. Kober (NASA/Catholic University)",
"alt": "Hubble and JWST image of M64. A massive spiral galaxy glows with a yellow core, surrounded by arms full of orange-brown dust and pink and blue patches of star formation. Framed by a haze of dark dust, the galaxy shines against black space dotted with a few stars.",
"url": "https://science.nasa.gov/image-article/apod-2026-september-16-webbs-view-of-m64/",
"hdurl": "https://assets.science.nasa.gov/dynamicimage/assets/science/cds/apod/apod/2026/september/M64_Webb.jpg?w=3853&h=4070&fit=clip&crop=faces%2Cfocalpoint",
"basic_html": "<!doctype html> ... </html>",
"basic_html_url": "https://science.nasa.gov/wp-json/wp/v2/apod-basic/260916/html"
}
他に指定できるパラメータは以下の通り。
Parameter What it does pagePage number for list results. per_pageNumber of results per page. Capped at 25. date_fromStart date using legacy YYMMDDformat.date_toEnd date using legacy YYMMDDformat.
レスポンスデータの主なフィールドは以下の通り。
Field Meaning dateAPOD date in YYYY-MM-DDformat.post_idWordPress post ID. titleAPOD post title. permalinkURL of the APOD post on the site. media_typeNormalized APOD media type, such as image,video, oriframe.explanationAPOD explanation text. urlAPOD post URL. This matches the permalink. hdurlFull-size featured image URL when available. basic_htmlAPOD Basic HTML document as a JSON string. basic_html_urlPlain-text HTML source URL for easier copy/paste workflows.
データが存在しない場合は以下のようにエラーが返ってくる。
$ curl -sS https://science.nasa.gov/wp-json/wp/v2/apod-basic/260930 | jq .
{
"code": "apod_basic_not_found",
"message": "APOD not found.",
"data": {
"status": 404
}
}
おー。 ちゃんとしてる。
最初にちょろんと書いたように APOD は Mastodon や Bluesky でも運用されている。 以下は公式が認めているアカウントである。
@apod@reentry.codl.fr(mastodon)@apod.shinyakato.dev(Bluesky)
非公式のものを含めれば,おそらく相当数のアカウントがあると思う。 ちなみに私も非公式で運用している。
@fanapod.baldanders.info(Bluesky)@fanapod.baldanders.info@bsky.brid.gy: Mastodon へのブリッジ
こちらは API を使ってボット運用している。 文字数の関係で説明文(explanation)は省いているが,よろしかったら見てやって下さい。
参考
- 天文年鑑 2026年版 | 株式会社誠文堂新光社
- 天文年鑑2026年版は、2026年に起こる天文現象の予報と解説(全国8都市における日の出入り・月の出入りの時刻や月の出・月の入りの時刻をはじめ、毎月(12ヵ月)の星空、日食や月食などの食現象、各惑星
- Release 2025-12-10
- 評価
[Comment] 天文ファン必携。2026年版。
Powered by linkcard
- 天体物理学
- Arnab Rai Choudhuri (著), 森 正樹 (翻訳)
- 森北出版 2019-05-28
- 単行本
- 4627275110 (ASIN), 9784627275119 (EAN), 4627275110 (ISBN)
- 評価
[Comment] 興味本位で買うにはちょっとビビる値段なので図書館で借りて読んでいたが,やっぱり手元に置いておきたいのでエイヤで買った。まえがきによると,この手のタイプの教科書はあまりないらしい。内容は非常に堅実で分かりやすい。理系の学部生レベルなら問題なく読めるかな。

