Look up any confirmed exoplanet: size, mass, orbit, temperature and its host star.
Exoplanets returns NASA Exoplanet Archive data for about 6,000 confirmed planets outside the solar system. Look one up by name, list a star system, or filter by discovery method, year, planet type or habitable zone. Every plan gets the discovery facts, orbital period, radius, mass, planet type and distance. Paid plans add orbit shape, temperatures, density, sunlight received, the habitable-zone flag and host star physics.
Try it — live request, no key required
No key required to try it. Get a key to use it in your app.
{
"status": "ok",
"error": null,
"data": {
"query": "Kepler-22 b",
"count": 1,
"returned": 1,
"planets": [
{
"name": "Kepler-22 b",
"hostName": "Kepler-22",
"letter": "b",
"discoveryMethod": "Transit",
"discoveryYear": 2011,
"discoveryFacility": "Kepler",
"discoveryTelescope": "0.95 m Kepler Telescope",
"discoveredFromSpace": true,
"controversial": false,
"transits": true,
"orbitalPeriodDays": 289.863876,
"semiMajorAxisAu": 0.812,
"eccentricity": 0.72,
"inclinationDeg": 89.764,
"radiusEarth": 2.1,
"radiusJupiter": 0.1873,
"massEarth": 9.1,
"massJupiter": 0.02863,
"massSource": "Mass",
"densityGcm3": 5.2,
"equilibriumTempK": 279,
"insolationEarth": 1.013,
"transitDurationHours": 7.415,
"ra": 289.217205,
"dec": 47.884143,
"distanceParsecs": 194.642,
"vMagnitude": 11.751,
"planetType": "super-earth",
"inHabitableZone": true,
"distanceLightYears": 634.84,
"star": {
"name": "Kepler-22",
"spectralType": "G5 V",
"temperatureK": 5596,
"radiusSun": 0.869,
"massSun": 0.857,
"metallicity": -0.255,
"luminosityLogSun": -0.1902,
"ageGyr": 7,
"surfaceGravityLog": 4.443
},
"system": {
"starCount": 1,
"planetCount": 1,
"moonCount": 0,
"circumbinary": false
}
}
],
"dataAsOf": "2026-11-28"
}
}
About the Exoplanets API
An exoplanet API for astronomy apps, classroom tools, space news sites and science quizzes. Search Kepler-22 b or Proxima Cen b by name (spacing and hyphens don't matter), pass a host star such as TRAPPIST-1 to list its planets innermost first, or filter the whole catalog by discovery method (transit, radial velocity, imaging, microlensing...), discovery year, planet type or habitable zone.
Every plan gets the planet and host star names, discovery method, year and facility, orbital period, radius and mass in Earth units, the planet type (terrestrial, super-earth, neptune-like or gas giant) and the distance in light years. Paid plans add the semi-major axis, eccentricity and inclination, radius and mass in Jupiter units, density, equilibrium temperature, the sunlight it receives relative to Earth, a habitable-zone flag, transit duration, sky position, and the host star's spectral type, temperature, radius, mass, metallicity, luminosity and age, plus up to 100 results per call.
This research has made use of the NASA Exoplanet Archive, which is operated by the California Institute of Technology, under contract with the National Aeronautics and Space Administration under the Exoplanet Exploration Program. Data comes from the Planetary Systems Composite Parameters table and is refreshed monthly.
How it works
Pass name, host, or any of the filters method, year, type and habitable (paid). A name search ignores case, spaces and hyphens, so Kepler22b finds Kepler-22 b; a name that matches no planet but is a host star lists that system, and a partial name lists planets that start with it. host returns a system innermost first. Filters combine with each other and with a name or host; a filter-only call lists the whole catalog newest discoveries first. count is the number of matches and returned how many are in the response (10 on the Free plan, up to limit on paid plans). No match returns 404.
Data is the NASA Exoplanet Archive's Planetary Systems Composite Parameters table (pscomppars), one row per confirmed planet with a single value per parameter chosen from the published solutions. It is stored by APIVerve and checked monthly; dataAsOf is the date the stored catalog was last rebuilt from the archive.
planetType and inHabitableZone are computed by APIVerve. The type follows mass when the archive has one (under 2 Earth masses terrestrial, under 10 super-earth, under 50 neptune-like, otherwise gas giant), else radius (1.25, 2 and 6 Earth radii). The habitable-zone flag is true for 0.32 to 1.78 times Earth's insolation. massSource tells measured masses from minimum masses (Msini) and radius-based estimates (M-R relationship).
This research has made use of the NASA Exoplanet Archive, which is operated by the California Institute of Technology, under contract with the National Aeronautics and Space Administration under the Exoplanet Exploration Program.
What people use it for
- Astronomy and Stargazing Apps
- Show the planets known around a star a user points their phone at, with size, orbit and how far away they are.
- Education and Classroom Tools
- Let students compare real worlds with Earth: which planets are rocky, which sit in the habitable zone, and how each was found.
- Space News and Media
- Enrich a discovery story with the planet's measured radius, mass, orbital period and host star in one call.
- Science Quizzes and Games
- Generate questions from discovery years, methods and record-holding planets across the whole catalog.
Ways to call it
One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.
- JSON
- Default REST response
- XML
- Markup format
- YAML
- Human-readable
- CSV
- Tabular export
- GraphQL
- Query language
- MCP
- For AI agents
Other ways to use Exoplanets
Same data, same APIVerve account, same credit balance — one key works on all of them.
How many exoplanets are covered?
What does the Free plan return?
Where do the values come from?
How is the habitable zone decided?
Which plan covers a classroom app with 20,000 lookups a month?
Request parameters — GET /v1/exoplanets
Sent in the query string. Premium parameters are accepted on every plan but only take effect on plans that include them. Anything not listed here is dropped rather than passed through.
Optional
| Parameter | Type | Example | Description |
|---|---|---|---|
nameOptional | string | Kepler-22 b | Planet name, e.g. Kepler-22 b or Proxima Cen b; spacing, case and hyphens are ignored. A host star name lists its planets length 0-80 |
hostOptional | string | TRAPPIST-1 | Host star name, e.g. TRAPPIST-1, to list every planet in that system innermost first length 0-80 |
methodOptional | string | transit | Discovery method filter: transit, radial velocity (rv), imaging, microlensing, astrometry, transit timing variations, eclipse timing variations, pulsar timing, pulsation timing variations, orbital brightness modulation or disk kinematics length 0-40 |
yearOptional | integer | 2016 | Discovery year filter, e.g. 2016 range 1989-2100 |
typeOptional | string | super-earth | Planet type filter: terrestrial, super-earth, neptune-like or gas giant length 0-20 |
habitableOptionalPremium | boolean | true | true lists only planets in the optimistic habitable zone (0.32 to 1.78 times Earth's sunlight); false only those outside it |
limitOptionalPremium | integer | 25 | Maximum planets to return, 1 to 100. Free plans get up to 10 range 1-100 |
curl "https://api.apiverve.com/v1/exoplanets?name=Kepler-22%20b&host=TRAPPIST-1&method=transit&year=2016&type=super-earth&habitable=true&limit=25" \
-H "x-api-key: YOUR_API_KEY"Authentication
Send your key in the x-api-key header. That is the only auth step — no token exchange, and no per-endpoint scope to configure.
| Header | When | Value |
|---|---|---|
x-api-keyRequired | Every request | Your API key. Header names are case-insensitive, so X-API-Key is the same header. |
AuthorizationAlternate | Instead of the above | Bearer <key> — for clients that only expose bearer auth. Resolves to the same account and the same billing. |
A 401 means the key is missing, invalid or expired. A 403 means the key is valid but not permitted here — blocked by a key restriction or an IP allow-list. Running out of credits is a 429.
Response — GET /v1/exoplanets
Every APIVerve endpoint returns the same three top-level keys, so one response handler covers your whole integration: status, error and data. Only data changes shape.
{
"status": "ok",
"error": null,
"data": {
"query": "Kepler-22 b",
"count": 1,
"returned": 1,
"planets": [
{
"name": "Kepler-22 b",
"hostName": "Kepler-22",
"letter": "b",
"discoveryMethod": "Transit",
"discoveryYear": 2011,
"discoveryFacility": "Kepler",
"discoveryTelescope": "0.95 m Kepler Telescope",
"discoveredFromSpace": true,
"controversial": false,
"transits": true,
"orbitalPeriodDays": 289.863876,
"semiMajorAxisAu": 0.812,
"eccentricity": 0.72,
"inclinationDeg": 89.764,
"radiusEarth": 2.1,
"radiusJupiter": 0.1873,
"massEarth": 9.1,
"massJupiter": 0.02863,
"massSource": "Mass",
"densityGcm3": 5.2,
"equilibriumTempK": 279,
"insolationEarth": 1.013,
"transitDurationHours": 7.415,
"ra": 289.217205,
"dec": 47.884143,
"distanceParsecs": 194.642,
"vMagnitude": 11.751,
"planetType": "super-earth",
"inHabitableZone": true,
"distanceLightYears": 634.84,
"star": {
"name": "Kepler-22",
"spectralType": "G5 V",
"temperatureK": 5596,
"radiusSun": 0.869,
"massSun": 0.857,
"metallicity": -0.255,
"luminosityLogSun": -0.1902,
"ageGyr": 7,
"surfaceGravityLog": 4.443
},
"system": {
"starCount": 1,
"planetCount": 1,
"moonCount": 0,
"circumbinary": false
}
}
],
"dataAsOf": "2026-11-28"
}
}
Response fields
Paths are relative to data. Premium fields are absent rather than zeroed on plans that do not include them, so check for presence instead of comparing to 0.
| Field | Type | Example | Description |
|---|---|---|---|
query | string | "Kepler-22 b" | The name or host searched for; null for a filter-only list |
count | number | 1 | Number of planets matching the search and filters |
returned | number | 1 | Number of planets in this response (capped by limit) |
planets | array[1] | Matching planets: by name, a system innermost first, or newest discoveries first for filter lists | |
name | string | "Kepler-22 b" | Planet name as the archive lists it, e.g. Kepler-22 b |
hostName | string | "Kepler-22" | Host star name |
letter | string | "b" | Planet letter within its system (b, c, d...) |
discoveryMethod | string | "Transit" | How the planet was discovered: Transit, Radial Velocity, Imaging, Microlensing... |
discoveryYear | number | 2011 | Year the discovery was announced |
discoveryFacility | string | "Kepler" | Observatory or mission credited with the discovery, e.g. Kepler, TESS |
discoveryTelescopePremium | string | "0.95 m Kepler Telescope" | Telescope used for the discovery |
discoveredFromSpace | boolean | true | True when the discovery came from a space telescope |
controversial | boolean | false | True when the archive flags the planet's existence as questioned in the literature |
transits | boolean | true | True when the planet is seen to transit its star |
orbitalPeriodDays | number | 289.863876 | Time to complete one orbit, in days |
semiMajorAxisAuPremium | number | 0.812 | Average orbital distance from the star in astronomical units (Earth = 1) |
eccentricityPremium | number | 0.72 | Orbital eccentricity, 0 for a circle |
inclinationDegPremium | number | 89.764 | Orbital inclination to our line of sight, in degrees |
radiusEarth | number | 2.1 | Planet radius in Earth radii |
radiusJupiterPremium | number | 0.1873 | Planet radius in Jupiter radii |
massEarth | number | 9.1 | Planet mass in Earth masses (see massSource) |
massJupiterPremium | number | 0.02863 | Planet mass in Jupiter masses |
massSourcePremium | string | "Mass" | What the mass is: Mass (measured), Msini (minimum mass) or M-R relationship (estimated from radius) |
densityGcm3Premium | number | 5.2 | Bulk density in grams per cubic centimetre |
equilibriumTempKPremium | number | 279 | Equilibrium temperature in kelvin |
insolationEarthPremium | number | 1.013 | Sunlight received relative to Earth (1 = Earth) |
transitDurationHoursPremium | number | 7.415 | Length of a transit in hours, for transiting planets |
raPremium | number | 289.217205 | Right ascension of the system, in degrees |
decPremium | number | 47.884143 | Declination of the system, in degrees |
distanceParsecsPremium | number | 194.642 | Distance from the Sun in parsecs |
vMagnitudePremium | number | 11.751 | Host star's apparent V-band magnitude |
planetType | string | "super-earth" | terrestrial, super-earth, neptune-like or gas giant, from mass (radius when no mass is on record) |
inHabitableZonePremium | boolean | true | True when the planet gets 0.32 to 1.78 times Earth's sunlight; null when unknown |
distanceLightYears | number | 634.84 | Distance from the Sun in light years |
star | object | {...} | Host star properties |
name | string | "Kepler-22" | Host star name |
spectralTypePremium | string | "G5 V" | Spectral type, e.g. G5 V |
temperatureKPremium | number | 5596 | Effective temperature in kelvin |
radiusSunPremium | number | 0.869 | Radius in solar radii |
massSunPremium | number | 0.857 | Mass in solar masses |
metallicityPremium | number | -0.255 | Metallicity [Fe/H] in dex |
luminosityLogSunPremium | number | -0.1902 | Luminosity as log10 of solar luminosity |
ageGyrPremium | number | 7 | Age in billions of years |
surfaceGravityLogPremium | number | 4.443 | Surface gravity, log10(cm/s²) |
system | object | {...} | System counts |
starCount | number | 1 | Stars in the system |
planetCount | number | 1 | Confirmed planets in the system |
moonCount | number | 0 | Confirmed exomoons in the system |
circumbinary | boolean | false | True when the planet orbits two stars |
dataAsOf | string | "2026-11-28" | Date APIVerve last rebuilt the catalog from the archive (YYYY-MM-DD) |
Response headers
Every response carries your balance, so your own code always knows where it stands without polling anything. All four are exposed to browsers through CORS.
| Header | What it carries |
|---|---|
x-api-remaining-credits | Credits left in the current cycle |
x-api-credits-used | Credits spent in the current cycle |
x-api-max-credits | The allowance for the cycle |
x-api-version | Version of the endpoint that answered |
Errors
Read the HTTP status first, then error for the specific reason. The body names the parameter that has to change.
| Status | Meaning | What to do |
|---|---|---|
400 | Input was rejected | Read error; it names the parameter that has to change. |
401 | Key missing or invalid | Check the header name and the key value. |
403 | Key valid, but not permitted here | A key restriction or an IP allow-list — never a bad key. |
429 | Rate limited, or out of credits | Read error to tell them apart, then back off or top up. |
What a call costs — 2 credits per call
Credits are shared across every APIVerve API — one balance, one key, one bill. Failed requests never count against it, so a rejected input costs nothing.
| Plan | Per month | Credits | Exoplanets calls | Per 1,000 calls |
|---|---|---|---|---|
| Free | Free | 200 | 100 | Free |
| Starter | $29.99 | 200,000 | 100,000 | $0.30 |
| Pro | $99.99 | 1,000,000 | 500,000 | $0.20 |
| Mega | $299.99 | 4,000,000 | 2,000,000 | $0.15 |
Calls are what the credits buy at this API's rate — spend them here, on any of the other APIs, or across both. Nothing is reserved per endpoint.
Call it from cURL — GET /v1/exoplanets
No SDK to install — this is a plain HTTPS call to /v1/exoplanets with your key in the x-api-key header. Swap in a real key and it runs as-is.
curl "https://api.apiverve.com/v1/exoplanets" \
-H "x-api-key: YOUR_API_KEY"Resources
Call it from Node.js — GET /v1/exoplanets
No SDK to install — this is a plain HTTPS call to /v1/exoplanets with your key in the x-api-key header. Swap in a real key and it runs as-is.
const res = await fetch("https://api.apiverve.com/v1/exoplanets", {
headers: { "x-api-key": "YOUR_API_KEY" },
});
const { data } = await res.json();
console.log(data);Resources
Call it from Python — GET /v1/exoplanets
No SDK to install — this is a plain HTTPS call to /v1/exoplanets with your key in the x-api-key header. Swap in a real key and it runs as-is.
import requests
res = requests.get(
"https://api.apiverve.com/v1/exoplanets",
headers={"x-api-key": "YOUR_API_KEY"},
)
print(res.json()["data"])Resources
Call it from C# / .NET — GET /v1/exoplanets
No SDK to install — this is a plain HTTPS call to /v1/exoplanets with your key in the x-api-key header. Swap in a real key and it runs as-is.
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("x-api-key", "YOUR_API_KEY");
var json = await client.GetStringAsync("https://api.apiverve.com/v1/exoplanets");
Console.WriteLine(json);Resources
Call it from Go — GET /v1/exoplanets
No SDK to install — this is a plain HTTPS call to /v1/exoplanets with your key in the x-api-key header. Swap in a real key and it runs as-is.
req, _ := http.NewRequest("GET", "https://api.apiverve.com/v1/exoplanets", nil)
req.Header.Set("x-api-key", "YOUR_API_KEY")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))Resources
Call it from PHP — GET /v1/exoplanets
No SDK to install — this is a plain HTTPS call to /v1/exoplanets with your key in the x-api-key header. Swap in a real key and it runs as-is.
$ch = curl_init("https://api.apiverve.com/v1/exoplanets");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-api-key: YOUR_API_KEY"]);
$response = curl_exec($ch);
echo $response;Resources
Call it from Ruby — GET /v1/exoplanets
No SDK to install — this is a plain HTTPS call to /v1/exoplanets with your key in the x-api-key header. Swap in a real key and it runs as-is.
require "net/http"
uri = URI("https://api.apiverve.com/v1/exoplanets")
req = Net::HTTP::Get.new(uri)
req["x-api-key"] = "YOUR_API_KEY"
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |h| h.request(req) }
puts res.bodyResources
Zero-code embed — one snippet, no backend
Drop an interactive Exoplanets form onto any page. The widget calls the API for you, so no key ever appears in your markup and there is nothing to deploy.
Changelog — Exoplanets API
Every change to this endpoint, newest first. Breaking changes ship as a new version and the previous one keeps serving — response fields are added, never removed or retyped in place, so an integration written against v1 keeps working.
Entries are picked up from dated catalog snapshots, so the first one appears after the next snapshot that moves something. A period where nothing changed produces no entry — silence is a valid changelog for the Exoplanets API.