【Stellarium】プラネタリウムソフトStellariumのAPIを使ってみた


# 初めに
オープンソースプラネタリウムソフトである、[Stellarium](https://stellarium.org/ja/)を用いて、天文情報をAPIにて取得してみた。
また標準機能についてはリモートコントロールできることが確認できた。
本方法は本来StellariumをWeb経由（HTTP）で制御するためのAPIのため、本来の目的をあまり達成できていないが、備忘録として残しておく。

<strong> やりたいこと:APIから天文情報を取得する </strong>


## 環境
- Mac OS12.4(M1)
- Stellarium 0.22.1


# 初期設定
1.[Sellarium](https://stellarium.org/ja/)をインストールし、起動する。


```
# windows（winget）の場合
>winget install stellarium

# Mac(homebrew)の場合
>brew install --cask stellarium
```

2.設定画面を出す
![スクリーンショット 2022-06-17 21.52.34.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/928331/6ebe3852-dd73-c764-ec69-6525c3514c58.png)

3.プラグインへ移動
![スクリーンショット 2022-06-17 21.58.58.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/928331/a6aae59c-f134-1344-b48c-993a69dd5420.png)

４.リモートコントロールに移動
![スクリーンショット 2022-06-17 22.00.12.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/928331/77e62ead-f0ec-721d-9ae4-66b9ebe4f7d0.png)

5.起動時に実行にチェックを入れる→その後、Stellariumを再起動
![スクリーンショット 2022-06-17 22.01.40.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/928331/0d23981b-a455-9db0-dc91-e66dc533f86f.png)

6.リモートコントロールの設定画面に移動
![スクリーンショット 2022-06-17 22.03.30.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/928331/ef1450d9-61f8-bd2d-574c-58958a0cbc9f.png)

7.各種設定をする→設定を保存後、Stellariumを再起動
![スクリーンショット 2022-06-17 22.04.30.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/928331/2e17321d-1e3f-5c8d-1b04-4eb2d414f6ee.png)
準備完了！！

# リモートコントロールしてみる

http://localhost:8090/
をブラウザで開くと、下記のようにリモートコントロール画面が表示される。ここから標準的な操作は可能。
![スクリーンショット 2023-08-25 134712.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/928331/e3766df2-6365-0adb-4433-be19fbf40fd8.png)

# APIを使ってみる

http://localhost:8090/api/objects/info?name=leo&format=json
をブラウザで開くとしし座の情報が表示されることを確認。
このように、URLよりAPIにアクセスができる。
![スクリーンショット 2022-06-17 22.08.30.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/928331/2bc99757-67ee-fc2e-b2c6-c829791d32b3.png)

# API仕様の詳細
#概要

| サービス | Path | 説明 |
|:-:|:-:|:-:|
| MainService | main | 現在の情報の表示 |
| ObjectService | objects | 各天体の情報の検索と表示 |
| ScriptService | scrips | （調べ中） |
| SimbadService　 | simbad | （調べ中） |
| StelActionService | stelaction | （調べ中） |
| StelPropertyService　 | stelproperty | （調べ中） |
| LocationService　 | location | 現在の位置を表示、設定 |
| LocationSearchService　 | locationsearch | 位置を検索 |
| ViewService | view | 風景や投影方法を設定 |

## API使用例
### 現在の状況の取得
http://localhost:8090/api/main/status
※現在設定されている時間や場所が表示される

<details><summary>レスポンスJSON例</summary>

```json:response.json
{
    "location": {
        "altitude": 0,
        "landscapeKey": "",
        "latitude": 35.95000076293945,
        "longitude": 135.0500030517578,
        "name": "Saijo",
        "planet": "Earth",
        "region": "Eastern Asia",
        "role": "X",
        "state": "Ehime"
    },
    "selectioninfo": "",
    "time": {
        "deltaT": 0.0007996113141078942,
        "gmtShift": 0.375,
        "isTimeNow": true,
        "jday": 2459748.0469863196,
        "local": "2022-06-17T22:07:39.618",
        "timeZone": "UTC+09:00",
        "timerate": 1.1574074074074073e-05,
        "utc": "2022-06-17T13:07:39.618Z"
    },
    "view": {
        "fov": 60
    }
}
```
</details>
 
### プラグインの一覧を表示する
http://localhost:8090/api/main/plugins
※現在インストールしているプラグイン一覧が表示される

<details><summary>レスポンスJSON例</summary>

```json:response.json
{
    "AngleMeasure": {
        "info": {
            "authors": "Matthew Gates, Georg Zotti",
            "contact": "https://github.com/Stellarium/stellarium",
            "description": "Provides an angle measurement tool",
            "displayedName": "Angle Measure",
            "startByDefault": false,
            "version": "0.5.0"
        },
        "loadAtStartup": false,
        "loaded": false
    },
    "ArchaeoLines": {
        "info": {
            "authors": "Georg Zotti",
            "contact": "https://homepage.univie.ac.at/Georg.Zotti",
            "description": "A tool for archaeo-/ethnoastronomical alignment studies",
            "displayedName": "ArchaeoLines",
            "startByDefault": false,
            "version": "0.22.1"
        },
        "loadAtStartup": false,
        "loaded": false
    },
    "Calendars": {
        "info": {
            "authors": "Georg Zotti",
            "contact": "https://github.com/Stellarium/stellarium",
            "description": "Calendars of the world",
            "displayedName": "Calendars",
            "startByDefault": false,
            "version": "0.22.1"
        },
        "loadAtStartup": false,
        "loaded": false
    },
    "EquationOfTime": {
        "info": {
            "authors": "Alexander Wolf",
            "contact": "https://stellarium.org/",
            "description": "This plugin shows the solution of the equation of time.",
            "displayedName": "Equation of Time",
            "startByDefault": false,
            "version": "0.1.6"
        },
        "loadAtStartup": false,
        "loaded": false
    },
    "Exoplanets": {
        "info": {
            "authors": "Alexander Wolf",
            "contact": "https://github.com/Stellarium/stellarium",
            "description": "This plugin plots the position of stars with exoplanets. Exoplanets data is derived from the 'Extrasolar Planets Encyclopaedia' at exoplanet.eu",
            "displayedName": "Exoplanets",
            "startByDefault": false,
            "version": "0.5.0"
        },
        "loadAtStartup": true,
        "loaded": true
    },
    "MeteorShowers": {
        "info": {
            "authors": "Marcos Cardinot",
            "contact": "https://github.com/Stellarium/stellarium",
            "description": "<p>This plugin enables you to simulate periodic meteor showers and to display a marker for each active and inactive radiant.</p><p>By a single click on the radiant's marker, you can see all the details about its position and activity. Most data used on this plugin comes from the official <a href=\"http://imo.net\">International Meteor Organization</a> catalog.</p><p>It has three types of markers:<ul><li><b>Confirmed:</b> the radiant is active and its data was confirmed. Thus, this is a historical (really occurred in the past) or predicted meteor shower.</li><li><b>Generic:</b> the radiant is active, but its data was not confirmed. It means that this can occur in real life, but that we do not have proper data about its activity for the current year.</li><li><b>Inactive:</b> the radiant is inactive for the current sky date.</li></ul></p>",
            "displayedName": "Meteor Showers",
            "startByDefault": false,
            "version": "2.0.6"
        },
        "loadAtStartup": true,
        "loaded": true
    },
    "NavStars": {
        "info": {
            "authors": "Alexander Wolf, Andy Kirkham",
            "contact": "https://stellarium.org/",
            "description": "This plugin marks navigational stars from a selected set.",
            "displayedName": "Navigational Stars",
            "startByDefault": false,
            "version": "0.3.3"
        },
        "loadAtStartup": false,
        "loaded": false
    },
    "Novae": {
        "info": {
            "authors": "Alexander Wolf",
            "contact": "https://github.com/Stellarium/stellarium",
            "description": "A plugin that shows some bright novae in the Milky Way galaxy.",
            "displayedName": "Bright Novae",
            "startByDefault": false,
            "version": "0.1.7"
        },
        "loadAtStartup": true,
        "loaded": true
    },
    "Observability": {
        "info": {
            "authors": "Ivan Marti-Vidal (Onsala Space Observatory)",
            "contact": "i.martividal@gmail.com",
            "description": "Displays an analysis of a selected object's observability (rise, set, and transit times) for the current date, as well as when it is observable through the year. An object is assumed to be observable if it is above the horizon during a fraction of the night. Also included are the dates of the largest separation from the Sun and acronychal and cosmical rising and setting. (Explanations are provided in the 'About' tab of the plugin's configuration window.)",
            "displayedName": "Observability Analysis",
            "startByDefault": false,
            "version": "1.2.4"
        },
        "loadAtStartup": false,
        "loaded": false
    },
    "Oculars": {
        "info": {
            "authors": "Timothy Reaves",
            "contact": "https://github.com/Stellarium/stellarium",
            "description": "Shows the sky as if looking through a telescope eyepiece. (Only magnification and field of view are simulated.) It can also show a sensor frame and a Telrad sight.",
            "displayedName": "Oculars",
            "startByDefault": false,
            "version": "1.2.2"
        },
        "loadAtStartup": true,
        "loaded": true
    },
    "OnlineQueries": {
        "info": {
            "authors": "Georg Zotti, Alexander Wolf",
            "contact": "https://github.com/Stellarium/stellarium",
            "description": "This plugin allows object information retrieval from selected online services.",
            "displayedName": "Online Queries",
            "startByDefault": false,
            "version": "0.22.1"
        },
        "loadAtStartup": false,
        "loaded": false
    },
    "PointerCoordinates": {
        "info": {
            "authors": "Alexander Wolf",
            "contact": "https://stellarium.org/",
            "description": "This plugin shows the coordinates of the mouse pointer.",
            "displayedName": "Pointer Coordinates",
            "startByDefault": false,
            "version": "0.3.0"
        },
        "loadAtStartup": false,
        "loaded": false
    },
    "Pulsars": {
        "info": {
            "authors": "Alexander Wolf",
            "contact": "https://github.com/Stellarium/stellarium",
            "description": "This plugin plots the position of various pulsars, with object information about each one.",
            "displayedName": "Pulsars",
            "startByDefault": false,
            "version": "0.3.0"
        },
        "loadAtStartup": false,
        "loaded": false
    },
    "Quasars": {
        "info": {
            "authors": "Alexander Wolf",
            "contact": "https://github.com/Stellarium/stellarium",
            "description": "A plugin that shows some quasars brighter than visual magnitude 18. The catalogue of quasars was compiled from 'Quasars and Active Galactic Nuclei' (13th Ed.) (Veron+ 2010)",
            "displayedName": "Quasars",
            "startByDefault": false,
            "version": "0.2.2"
        },
        "loadAtStartup": false,
        "loaded": false
    },
    "RemoteControl": {
        "info": {
            "authors": "Florian Schaukowitsch, Georg Zotti",
            "contact": "https://homepage.univie.ac.at/Georg.Zotti",
            "description": "Provides remote control functionality using a webserver interface. See manual for detailed description.",
            "displayedName": "Remote Control",
            "startByDefault": false,
            "version": "0.22.1"
        },
        "loadAtStartup": true,
        "loaded": true
    },
    "RemoteSync": {
        "info": {
            "authors": "Florian Schaukowitsch and Georg Zotti",
            "contact": "https://homepage.univie.ac.at/Georg.Zotti",
            "description": "Provides state synchronization for multiple Stellarium instances running in a network. See manual for detailed description.",
            "displayedName": "Remote Sync",
            "startByDefault": false,
            "version": "0.0.5"
        },
        "loadAtStartup": false,
        "loaded": false
    },
    "Satellites": {
        "info": {
            "authors": "Matthew Gates, Jose Luis Canales",
            "contact": "https://github.com/Stellarium/stellarium",
            "description": "Prediction of artificial satellite positions in Earth orbit based on NORAD TLE data",
            "displayedName": "Satellites",
            "startByDefault": false,
            "version": "0.12.5"
        },
        "loadAtStartup": true,
        "loaded": true
    },
    "Scenery3d": {
        "info": {
            "authors": "Georg Zotti, Simon Parzer, Peter Neubauer, Andrei Borza, Florian Schaukowitsch",
            "contact": "https://homepage.univie.ac.at/Georg.Zotti",
            "description": "<p>3D foreground renderer. Walk around, find and avoid obstructions in your garden, find and demonstrate possible astronomical alignments in temples, see shadows on sundials etc.</p><p>To move around, press Ctrl+cursor keys. To lift eye height, use Ctrl+PgUp/PgDn. Movement speed is linked to field of view (i.e. zoom in for fine adjustments). You can even keep moving by releasing Ctrl before cursor key.</p>",
            "displayedName": "3D Sceneries",
            "startByDefault": false,
            "version": "0.14.1"
        },
        "loadAtStartup": false,
        "loaded": false
    },
    "SolarSystemEditor": {
        "info": {
            "authors": "Bogdan Marinov",
            "contact": "https://stellarium.org/",
            "description": "An interface for adding asteroids and comets to Stellarium. It can download object lists from the Minor Planet Center's website and perform searches in its online database.",
            "displayedName": "Solar System Editor",
            "startByDefault": false,
            "version": "0.2.8"
        },
        "loadAtStartup": true,
        "loaded": true
    },
    "Supernovae": {
        "info": {
            "authors": "Alexander Wolf",
            "contact": "https://github.com/Stellarium/stellarium",
            "description": "This plugin allows you to see some bright historical supernovae.",
            "displayedName": "Historical Supernovae",
            "startByDefault": false,
            "version": "0.2.23"
        },
        "loadAtStartup": false,
        "loaded": false
    },
    "TelescopeControl": {
        "info": {
            "authors": "Bogdan Marinov, Johannes Gajdosik, Alessandro Siniscalchi, Gion Kunz, Petr Kubánek",
            "contact": "https://stellarium.org/",
            "description": "This plug-in allows Stellarium to send \"slew\" commands to a telescope on a computerized mount (a \"GoTo telescope\").",
            "displayedName": "Telescope Control",
            "startByDefault": false,
            "version": "0.4.2"
        },
        "loadAtStartup": false,
        "loaded": false
    },
    "TextUserInterface": {
        "info": {
            "authors": "Matthew Gates",
            "contact": "https://github.com/Stellarium/stellarium",
            "description": "Plugin implementation of 0.9.x series Text User Interface (TUI), used in planetarium systems",
            "displayedName": "Text User Interface",
            "startByDefault": false,
            "version": "0.2.8"
        },
        "loadAtStartup": false,
        "loaded": false
    }
}
```
</details>

### 視点の状態
http://localhost:8090/api/main/view
※視点の状態の表示

<details><summary>レスポンスJSON例</summary>

```json:response.json
{
    "altAz": "[0.999722, 9.99722e-06, 0.201384]",
    "j2000": "[-0.360438, -0.629233, -0.717043]",
    "jNow": "[-0.356249, -0.631857, -0.716828]"
}
```
</details>

### 天体の検索
http://localhost:8090/api/objects/find?str={検索対象}
※各種天文の対象物があるか検索

<details><summary>レスポンスJSON例</summary>

```json:response.json
http://localhost:8090/api/objects/find?str=ori
[
    "Orion",
    "Moriah",
    "Orion A",
    "Orionids",
    "χ-Orionids",
    "モリア(Moriah)",
    "Origem Loop",
    "Orion's Belt",
    "Orion's Sword",
    "Orion's Shield",
    "Orion's Cudgel",
    "Leonis Minorids",
    "November Orionids",
    "Great Orion Nebula",
    "North Orion Bubble",
    "Nova Pictoris 1925",
    "C/2014 Q3 (Borisov)",
    "C/2014 R1 (Borisov)",
    "The Butterfly of Orion",
    "Nova Ursae Minoris 1956",
    "December Leonis Minorids",
    "2I/Borisov [C/2019 Q4 (Borisov)]"
]
```
</details>

### 天体情報の表示
http://localhost:8090/api/objects/info?name={検索対象}&format={json/html}
※調べたい天体の情報を表示
　検索対象は、oriやsubaru、オリオン、moon、月、土星、hr2456などでも検索ができた。

<details><summary>レスポンスJSON例</summary>

```json:response.json
http://localhost:8090/api/objects/info?name=subaru&format=json
{
    "above-horizon": false,
    "airmass": -1,
    "altitude": -31.76990724006263,
    "altitude-geometric": -31.76990724006263,
    "ambientInt": 0.054999977350234985,
    "ambientLum": 0.00045359955402091146,
    "appSidTm": "19h09m53.6s",
    "azimuth": 3.7656905871334736,
    "azimuth-geometric": 3.7656905871334736,
    "bmag": 99,
    "dec": 24.18442253579391,
    "decJ2000": 24.115727859926803,
    "designations": "M 45 - Cr 42 - Mel 22",
    "elat": 3.7291837246623727,
    "elatJ2000": 4.086502863089537,
    "elong": 60.20589866013667,
    "elongJ2000": 59.881748554495466,
    "found": true,
    "glat": -23.52514930042687,
    "glong": 166.56740505509885,
    "hourAngle-dd": 230.3982592507296,
    "hourAngle-hms": "15h21m35.6s",
    "iauConstellation": "Tau",
    "localized-name": "プレアデス",
    "meanSidTm": "19h09m52.7s",
    "morpho": "I3rn",
    "name": "Pleiades",
    "parallacticAngle": -41.356365122509494,
    "ra": 57.07518595495374,
    "raJ2000": 56.744652451646694,
    "rise": "22h17m",
    "rise-dhr": 22.280555555555555,
    "set": "12h42m",
    "set-dhr": 12.692222222222222,
    "sglat": -29.24176318099605,
    "sglong": 336.531916833846,
    "size": 0.03199770364676091,
    "size-dd": 1.8333333730697634,
    "size-deg": "+1.83333°",
    "size-dms": "+1°50'00.00\"",
    "surface-brightness": 11.14468765258789,
    "transit": "5h29m",
    "transit-dhr": 5.4863888888888885,
    "type": "星雲を伴う散開星団",
    "vmag": 1.2000000476837158,
    "vmage": 1.4833018779754639
}
```
</details>

### 検索可能なオブジェクトタイプ
http://localhost:8090/api/objects/listobjecttypes
※内部カタログで使用可能なすべてのオブジェクトタイプを、形式のオブジェクトのJSON配列として返します

<details><summary>レスポンスJSON例</summary>

```json:response.json
[
    {
        "key": "AsterismMgr",
        "name": "Asterisms",
        "name_i18n": "アステリズム"
    },
    {
        "key": "ConstellationMgr",
        "name": "Constellations",
        "name_i18n": "星座"
    },
    {
        "key": "NebulaMgr",
        "name": "Deep-sky objects",
        "name_i18n": "星雲・星団(DSO)"
    },
    {
        "key": "NebulaMgr:0",
        "name": "Bright galaxies",
        "name_i18n": "明るい銀河"
    },
    {
        "key": "NebulaMgr:1",
        "name": "Active galaxies",
        "name_i18n": "活動銀河"
    },
    {
        "key": "NebulaMgr:10",
        "name": "Nebulae",
        "name_i18n": "星雲"
    },
    {
        "key": "NebulaMgr:100",
        "name": "Messier Catalogue",
        "name_i18n": "メシエ・カタログ"
    },
    {
        "key": "NebulaMgr:101",
        "name": "Caldwell Catalogue",
        "name_i18n": "カルドウェル・カタログ"
    },
    {
        "key": "NebulaMgr:102",
        "name": "Barnard Catalogue",
        "name_i18n": "バーナード・カタログ"
    },
    {
        "key": "NebulaMgr:103",
        "name": "Sharpless Catalogue",
        "name_i18n": "シャープレス・カタログ"
    },
    {
        "key": "NebulaMgr:104",
        "name": "van den Bergh Catalogue",
        "name_i18n": "ファン・デン・ベルグ・カタログ(VdB)"
    },
    {
        "key": "NebulaMgr:105",
        "name": "The Catalogue of Rodgers, Campbell, and Whiteoak",
        "name_i18n": "RCWカタログ"
    },
    {
        "key": "NebulaMgr:106",
        "name": "Collinder Catalogue",
        "name_i18n": "コリンダー・カタログ"
    },
    {
        "key": "NebulaMgr:107",
        "name": "Melotte Catalogue",
        "name_i18n": "メロッテ・カタログ"
    },
    {
        "key": "NebulaMgr:108",
        "name": "New General Catalogue",
        "name_i18n": "ニュー・ジェネラル・カタログ"
    },
    {
        "key": "NebulaMgr:109",
        "name": "Index Catalogue",
        "name_i18n": "インデックス・カタログ"
    },
    {
        "key": "NebulaMgr:11",
        "name": "Planetary nebulae",
        "name_i18n": "惑星状星雲"
    },
    {
        "key": "NebulaMgr:110",
        "name": "Lynds' Catalogue of Bright Nebulae",
        "name_i18n": "LBNカタログ"
    },
    {
        "key": "NebulaMgr:111",
        "name": "Lynds' Catalogue of Dark Nebulae",
        "name_i18n": "LDNカタログ"
    },
    {
        "key": "NebulaMgr:114",
        "name": "Cederblad Catalog",
        "name_i18n": "セダーブラッド・カタログ(Ced)"
    },
    {
        "key": "NebulaMgr:115",
        "name": "The Catalogue of Peculiar Galaxies",
        "name_i18n": "アープ・アトラス"
    },
    {
        "key": "NebulaMgr:116",
        "name": "The Catalogue of Interacting Galaxies",
        "name_i18n": "VVカタログ"
    },
    {
        "key": "NebulaMgr:117",
        "name": "The Catalogue of Galactic Planetary Nebulae",
        "name_i18n": "惑星状星雲カタログ"
    },
    {
        "key": "NebulaMgr:118",
        "name": "The Strasbourg-ESO Catalogue of Galactic Planetary Nebulae",
        "name_i18n": "ストラスブールESO惑星状星雲カタログ"
    },
    {
        "key": "NebulaMgr:119",
        "name": "A catalogue of Galactic supernova remnants",
        "name_i18n": "超新星残骸カタログ"
    },
    {
        "key": "NebulaMgr:12",
        "name": "Dark nebulae",
        "name_i18n": "暗黒星雲"
    },
    {
        "key": "NebulaMgr:120",
        "name": "A Catalog of Rich Clusters of Galaxies",
        "name_i18n": "エイベル惑星状星雲カタログ ACO"
    },
    {
        "key": "NebulaMgr:121",
        "name": "Hickson Compact Group",
        "name_i18n": "ヒクソン・コンパクト銀河群 HCG"
    },
    {
        "key": "NebulaMgr:122",
        "name": "ESO/Uppsala Survey of the ESO(B) Atlas",
        "name_i18n": "ESO,ウプサラ ESO(B)アトラス調査カタログ ESO"
    },
    {
        "key": "NebulaMgr:123",
        "name": "Catalogue of southern stars embedded in nebulosity",
        "name_i18n": "南天の星雲内にある恒星のカタログ"
    },
    {
        "key": "NebulaMgr:124",
        "name": "Catalogue and distances of optically visible H II regions",
        "name_i18n": "光学的に見えるH II領域のカタログと距離"
    },
    {
        "key": "NebulaMgr:125",
        "name": "Trumpler Catalogue",
        "name_i18n": "トランプラー・カタログ"
    },
    {
        "key": "NebulaMgr:126",
        "name": "Stock Catalogue",
        "name_i18n": "ストック・カタログ"
    },
    {
        "key": "NebulaMgr:127",
        "name": "Ruprecht Catalogue",
        "name_i18n": "ルプレヒト・カタログ"
    },
    {
        "key": "NebulaMgr:128",
        "name": "van den Bergh-Hagen Catalogue",
        "name_i18n": "ファン・デン・ベルグ=ハーゲン・カタログ"
    },
    {
        "key": "NebulaMgr:13",
        "name": "Reflection nebulae",
        "name_i18n": "反射星雲"
    },
    {
        "key": "NebulaMgr:14",
        "name": "Bipolar nebulae",
        "name_i18n": "双極性星雲"
    },
    {
        "key": "NebulaMgr:15",
        "name": "Emission nebulae",
        "name_i18n": "散光星雲"
    },
    {
        "key": "NebulaMgr:150",
        "name": "Dwarf galaxies",
        "name_i18n": "矮小銀河"
    },
    {
        "key": "NebulaMgr:151",
        "name": "Herschel 400 Catalogue",
        "name_i18n": "ハーシェル400カタログ"
    },
    {
        "key": "NebulaMgr:152",
        "name": "Jack Bennett's deep sky catalogue",
        "name_i18n": "ジャック・ベネットの星雲・星団カタログ"
    },
    {
        "key": "NebulaMgr:153",
        "name": "James Dunlop's southern deep sky catalogue",
        "name_i18n": "ジェームス・ダンロップの南天星雲・星団カタログ"
    },
    {
        "key": "NebulaMgr:16",
        "name": "Clusters associated with nebulosity",
        "name_i18n": "星雲を伴う星団"
    },
    {
        "key": "NebulaMgr:17",
        "name": "HII regions",
        "name_i18n": "HII領域"
    },
    {
        "key": "NebulaMgr:18",
        "name": "Supernova remnants",
        "name_i18n": "超新星残骸"
    },
    {
        "key": "NebulaMgr:19",
        "name": "Interstellar matter",
        "name_i18n": "星間物質"
    },
    {
        "key": "NebulaMgr:2",
        "name": "Radio galaxies",
        "name_i18n": "電波銀河"
    },
    {
        "key": "NebulaMgr:20",
        "name": "Emission objects",
        "name_i18n": "発光天体"
    },
    {
        "key": "NebulaMgr:21",
        "name": "BL Lac objects",
        "name_i18n": "とかげ座BL星型天体"
    },
    {
        "key": "NebulaMgr:22",
        "name": "Blazars",
        "name_i18n": "ブレーザー"
    },
    {
        "key": "NebulaMgr:23",
        "name": "Molecular Clouds",
        "name_i18n": "分子雲"
    },
    {
        "key": "NebulaMgr:24",
        "name": "Young Stellar Objects",
        "name_i18n": "若い星状天体 (YSO)"
    },
    {
        "key": "NebulaMgr:25",
        "name": "Possible Quasars",
        "name_i18n": "おそらくクエーサー"
    },
    {
        "key": "NebulaMgr:26",
        "name": "Possible Planetary Nebulae",
        "name_i18n": "おそらく惑星状星雲"
    },
    {
        "key": "NebulaMgr:27",
        "name": "Protoplanetary Nebulae",
        "name_i18n": "惑星状星雲の前段階"
    },
    {
        "key": "NebulaMgr:29",
        "name": "Symbiotic stars",
        "name_i18n": "共生星"
    },
    {
        "key": "NebulaMgr:3",
        "name": "Interacting galaxies",
        "name_i18n": "相互作用銀河"
    },
    {
        "key": "NebulaMgr:30",
        "name": "Emission-line stars",
        "name_i18n": "輝線星"
    },
    {
        "key": "NebulaMgr:31",
        "name": "Supernova candidates",
        "name_i18n": "超新星候補"
    },
    {
        "key": "NebulaMgr:32",
        "name": "Supernova remnant candidates",
        "name_i18n": "超新星残骸の候補"
    },
    {
        "key": "NebulaMgr:33",
        "name": "Clusters of galaxies",
        "name_i18n": "銀河団"
    },
    {
        "key": "NebulaMgr:35",
        "name": "Regions of the sky",
        "name_i18n": "広域天体"
    },
    {
        "key": "NebulaMgr:4",
        "name": "Bright quasars",
        "name_i18n": "明るいクエーサー"
    },
    {
        "key": "NebulaMgr:5",
        "name": "Star clusters",
        "name_i18n": "星団"
    },
    {
        "key": "NebulaMgr:6",
        "name": "Open star clusters",
        "name_i18n": "散開星団"
    },
    {
        "key": "NebulaMgr:7",
        "name": "Globular star clusters",
        "name_i18n": "球状星団"
    },
    {
        "key": "NebulaMgr:8",
        "name": "Stellar associations",
        "name_i18n": "アソシエーション"
    },
    {
        "key": "Novae",
        "name": "Bright Novae",
        "name_i18n": "明るい新星"
    },
    {
        "key": "SolarSystem",
        "name": "Solar System",
        "name_i18n": "太陽系天体"
    },
    {
        "key": "SolarSystem:artificial",
        "name": "Artificial objects",
        "name_i18n": "人工天体"
    },
    {
        "key": "SolarSystem:asteroid",
        "name": "Asteroids",
        "name_i18n": "小惑星"
    },
    {
        "key": "SolarSystem:comet",
        "name": "Comets",
        "name_i18n": "彗星"
    },
    {
        "key": "SolarSystem:cubewano",
        "name": "Cubewanos",
        "name_i18n": "キュビワノ族"
    },
    {
        "key": "SolarSystem:dwarf planet",
        "name": "Dwarf planets",
        "name_i18n": "準惑星"
    },
    {
        "key": "SolarSystem:interstellar object",
        "name": "Interstellar objects",
        "name_i18n": "恒星間天体"
    },
    {
        "key": "SolarSystem:moon",
        "name": "Moons",
        "name_i18n": "衛星"
    },
    {
        "key": "SolarSystem:planet",
        "name": "Planets",
        "name_i18n": "惑星"
    },
    {
        "key": "SolarSystem:plutino",
        "name": "Plutinos",
        "name_i18n": "冥王星族"
    },
    {
        "key": "SolarSystem:scattered disc object",
        "name": "Scattered disc objects",
        "name_i18n": "散乱円盤天体(SDO)"
    },
    {
        "key": "SolarSystem:sednoid",
        "name": "Sednoids",
        "name_i18n": "セドナ族"
    },
    {
        "key": "StarMgr",
        "name": "Stars",
        "name_i18n": "恒星"
    },
    {
        "key": "StarMgr:0",
        "name": "Interesting double stars",
        "name_i18n": "興味深い変光星"
    },
    {
        "key": "StarMgr:1",
        "name": "Interesting variable stars",
        "name_i18n": "興味深い変光星"
    },
    {
        "key": "StarMgr:2",
        "name": "Bright double stars",
        "name_i18n": "明るい二重星"
    },
    {
        "key": "StarMgr:3",
        "name": "Bright variable stars",
        "name_i18n": "明るい変光星"
    },
    {
        "key": "StarMgr:4",
        "name": "Bright stars with high proper motion",
        "name_i18n": "固有運動の大きい明るい恒星"
    },
    {
        "key": "StarMgr:5",
        "name": "Variable stars: Algol-type eclipsing systems",
        "name_i18n": "Variable stars: Algol-type eclipsing systems"
    },
    {
        "key": "StarMgr:6",
        "name": "Variable stars: the classical cepheids",
        "name_i18n": "Variable stars: the classical cepheids"
    },
    {
        "key": "StarMgr:7",
        "name": "Bright carbon stars",
        "name_i18n": "Bright carbon stars"
    },
    {
        "key": "StarMgr:8",
        "name": "Bright barium stars",
        "name_i18n": "Bright barium stars"
    },
    {
        "key": "StelModule",
        "name": "Meteor Showers",
        "name_i18n": "流星群"
    }
]
```
</details>


<b>
まだまだ他のAPIもありますが、今回はここまで。
随時更新していきたいと思っております。
</b>

# 終わりに
プラネタリウムにおける天文計算(高度方位など)をAPIを通じて取得したいと考えて導入したが、そのような機能はなさそうだ。
だが、このAPIのポテンシャルは高そうなので、今後も使っていき、この記事も更新していきたい。

# 参考サイト

https://stellarium.org/doc/24.0/index.html

https://lauradurieux.medium.com/how-to-use-stellarium-http-api-f0942d2c8820

https://stellarium.org/doc/0.22/remoteControlApi.html

http://simbad.cds.unistra.fr/simbad/