Lunar Banner

Lunar API

Welcome to the Lunar API! Use the following REST calls below to query data on the lunar database.
Any questions can be directed to ARES Developers: jsc-ares-developers@mail.nasa.gov
Base URL syntax: https://www-curator.jsc.nasa.gov/rest/lunarapi/samples

Multiple Samples

Return multiple samples using the following functions

Samples By Mission

Syntax: /samplesbymission/{mission}
Description: Lists all samples by a given mission
Argument: {mission}
Type: String
Example: https://www-curator.jsc.nasa.gov/rest/lunarapi/samples/samplesbymission/Apollo 16

Samples By Classification - Sample Type

Syntax: /samplesbyclassification/{sampleType}
Description: Lists all samples classified by a given classification (sample type). Use the listSampleClassification call to view all valid classifications
Argument: {sampleType}
Type: String
Example: https://www-curator.jsc.nasa.gov/rest/lunarapi/samples/samplesbyclassification/Basalt

Samples By Classification - Sample Type/Subtype

Syntax: /samplesbysubtype/{sampleType}?subtype={sampleSubtype}
Description: Lists all samples classified by a given classification (sample type) and subtype. Use the listSampleClassification call to view all valid classifications and subtypes
Argument 1: {sampleType}
Type: String
Argument 2: {sampleSubtype}
Type: String
Example: https://www-curator.jsc.nasa.gov/rest/lunarapi/samples/samplesbysubtype/Basalt?subtype=Olivine

Samples By Station

Syntax: /samplesbystation/{mission}/{station}
Description: Lists all samples for a given station and mission. Use the liststationsbymission call to view all valid stations.
Argument 1: {mission}
Type: String
Argument 2: {station}
Type: String
Example: https://www-curator.jsc.nasa.gov/rest/lunarapi/samples/samplesbystation/Apollo 16/11

Samples By Landmark

Syntax: /samplesbylandmark/{mission}/{landmark}
Description: Lists all samples for a given landmark and mission. Use the listlandmarksbymission call to view all valid landmarks.
Argument 1: {mission}
Type: String
Argument 2: {landmark}
Type: String
Example: https://www-curator.jsc.nasa.gov/rest/lunarapi/samples/samplesbylandmark/Apollo 17/VICTORY CRATER



Individual Sample Data

Return detailed information about a single sample

Sample Details

Syntax: /sampledetails/{genericID}
Description: Return details for a given sample
Argument: {genericID}
Type: Integer
Example: https://www-curator.jsc.nasa.gov/rest/lunarapi/samples/sampledetails/63586

Sample Thin Sections

Syntax: /samplethinsections/{genericID}
Description: Return think sectiosn for a given sample
Argument: {genericID}
Type: Integer
Example: https://www-curator.jsc.nasa.gov/rest/lunarapi/samples/samplethinsections/64476

Sample Displays

Syntax: /sampledisplays/{genericID}
Description: Return displays for a given sample
Argument: {genericID}
Type: Integer
Example: https://www-curator.jsc.nasa.gov/rest/lunarapi/samples/sampledisplays/67915



List Functions

Return list of various properties

List Missions

Syntax: /listmissions
Description: Lists all distinct Missions
Argument: None
Example: https://www-curator.jsc.nasa.gov/rest/lunarapi/samples/listmissions

List Sample Classification

Syntax: /listsampleclassification
Description: Lists combinations of sample classifications. Classifications have a sample type and subtype designation. Each sample type may have 0 to many subtypes.
Argument: None
Example: https://www-curator.jsc.nasa.gov/rest/lunarapi/samples/listsampleclassification

List Station By Mission

Syntax: /liststationsbymission/{mission}
Description: Lists all stations for a given Mission.
Argument: {mission)
Type: String
Example: https://www-curator.jsc.nasa.gov/rest/lunarapi/samples/liststationsbymission/Apollo 16

List Landmarks By Mission

Syntax: /listlandmarksbymission/{mission}
Description: Lists all landmarks for a given Mission.
Argument: {mission)
Type: String
Example: https://www-curator.jsc.nasa.gov/rest/lunarapi/samples/listlandmarksbymission/Apollo 16