For general access to the Wolfram Knowledgebase, use entities of type Star instead of StarData.


gives the value of the specified property for the star entity.


gives a list of property values for the specified star entities.


gives the specified annotation associated with the property.


  • StarData[] gives a list of all star entities.
  • StarData["Properties"] gives a list of available properties.
  • The specified entity in StarData can be an Entity, EntityClass, entity canonical name, or list thereof.
  • The specified property can be an EntityProperty, EntityPropertyClass, property canonical name, or list of properties.
  • Properties that do not apply or are not known in a particular case are indicated by Missing[].
  • Properties include:
  • "AbsoluteMagnitude"absolute magnitude
    "AlphanumericName"alphanumeric name
    "AlternateNames"alternate names
    "AltitudeTransit"next transit altitude
    "Apoapsis"largest distance from orbit center
    "ApparentAltitude"apparent altitude
    "ApparentMagnitude"apparent magnitude
    "AzimuthRise"azimuth at rise
    "AzimuthSet"azimuth at set
    "BayerName"Bayer name
    "BayerStandardName"Bayer standard name
    "BooleanRise"above the horizon
    "BVColorIndex"B-V color index
    "DailyTimeAboveHorizon"daily time above horizon
    "Density"mean density
    "Diameter"average diameter
    "DistanceFromEarth"distance from Earth
    "DistanceFromSun"distance from Sun
    "DurchmusterungName"Durchmusterung name
    "DurchmusterungStandardName"Durchmusterung standard name
    "Eccentricity"orbital eccentricity
    "EffectiveTemperature"effective temperature
    "EquatorialDiameter"equatorial diameter
    "EquatorialRadius"equatorial radius
    "EscapeVelocity"escape velocity
    "FlamsteedName"Flamsteed name
    "FlamsteedStandardName"Flamsteed standard name
    "GalacticLatitude"galactic latitude
    "GalacticLongitude"galactic longitude
    "GlieseName"Gliese catalog designation
    "GlieseStandardName"Gliese catalog standard name designation
    "Glyph"astrological symbol
    "GravitationalConstantMassProduct"gravitational constant mass product
    "GreenwichHourAngle"Greenwich hour angle
    "HDName"HD catalog name
    "HDNumber"HD catalog number
    "HelioCoordinates"heliocentric XYZ coordinates
    "HipparcosName"Hipparcos name
    "HipparcosNumber"Hipparcos number
    "HRName"HR catalog name
    "HRNumber"HR catalog number
    "ICNumber"IC number
    "LifetimeEntropy"entropy at the end of main sequence lifetime
    "LocalHourAngle"local hour angle
    "MainSequenceLifetime"main sequence lifetime
    "MajorAxis"major axis
    "MaximalAltitudeTime"next maximum altitude time
    "MaximumAbsoluteMagnitude"maximum absolute magnitude
    "MaximumApparentMagnitude"maximum apparent magnitude
    "MinimumAbsoluteMagnitude"minimum absolute magnitude
    "MinimumApparentMagnitude"minimum apparent magnitude
    "MomentOfInertia"rotational moment of inertia
    "MultipleSystemMember"member of a multiple star system
    "NGCNumber"NGC number
    "OrbitCenter"orbit center
    "OrbitPeriod"orbital period
    "Periapsis"nearest distance from orbit center
    "PolarDiameter"polar diameter
    "PolarRadius"polar radius
    "PositionAngle"position angle
    "ProperMotion"proper motion
    "ProperMotionDeclination"proper motion declination
    "ProperMotionRightAscension"proper motion right ascension
    "RadialVelocity"radial velocity
    "Radius"average radius
    "RightAscension"right ascension
    "RiseTime"next rise
    "RotationPeriod"rotation period
    "SAOName"SAO catalog name
    "SAONumber"SAO catalog number
    "Satellites"known satellites
    "SemimajorAxis"semimajor axis
    "SetTime"next set
    "SiderealHourAngle"sidereal hour angle
    "SpectralClass"spectral class
    "SpectralClassList"spectral class list
    "StarDistanceTimeSeries"distance from Earth time series
    "StarEndState"stellar end state
    "StarType"star type
    "StationaryOrbitRadius"stationary orbit radius
    "StationaryOrbitSpeed"stationary orbit speed
    "SunElongation"elongation from the Sun
    "SurfaceArea"surface area
    "SystemMembers"system members
    "TransitTime"next transit time
    "TychoNumber"Tycho number
    "VariablePeriod"variability period
    "VariableStarName"variable star name
    "VariableStarType"variable star type
    "WDSIdentifier"WDS identifier
  • Some properties are available for StarData as a whole and can be given using the form StarData[property]. Such properties include:
  • "Entities"all available entities
    "EntityCount"total number of available entities
    "Classes"all available entity classes
    "EntityClassCount"total number of available entity classes
    "SampleEntities"list of sample entities
    "SampleEntityClasses"list of sample entity classes
    "EntityCanonicalNames"list of all entity canonical names
    "PropertyCanonicalNames"list of all property canonical names
    "EntityClassCanonicalNames"list of all entity class canonical names
    "RandomEntities"pseudorandom sample entities
    {"RandomEntities",n}n pseudorandom entities
    "RandomEntityClasses"pseudorandom sample entity classes
    {"RandomEntityClasses",n}n pseudorandom entity classes
  • The following annotations can be used in the third argument of StarData[entity,property,annotation]:
  • "Qualifiers"the list of possible qualifiers for the property
    "QualifierValues"the list of possible values that can be given to each qualifier
    "DefaultQualifierValues"the list of default values for the property's qualifiers
    "Description"a brief textual description of the property
    "Definition"a detailed textual definition of the property
    "Source"source information for the property
    "Date"the date associated with the entity-property value (if any)
    "PhysicalQuantity"the physical quantity associated with the entity-property value
    "Unit"the unit associated with the entity-property value
    "EntityAssociation"an association of entities and entity-property values
    "PropertyAssociation"an association of properties and entity-property values
  • If a function is provided as an annotation, it will be used to aggregate the result data. Typical aggregation functions include:
  • Minthe minimum value
    Maxthe maximum value
    Meanthe mean value
    Commonestthe most frequently occurring value
    Medianthe median value
    Totalreturns the total
    Lengththe number of elements


open all close all

Basic Examples  (7)

Use for discovery:

Click for copyable input

Find the effective temperature of a star:

Click for copyable input

Find the equatorial coordinates of a star:

Click for copyable input

Find the current sky position of a star from your location:

Click for copyable input

Get a list of classes of stars:

Click for copyable input

Find the spectral classes of barium stars:

Click for copyable input

The 10 nearest stars:

Click for copyable input


Click for copyable input

Spectral class information:

Click for copyable input

Scope  (13)

Applications  (10)

Neat Examples  (1)

Introduced in 2014