Overview
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.
Endpoint
One host, one path per API. The block below shows this call in four languages; every one of them is the same HTTP request. Making requests covers the timeouts, retries and parameter rules that apply to all of them. The SDKs wrap the same call in a typed client.
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_here"const res = await fetch('https://api.apiverve.com/v1/exoplanets?name=Kepler-22%20b&host=TRAPPIST-1&method=transit&year=2016&type=super-earth&habitable=true&limit=25', {
headers: { 'x-api-key': 'your_api_key_here' },
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const { data } = await res.json();
console.log(data);import requests
res = requests.get(
"https://api.apiverve.com/v1/exoplanets?name=Kepler-22%20b&host=TRAPPIST-1&method=transit&year=2016&type=super-earth&habitable=true&limit=25",
headers={"x-api-key": "your_api_key_here"},
timeout=15,
)
res.raise_for_status()
print(res.json()["data"])package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.apiverve.com/v1/exoplanets?name=Kepler-22%20b&host=TRAPPIST-1&method=transit&year=2016&type=super-earth&habitable=true&limit=25", nil)
req.Header.Set("x-api-key", "your_api_key_here")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(string(out))
}Replace your_api_key_here with the key from your dashboard. When the inputs arrive as a list rather than one at a time, batch requests run up to 200 of them through this same API in a single call.
Authentication
Send your key in the x-api-key header. That is the only auth step — there is no token exchange and no per-endpoint scope to configure. Authentication covers creating, rotating and revoking keys.
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.
Parameters
Sent in the query string. Premium parameters are accepted on every plan but only take effect on plans that include them.
| Parameter | Type | Description |
|---|---|---|
nameOptional | string | 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 | Host star name, e.g. TRAPPIST-1, to list every planet in that system innermost first length 0–80 |
methodOptional | string | 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 | Discovery year filter, e.g. 2016 range 1989–2100 |
typeOptional | string | Planet type filter: terrestrial, super-earth, neptune-like or gas giant length 0–20 |
habitableOptionalPremium | boolean | 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 | Maximum planets to return, 1 to 100. Free plans get up to 10 range 1–100 |
Response
Every API returns the same three top-level keys, so one response handler covers your whole integration: status, error and data. Only data changes shape. Response format covers the envelope, the other output formats and how premium fields are withheld.
{
"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) |
Errors
Read the HTTP status first, then error for the specific reason. The body names the parameter that has to change. Error handling covers the full status list and which of them are worth retrying.
| Status | Meaning | What to do |
|---|---|---|
400 | Input was rejected | Read error; it names the parameter. |
401 | Key missing or invalid | Check the header name and the key value. |
403 | Key valid, but not permitted | A key restriction or IP allow-list; see key scoping. |
429 | Rate limited, or out of credits | Read error to tell them apart; see rate limits. |
Use cases
- 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.
Other ways to use Exoplanets
Set up Exoplanets on APIVerve, or reach the same source a different way. Your APIVerve account and credits work on all of them — one key, one balance.
Related
More in Science: