Docs/APIs/Exoplanets

Exoplanets

Every Confirmed Planet Beyond the Solar System

OperationalCredits 2 per callp50 145msScienceStar

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.

Live Test Exoplanets API →

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.

GEThttps://api.apiverve.com/v1/exoplanets
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"

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.

401 is the only auth verdict

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.

ParameterTypeDescription
nameOptionalstringPlanet 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
hostOptionalstringHost star name, e.g. TRAPPIST-1, to list every planet in that system innermost first
length 0–80
methodOptionalstringDiscovery 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
yearOptionalintegerDiscovery year filter, e.g. 2016
range 1989–2100
typeOptionalstringPlanet type filter: terrestrial, super-earth, neptune-like or gas giant
length 0–20
habitableOptionalPremiumbooleantrue lists only planets in the optimistic habitable zone (0.32 to 1.78 times Earth's sunlight); false only those outside it
limitOptionalPremiumintegerMaximum 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.

Sample response
{
  "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.

FieldTypeExampleDescription
querystring"Kepler-22 b"The name or host searched for; null for a filter-only list
countnumber1Number of planets matching the search and filters
returnednumber1Number of planets in this response (capped by limit)
planetsarray[1]Matching planets: by name, a system innermost first, or newest discoveries first for filter lists
namestring"Kepler-22 b"Planet name as the archive lists it, e.g. Kepler-22 b
hostNamestring"Kepler-22"Host star name
letterstring"b"Planet letter within its system (b, c, d...)
discoveryMethodstring"Transit"How the planet was discovered: Transit, Radial Velocity, Imaging, Microlensing...
discoveryYearnumber2011Year the discovery was announced
discoveryFacilitystring"Kepler"Observatory or mission credited with the discovery, e.g. Kepler, TESS
discoveryTelescopePremiumstring"0.95 m Kepler Telescope"Telescope used for the discovery
discoveredFromSpacebooleantrueTrue when the discovery came from a space telescope
controversialbooleanfalseTrue when the archive flags the planet's existence as questioned in the literature
transitsbooleantrueTrue when the planet is seen to transit its star
orbitalPeriodDaysnumber289.863876Time to complete one orbit, in days
semiMajorAxisAuPremiumnumber0.812Average orbital distance from the star in astronomical units (Earth = 1)
eccentricityPremiumnumber0.72Orbital eccentricity, 0 for a circle
inclinationDegPremiumnumber89.764Orbital inclination to our line of sight, in degrees
radiusEarthnumber2.1Planet radius in Earth radii
radiusJupiterPremiumnumber0.1873Planet radius in Jupiter radii
massEarthnumber9.1Planet mass in Earth masses (see massSource)
massJupiterPremiumnumber0.02863Planet mass in Jupiter masses
massSourcePremiumstring"Mass"What the mass is: Mass (measured), Msini (minimum mass) or M-R relationship (estimated from radius)
densityGcm3Premiumnumber5.2Bulk density in grams per cubic centimetre
equilibriumTempKPremiumnumber279Equilibrium temperature in kelvin
insolationEarthPremiumnumber1.013Sunlight received relative to Earth (1 = Earth)
transitDurationHoursPremiumnumber7.415Length of a transit in hours, for transiting planets
raPremiumnumber289.217205Right ascension of the system, in degrees
decPremiumnumber47.884143Declination of the system, in degrees
distanceParsecsPremiumnumber194.642Distance from the Sun in parsecs
vMagnitudePremiumnumber11.751Host star's apparent V-band magnitude
planetTypestring"super-earth"terrestrial, super-earth, neptune-like or gas giant, from mass (radius when no mass is on record)
inHabitableZonePremiumbooleantrueTrue when the planet gets 0.32 to 1.78 times Earth's sunlight; null when unknown
distanceLightYearsnumber634.84Distance from the Sun in light years
starobject{...}Host star properties
namestring"Kepler-22"Host star name
spectralTypePremiumstring"G5 V"Spectral type, e.g. G5 V
temperatureKPremiumnumber5596Effective temperature in kelvin
radiusSunPremiumnumber0.869Radius in solar radii
massSunPremiumnumber0.857Mass in solar masses
metallicityPremiumnumber-0.255Metallicity [Fe/H] in dex
luminosityLogSunPremiumnumber-0.1902Luminosity as log10 of solar luminosity
ageGyrPremiumnumber7Age in billions of years
surfaceGravityLogPremiumnumber4.443Surface gravity, log10(cm/s²)
systemobject{...}System counts
starCountnumber1Stars in the system
planetCountnumber1Confirmed planets in the system
moonCountnumber0Confirmed exomoons in the system
circumbinarybooleanfalseTrue when the planet orbits two stars
dataAsOfstring"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.

StatusMeaningWhat to do
400Input was rejectedRead error; it names the parameter.
401Key missing or invalidCheck the header name and the key value.
403Key valid, but not permittedA key restriction or IP allow-list; see key scoping.
429Rate limited, or out of creditsRead 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.

Give it to an AI agentConnect over MCP and your agent calls it as a native tool — Claude, Cursor, ChatGPT.VerveKit →Reference →
Google Sheets or ExcelA =VERVE() formula fills a column — no script, no export, recalculates in place.VerveSheets →Reference →
Ground an agent on itA cited, machine-checkable fact your model can't produce on its own.VerveContext →Reference →

More in Science:

Was this page helpful?