How to Use NASA Exoplanet Archive planet search in Grok
Returns exoplanets matching physical, distance, host-star, or discovery-method criteria. Use it to build a comparison sample or find nearby worlds when you have properties in mind instead of a planet name.
Prompts to try with NASA Exoplanet Archive planet search in Grok
Copy an example into Grok, or ask in your own words.
Use NASA Exoplanet Archive planet search to show the 10 nearest planets within 10 parsecs, ordered from nearest to farthest, with their returned distances and masses.
Use NASA Exoplanet Archive planet search to find 15 planets discovered by microlensing, newest discoveries first, and summarize their returned masses and distances.
Use NASA Exoplanet Archive planet search to look this up and give me the result as a table.
Pull the latest numbers from NASA Exoplanet Archive planet search and tell me what changed since last week.
Check NASA Exoplanet Archive planet search and summarize what you find in three bullet points.
How to set up NASA Exoplanet Archive planet search in Grok
Pick the way that suits you. Each takes about two minutes.
Use the Grok connector
- 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.
https://api.spiral.ai/mcp
- 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.
- 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
- Send Grok this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- Run NASA Exoplanet Archive planet search
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": "exoplanetarchive-ipac-caltech-edu/exoplanets/search_planets", "input": { "sort": "newest" } }'
Then paste one of the prompts above: Grok finds NASA Exoplanet Archive planet search on Spiral, shows the price and runs it.
NASA Exoplanet Archive planet search providers and prices
Spiral runs NASA Exoplanet Archive planet search through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask Grok for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Sort | newest, oldest, nearest, smallest_radius, largest_radius, shortest_period, longest_period, or name | newest | Order: newest or oldest discovery publication, nearest system, radius or orbital period ascending/descending, or name. Numeric sorts leave out planets without that value. |
| Limit | 1 to 100 | 25 | Planets to return (1 to 100). |
| Mass earth max | a number from 0 | Highest mass in Earth masses (planets with no mass value are excluded when set) (inclusive). | |
| Mass earth min | a number from 0 | Lowest mass in Earth masses (planets with no mass value are excluded when set) (inclusive). | |
| Distance pc max | a number from 0 | Highest system distance in parsecs (1 pc = 3.26 light years) (inclusive). | |
| Distance pc min | a number from 0 | Lowest system distance in parsecs (1 pc = 3.26 light years) (inclusive). | |
| Discovery method | Astrometry, Disk Kinematics, Eclipse Timing Variations, Imaging, Microlensing, Orbital Brightness Modulation, Pulsar Timing, Pulsation Timing Variations and 3 more | Only planets found by this method. | |
| Radius earth max | a number from 0 | Highest radius in Earth radii (inclusive). | |
| Radius earth min | a number from 0 | Lowest radius in Earth radii (inclusive). | |
| Discovery year max | 1980 to 2100 | Highest discovery year (inclusive). | |
| Discovery year min | 1980 to 2100 | Lowest discovery year (inclusive). | |
| Orbital period days max | a number from 0 | Highest orbital period in days (inclusive). | |
| Orbital period days min | a number from 0 | Lowest orbital period in days (inclusive). | |
| Equilibrium temperature k max | a number from 0 | Highest equilibrium temperature in kelvin (inclusive). | |
| Equilibrium temperature k min | a number from 0 | Lowest equilibrium temperature in kelvin (inclusive). |
Every API field of NASA Exoplanet Archive · Search planets is on its tool page: open its card above.
What can you do with NASA Exoplanet Archive planet search in Grok?
Prepare an astronomy comparison grounded in the archive's published planet and host-star data. A chat assistant can explain a named world, compare planets around one star, or turn a filtered sample into a readable table.
Check an astronomy article
Check a named planet's reported properties, compare it with the other planets around its host star, and find a comparison sample before describing it as unusually small or massive.
Build a classroom comparison
Prepare a lesson around Kepler-186 f, the Kepler-186 system, or a sample of similarly sized planets. Compare returned radii and orbital periods in a table students can read.
Refresh a planetarium script
Replace old planet measurements in a script with current archive values. Check a featured world, review its host system, or choose examples from a nearby-planet search.
Maintain an exoplanet reference app
Populate planet detail views, system comparison tables, and filtered browsing results. Keep Earth-radius units visible and distinguish minimum masses wherever the returned data identifies them.
Find comparisons for a featured planet
Start with a world such as Kepler-186 f, then search for planets in a similar radius range. Use the returned measurements to explain what the examples share.
Compare planetary system layouts
Build orbital-period and radius tables for TRAPPIST-1 and Kepler-90, or search each host separately for a narrower comparison. Use the results to choose examples for a system architecture lesson.
More on NASA Exoplanet Archive planet search and Grok
Overview
NASA Exoplanet Archive planet search in other agents
Questions about NASA Exoplanet Archive planet search in Grok
Can Grok use NASA Exoplanet Archive planet search?
Yes. Add Spiral to Grok as an MCP server, and Grok can find and run NASA Exoplanet Archive planet search like any built-in tool.
How much does NASA Exoplanet Archive planet search 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 NASA Exoplanet Archive planet search in Grok?
No. Spiral runs NASA Exoplanet Archive planet search on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up NASA Exoplanet Archive planet search 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 NASA Exoplanet Archive planet search runs?
NASA Exoplanet Archive planet search runs in the background. Grok starts the run, checks on it and gives you the json when it's ready.
How fresh are the planet and star measurements?
The archive generally adds new planets and updated planetary and stellar data weekly. It sometimes skips a week, so updates do not follow a guaranteed seven-day schedule.
What mass range does the archive classify as planetary?
Its inclusion criteria require a mass, or minimum mass, of no more than 30 Jupiter masses. That boundary helps explain why an object described as a planet elsewhere might be absent.
Where do the measurements come from?
The archive collects parameter sets for planets, their orbits, and their host systems from refereed literature. These are published scientific results rather than a continuous stream of telescope measurements.
Can all values in a planet record be used together in a physical model?
Use caution with composite data: the archive combines values from different references to fill gaps, and the resulting parameter set may not be internally consistent. Its documentation recommends the Planetary Systems table when a self-consistent published solution is needed.
Does a reported planet mass always mean its true mass?
No. The archive distinguishes true mass from the minimum mass measured through radial velocity, expressed as mass times the sine of orbital inclination. Keep that distinction when comparing planets by mass.
Start using NASA Exoplanet Archive planet search in Grok
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Grok:
set up https://spiral.ai/SKILL.md


