Macrostrat Units API

The Units API from Macrostrat — 1 operation(s) for units.

OpenAPI Specification

macrostrat-units-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: Macrostrat Age Model Units API
  description: Macrostrat is a platform for the aggregation and distribution of geological data relevant to the spatial and temporal distribution of sedimentary, igneous, and metamorphic rocks as well as data extracted from them. The API provides programmatic access to columns, units, fossils, geologic maps, paleogeography, measurements, and statistics.
  version: '2.0'
  license:
    name: CC-BY 4.0
    url: https://creativecommons.org/licenses/by/4.0/
  contact:
    name: Macrostrat
    url: https://macrostrat.org
servers:
- url: https://macrostrat.org/api/v2
  description: Macrostrat API v2 production endpoint
tags:
- name: Units
paths:
  /units:
    get:
      summary: Search units
      description: Returns all Macrostrat units that match the provided search criteria.
      operationId: getUnits
      tags:
      - Units
      parameters:
      - name: format
        in: query
        schema:
          type: string
          enum:
          - json
          - csv
          - geojson
          - topojson
      - name: interval_name
        in: query
        schema:
          type: string
      - name: lith
        in: query
        schema:
          type: string
      responses:
        '200':
          description: Successful response