Macrostrat Units API

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

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/macrostrat-units-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.

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