{
  "success": {
    "v": 2,
    "license": "CC-BY 4.0",
    "description": "Returns strat names",
    "options": {
      "parameters": {
        "strat_name_id": "unique id",
        "strat_name": "lithostratigraphic name, exact match",
        "strat_name_like": "lithostratigraphic name, with open-ended string matching",
        "concept_id": "uniqe id for stratigraphic concepts",
        "rank": "lithostratigraphic rank",
        "rule": "Can be 'all' or 'down'. Down will return any children of the requested stratigraphic name, and all will return the entire stratigraphic name hierarchy that the request name belongs to",
        "interval_name": "chronostratigrpahic interval name (see /defs/intervals); this will return only strat_names with a declared age in Macrostrat",
        "ref_id": "retrieve only stratigraphic names linked the specified reference_id (see /defs/refs)",
        "all": "return all lithostratigraphic names",
        "format": "Desired output format",
        "last_id": "integer, used to paginate results. If specified, will return strat_names with an ID greater than last_id",
        "page_size": "integer, used to paginate results. If specified, will return at most page_size results. Must be paired with last_idd"
      },
      "output_formats": [
        "json",
        "csv"
      ],
      "examples": [
        "api/v2/defs/strat_names?all",
        "api/v2/defs/strat_names?rank=Fm"
      ],
      "fields": {
        "strat_name": "text, informal unit name",
        "rank": "text, the stratigraphic rank of the unit",
        "strat_name_id": "integer, unique identifier for known stratigraphic name(s) (see /defs/strat_names)",
        "concept_id": "intger, unique identifier for the stratigraphic name concept, which groups variant strat_names for same entity",
        "bed": "string, the strat_name of the bed",
        "bed_id": "integer, the strat_name_id of the bed",
        "mbr": "string, the strat_name of the member",
        "mbr_id": "integer, the strat_name_id of the member",
        "fm": "string, the strat_name of the formation",
        "fm_id": "integer, the strat_name_id of the formation",
        "gp": "string, the strat_name of the group",
        "gp_id": "integer, the strat_name_id of the group",
        "sgp": "string, the strat_name of the supergroup",
        "sgp_id": "integer, the strat_name_id of the supergroup",
        "b_age": "number, continuous time age model estimated for initiation, in Myr before present",
        "t_age": "number, continuous time age model estimated for truncation, in Myr before present",
        "ref_id": "integer, unique reference identifer"
      }
    }
  }
}