[Integrations](https://spiral.ai/integrations) › [VS Code](https://spiral.ai/integrations/vscode) › [JPL Horizons object details](https://spiral.ai/integrations/vscode/jpl-horizons-object-details)

# How to Use JPL Horizons object details in VS Code

Returns a body's physical summary and available orbit or mission notes from JPL Horizons. Use it for background facts and solution context before calculating where that body will be.

|  |  |
| --- | --- |
| Model | JPL Horizons object details |
| Available through | Alexandria |
| Category | Industry Data |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with JPL Horizons object details in VS Code

- Use JPL Horizons object details for Mars and the Moon, then create a project reference table containing their available physical properties and source notes.
- Use JPL Horizons object details to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from JPL Horizons object details and tell me what changed since last week.
- Check JPL Horizons object details and summarize what you find in three bullet points.
- Pull the newest data from JPL Horizons object details and give me the result as a table.

## How to set up JPL Horizons object details in VS Code

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the hosted server**: Use Add to VS Code on the console's Agents & MCP page, or run:

```bash
code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}'
```

2. **Sign in**: VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.

### Use the Spiral skill

1. **Send VS Code this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run JPL Horizons object details**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "ssd-jpl-nasa-gov/ephemerides/object_data",
    "input": {
      "target": "<target>"
    }
  }'
```

Then paste one of the prompts above: VS Code finds JPL Horizons object details on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/vscode

## JPL Horizons object details tools and prices

- [JPL Horizons ephemerides · Object data](https://spiral.ai/tools/alexandria/ssd-jpl-nasa-gov/ephemerides/object_data) (Alexandria): $0.00873 per call.

## What can you do with JPL Horizons object details in VS Code?

Build a sky-position viewer, target catalog, or orbital simulation comparison using JPL Horizons data. A coding agent can turn object identities, physical summaries, and calculated motion into project files and charts.

### Prepare a planetarium presentation

Identify Mars, collect its physical summary, and calculate its sky position for the presentation date. Use orbital geometry and three-dimensional coordinates to connect the audience's view with Mars's position around the Sun.

### Build an asteroid briefing

Resolve Apophis and its historical designation, summarize available physical and orbit information, and calculate its sky position for a chosen date. Add orbit elements and Earth-relative vectors to explain its geometry and distance.

### Create a lesson on orbit geometry

Identify Earth and Mars, compare their physical summaries, and examine their orbit elements and positions on matching dates. Contrast the resulting spatial diagram with their apparent sky positions as seen from Earth.

### Check an orbital simulation

Confirm the simulated target's identity and inspect its source summary. Compare modeled orbital elements and Cartesian positions and velocities with Horizons results at the same epochs.

### Prepare an observing run

Resolve a comet's identity and read its available physical and solution notes. Calculate sky coordinates, brightness, distance, and elevation from the observatory throughout the planned session.

### Explain a spacecraft's journey

Identify Voyager 1 and read its trajectory notes before building a dated mission explainer. Use Earth-view coordinates, heliocentric orbit geometry, and position and velocity vectors to describe its direction, distance, and motion.

### Clean an astronomy target catalog

Match labels such as 2004 MN4 to their recognized object names and identifiers. Attach the corresponding object summaries so similarly named spacecraft, asteroids, and comets are easier to distinguish.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All VS Code guides](https://spiral.ai/integrations/vscode)

## JPL Horizons object details in other agents

- [Amp](https://spiral.ai/integrations/amp/jpl-horizons-object-details)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/jpl-horizons-object-details)
- [Claude](https://spiral.ai/integrations/claude-desktop/jpl-horizons-object-details)
- [Claude Code](https://spiral.ai/integrations/claude-code/jpl-horizons-object-details)
- [Cline](https://spiral.ai/integrations/cline/jpl-horizons-object-details)
- [Codex](https://spiral.ai/integrations/codex/jpl-horizons-object-details)
- [Cursor](https://spiral.ai/integrations/cursor/jpl-horizons-object-details)
- [Devin](https://spiral.ai/integrations/devin/jpl-horizons-object-details)
- [dots](https://spiral.ai/integrations/dots/jpl-horizons-object-details)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/jpl-horizons-object-details)
- [Gemini](https://spiral.ai/integrations/gemini/jpl-horizons-object-details)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/jpl-horizons-object-details)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/jpl-horizons-object-details)
- [goose](https://spiral.ai/integrations/goose/jpl-horizons-object-details)
- [Grok](https://spiral.ai/integrations/grok/jpl-horizons-object-details)
- [Grok Build](https://spiral.ai/integrations/grok-build/jpl-horizons-object-details)
- [Hermes](https://spiral.ai/integrations/hermes/jpl-horizons-object-details)
- [Instinct](https://spiral.ai/integrations/instinct/jpl-horizons-object-details)
- [Manus](https://spiral.ai/integrations/manus/jpl-horizons-object-details)
- [Muse](https://spiral.ai/integrations/muse/jpl-horizons-object-details)
- [Muse Code](https://spiral.ai/integrations/muse-code/jpl-horizons-object-details)
- [n8n](https://spiral.ai/integrations/n8n/jpl-horizons-object-details)
- [Notion](https://spiral.ai/integrations/notion/jpl-horizons-object-details)
- [OpenClaw](https://spiral.ai/integrations/openclaw/jpl-horizons-object-details)
- [opencode](https://spiral.ai/integrations/opencode/jpl-horizons-object-details)
- [Perplexity](https://spiral.ai/integrations/perplexity/jpl-horizons-object-details)
- [Raycast](https://spiral.ai/integrations/raycast/jpl-horizons-object-details)
- [Windsurf](https://spiral.ai/integrations/windsurf/jpl-horizons-object-details)
- [Zapier](https://spiral.ai/integrations/zapier/jpl-horizons-object-details)

## More VS Code guides

- [Free Use Bible translation catalog](https://spiral.ai/integrations/vscode/free-use-bible-translation-catalog)
- [JPL Horizons object lookup](https://spiral.ai/integrations/vscode/jpl-horizons-object-lookup)
- [Free Use Bible passage](https://spiral.ai/integrations/vscode/free-use-bible-passage)
- [JPL Horizons observer ephemeris](https://spiral.ai/integrations/vscode/jpl-horizons-observer-ephemeris)
- [Free Use Bible commentary catalog](https://spiral.ai/integrations/vscode/free-use-bible-commentary-catalog)
- [JPL Horizons orbital elements](https://spiral.ai/integrations/vscode/jpl-horizons-orbital-elements)

## Questions about JPL Horizons object details in VS Code

**Can VS Code use JPL Horizons object details?**

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run JPL Horizons object details like any built-in tool.

**How much does JPL Horizons object details cost in VS Code?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your VS Code plan is separate.

**Do I need an Alexandria account to use JPL Horizons object details in VS Code?**

No. Spiral runs JPL Horizons object details on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up JPL Horizons object details in VS Code?**

About two minutes: add the hosted server, then sign in.

**Does VS Code wait while JPL Horizons object details runs?**

JPL Horizons object details runs in the background. VS Code starts the run, checks on it and gives you the json when it's ready.

**Which objects does Horizons cover?**

Horizons covers planets, natural satellites, asteroids, comets, the Sun, selected spacecraft, dynamical points, and system barycenters. Its spacecraft catalog covers selected missions.

**How fresh are the data?**

The small-body database updates hourly with new objects and orbit solutions. Spacecraft trajectories may update weekly or monthly and represent tracking fits and predictions.

**Can one name identify several objects?**

Yes. Juno can match spacecraft and an asteroid, while Halley can match both a comet and an asteroid; confirm the object category and identifier before interpreting its data.

**How far into the past or future does coverage extend?**

Each target has its own available trajectory interval. JPL reports coverage boundaries in Barycentric Dynamical Time, so there is no single date range that applies to every object.

**Can I extrapolate an orbit indefinitely from one set of elements?**

No. JPL warns that two-body extrapolation from osculating elements can produce large errors, especially for planetary satellites and comets, with error generally increasing farther from the elements' epoch.

