Spiral gives your agent every tool with one account. Browse the tools →

n8n · Industry Data

How to Use JPL Horizons orbital elements in n8n

Returns instantaneous orbital geometry, including eccentricity, inclination, and semimajor axis. Use it to compare orbit shapes at specified dates or examine how an orbit changes over time.

Prompts to try with JPL Horizons orbital elements in n8n

Copy an example into n8n, or ask in your own words.

Each Monday, use JPL Horizons orbital elements for Apophis relative to the Sun for the next seven days. Summarize the returned eccentricity, inclination, and semimajor axis.

JPL Horizons orbital elementsn8n
Try asking
  • Every Monday at 9am: use JPL Horizons orbital elements to look this up and give me the result as a table.

  • Pull the latest numbers from JPL Horizons orbital elements and tell me what changed since last week.

  • Check JPL Horizons orbital elements and summarize what you find in three bullet points.

  • Pull the newest data from JPL Horizons orbital elements and give me the result as a table.

How to set up JPL Horizons orbital elements in n8n

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

Use the Spiral skill

  1. Send n8n 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 Spiral's MCP server

  1. Create a key

    Create a key under API keys in the console.

  2. Add an MCP Client node

    In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

    https://api.spiral.ai/mcp
  3. Pick a tool

    The node lists Spiral's tools. In an MCP Client node pick one, such as run, and give it its arguments:

    {
      "provider": "fal",
      "model": "fal-ai/flux/schnell",
      "input": { "prompt": "a lighthouse at dawn" },
      "wait": true
    }
  4. Run JPL Horizons orbital elements in a workflow step

    Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds JPL Horizons orbital elements, prices it and runs it each time the step fires.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    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 orbital elements

    One request; the result comes back by polling or a webhook.

    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/osculating_elements",
        "input": {
          "target": "<target>"
        }
      }'

Then paste one of the prompts above: n8n finds JPL Horizons orbital elements on Spiral, shows the price and runs it.

JPL Horizons orbital elements providers and prices

Spiral runs JPL Horizons orbital elements through Alexandria. Open a card for today's price, with every fee included.

AlexandriaIndustry Data
JPL Horizons ephemerides · Osculating elements
ssd-jpl-nasa-gov/ephemerides/osculating_elements

Settings you can ask for

Ask n8n for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Unitskm_s or au_d

km_s or au_d.

Reference planeecliptic or equator

ecliptic (J2000 ecliptic, default) or equator (ICRF equatorial).

Every API field of JPL Horizons ephemerides · Osculating elements is on its tool page: open its card above.

What can you do with JPL Horizons orbital elements in n8n?

Produce recurring observing briefs and dated distance reports for selected solar system targets. A scheduled agent can calculate upcoming geometry and compare newly returned object information while accounting for Horizons' different update schedules.

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.

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.

Questions about JPL Horizons orbital elements in n8n

Can n8n use JPL Horizons orbital elements?

Yes. Add Spiral to n8n as an MCP server, and n8n can find and run JPL Horizons orbital elements like any built-in tool.

How much does JPL Horizons orbital elements cost in n8n?

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

Do I need an Alexandria account to use JPL Horizons orbital elements in n8n?

You need no Alexandria account. n8n uses one Spiral API key for every tool, and Spiral runs JPL Horizons orbital elements on its own Alexandria account.

How long does it take to set up JPL Horizons orbital elements in n8n?

About two minutes: create a key, then add an MCP Client node, then pick a tool.

Does n8n wait while JPL Horizons orbital elements runs?

JPL Horizons orbital elements runs in the background. n8n 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.

Get started

Start using JPL Horizons orbital elements in n8n

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into n8n:

Set up n8n

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options