[Integrations](https://spiral.ai/integrations) › [Grok](https://spiral.ai/integrations/grok) › [JPL Horizons observer ephemeris](https://spiral.ai/integrations/grok/jpl-horizons-observer-ephemeris)

# How to Use JPL Horizons observer ephemeris in Grok

Returns sky positions, brightness, and distance over time, with azimuth and elevation for a surface observer. Use it to plan observations or explain where a planet or comet appears from a particular location.

|  |  |
| --- | --- |
| Model | JPL Horizons observer ephemeris |
| 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 observer ephemeris in Grok

- Use JPL Horizons observer ephemeris to find Jupiter's elevation and direction from Griffith Observatory every 30 minutes between 03:00 and 13:00 UTC on December 1, 2026.
- Use JPL Horizons observer ephemeris to look this up and give me the result as a table.
- Pull the latest numbers from JPL Horizons observer ephemeris and tell me what changed since last week.
- Check JPL Horizons observer ephemeris and summarize what you find in three bullet points.
- Pull the newest data from JPL Horizons observer ephemeris and give me the result as a table.

## How to set up JPL Horizons observer ephemeris in Grok

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

### Use the Grok connector

1. **Add a custom connector**: In Grok open Settings › Connect Apps, then Add a custom connector. Name it Spiral, paste this URL, leave Headers empty and click Add MCP.

```text
https://api.spiral.ai/mcp
```

2. **Sign in to Spiral and approve**: Grok opens Spiral: sign in, pick the organization and click Authorize. Spiral gives the connection its own API key; Grok never sees it, and you can remove the connection under Settings › Connected apps.

3. **Check that it is connected**: Connect Apps › Custom shows Spiral as Connected. It works in every Grok chat and Grok bot.

### Use the Spiral skill

1. **Send Grok 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 observer ephemeris**: 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/observer_ephemeris",
    "input": {
      "target": "<target>"
    }
  }'
```

Then paste one of the prompts above: Grok finds JPL Horizons observer ephemeris on Spiral, shows the price and runs it.

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

## JPL Horizons observer ephemeris tools and prices

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

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| step |  | — | Step between rows: 30 m, 1 h, 6 h, 1 d, 1 mo, 1 y (default 1 d). At most 500 rows per call. |
| stop |  | — | Stop time. Omit for one row at start. UTC for observer tables, TDB for vectors and elements: YYYY-MM-DD, YYYY-MM-DD HH:MM or YYYY-MM-DDTHH:MM:SSZ, years 1000 to 3000. |
| start |  | — | Start time (or the single instant when stop is omitted; default now). UTC for observer tables, TDB for vectors and elements: YYYY-MM-DD, YYYY-MM-DD HH:MM or YYYY-MM-DDTHH:MM:SSZ, years 1000 to 3000. |
| center |  | — | Observer body instead of a site: 399 Earth center (default), 301 Moon, 499 Mars, -170 JWST, or site@body such as 675@399 (an MPC observatory code). Not with latitude/longitude. |
| latitude | -90 to 90 | — | Observer geodetic latitude, degrees north. With longitude, gives azimuth, elevation and day/night. |
| longitude | -180 to 180 | — | Observer longitude, degrees east (negative west). |

## What can you do with JPL Horizons observer ephemeris in Grok?

Get an observing plan or a dated explanation of a solar system object's motion. A chat app can explain Horizons identities, physical facts, sky positions, and orbital geometry in the same conversation.

### 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.

### 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.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Grok guides](https://spiral.ai/integrations/grok)

## JPL Horizons observer ephemeris in other agents

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

## More Grok guides

- [JPL Horizons object lookup](https://spiral.ai/integrations/grok/jpl-horizons-object-lookup)
- [JPL Horizons orbital elements](https://spiral.ai/integrations/grok/jpl-horizons-orbital-elements)
- [JPL Horizons object details](https://spiral.ai/integrations/grok/jpl-horizons-object-details)
- [JPL Horizons state vectors](https://spiral.ai/integrations/grok/jpl-horizons-state-vectors)
- [Free Use Bible translation catalog](https://spiral.ai/integrations/grok/free-use-bible-translation-catalog)
- [MIT Election Lab dataset details](https://spiral.ai/integrations/grok/mit-election-lab-dataset-details)

## Questions about JPL Horizons observer ephemeris in Grok

**Can Grok use JPL Horizons observer ephemeris?**

Yes. Add Spiral to Grok as an MCP server, and Grok can find and run JPL Horizons observer ephemeris like any built-in tool.

**How much does JPL Horizons observer ephemeris cost in Grok?**

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

**Do I need an Alexandria account to use JPL Horizons observer ephemeris in Grok?**

No. Spiral runs JPL Horizons observer ephemeris 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 observer ephemeris in Grok?**

About two minutes: add a custom connector, then sign in to Spiral and approve, then check that it is connected.

**Does Grok wait while JPL Horizons observer ephemeris runs?**

JPL Horizons observer ephemeris runs in the background. Grok 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.

