ScholarMuse Earth API

The earth API from ScholarMuse — 5 operation(s) for earth.

GitHub OpenAPI

Operations 5

POST /api/v1/get_weather_history Get weather history for a location #
POST /api/v1/search_earthquakes Search earthquakes #
POST /api/v1/get_water_data Get USGS water data #
POST /api/v1/search_species_occurrence Search species occurrence records #
POST /api/v1/get_air_quality Get air quality measurements #

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/scholarmuse-ai:scholarmuse-ai-earth-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

scholarmuse-ai-earth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ScholarMuse REST Earth API
  version: '1'
  description: 'Run ScholarMuse academic tools over HTTPS with an API key. Each key may send 60 requests per 60 seconds. Guide: https://scholarmuse.ai/docs/rest-api'
servers:
- url: https://scholarmuse.ai
security:
- bearerAuth: []
tags:
- name: earth
paths:
  /api/v1/get_weather_history:
    post:
      operationId: get_weather_history
      summary: Get weather history for a location
      description: 'Daily or monthly historical weather for any point on Earth from 1981 onward (NASA POWER, satellite and reanalysis based, about 50 km grid): temperature, precipitation, humidity, wind speed and solar radiation. Use it for climate context of a field site or study period; it is gridded model data, not a weather-station record.


        Discipline pack: earth. Cost: 1 credit per successful call.'
      tags:
      - earth
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                latitude:
                  type: number
                  minimum: -90
                  maximum: 90
                  description: Latitude in decimal degrees (north positive).
                longitude:
                  type: number
                  minimum: -180
                  maximum: 180
                  description: Longitude in decimal degrees (east positive).
                start:
                  type: string
                  pattern: ^\d{4}-\d{2}-\d{2}$
                  description: First day, YYYY-MM-DD, not before 1981-01-01.
                end:
                  type: string
                  pattern: ^\d{4}-\d{2}-\d{2}$
                  description: Last day, YYYY-MM-DD.
                variables:
                  description: 'Variables to return. Default: temperature_max, temperature_min, temperature_mean, precipitation.'
                  minItems: 1
                  type: array
                  items:
                    type: string
                    enum:
                    - temperature_max
                    - temperature_min
                    - temperature_mean
                    - precipitation
                    - relative_humidity
                    - wind_speed
                    - solar_radiation
                aggregate:
                  description: daily (default, at most 2,000 days per call) or monthly means for long periods.
                  type: string
                  enum:
                  - daily
                  - monthly
              required:
              - latitude
              - longitude
              - start
              - end
              additionalProperties: false
      responses:
        '200':
          description: The tool result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ToolResult'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '402':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/Error'
        '502':
          $ref: '#/components/responses/Error'
  /api/v1/search_earthquakes:
    post:
      operationId: search_earthquakes
      summary: Search earthquakes
      description: 'Search the USGS global earthquake catalogue by area, magnitude and date. Returns magnitude, time (UTC), place, coordinates, depth and the USGS event page for each event.


        Discipline pack: earth. Cost: 2 credits per successful call.'
      tags:
      - earth
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                latitude:
                  description: Centre latitude; use together with longitude.
                  type: number
                  minimum: -90
                  maximum: 90
                longitude:
                  description: Centre longitude; use together with latitude.
                  type: number
                  minimum: -180
                  maximum: 180
                radius_km:
                  description: Search radius around the centre (default 100 km).
                  type: number
                  exclusiveMinimum: 0
                  maximum: 20000
                min_magnitude:
                  description: Smallest magnitude to include.
                  type: number
                  minimum: -1
                  maximum: 10
                start:
                  description: 'Earliest date, YYYY-MM-DD (UTC). Default: 30 days ago.'
                  type: string
                  pattern: ^\d{4}-\d{2}-\d{2}$
                end:
                  description: 'Latest date, YYYY-MM-DD (UTC). Default: now.'
                  type: string
                  pattern: ^\d{4}-\d{2}-\d{2}$
                limit:
                  description: Events to return (default 20).
                  type: integer
                  minimum: 1
                  maximum: 200
                order:
                  description: Newest first (time, default) or largest first.
                  type: string
                  enum:
                  - time
                  - magnitude
              additionalProperties: false
      responses:
        '200':
          description: The tool result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ToolResult'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '402':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/Error'
        '502':
          $ref: '#/components/responses/Error'
  /api/v1/get_water_data:
    post:
      operationId: get_water_data
      summary: Get USGS water data
      description: 'Daily mean streamflow, gage height or water temperature from a USGS monitoring site in the United States, or a list of sites in a state or bounding box when no site number is given. Use the site list first if you do not know the site number.


        Discipline pack: earth. Cost: 1 credit per successful call.'
      tags:
      - earth
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                site:
                  description: USGS site number, e.g. 01646500 (Potomac River near Washington, DC).
                  type: string
                  pattern: ^(USGS-)?\d{8,15}$
                state:
                  description: 'US state to list sites in: two-letter code (MD) or full name.'
                  type: string
                  minLength: 2
                  maxLength: 30
                bbox:
                  description: 'Bounding box to list sites in: [west, south, east, north] in decimal degrees.'
                  minItems: 4
                  maxItems: 4
                  type: array
                  items:
                    type: number
                parameter:
                  description: What to measure (default streamflow).
                  type: string
                  enum:
                  - streamflow
                  - gage_height
                  - water_temperature
                start:
                  description: 'First day, YYYY-MM-DD. Default: 30 days before end.'
                  type: string
                  pattern: ^\d{4}-\d{2}-\d{2}$
                end:
                  description: 'Last day, YYYY-MM-DD. Default: today.'
                  type: string
                  pattern: ^\d{4}-\d{2}-\d{2}$
                limit:
                  description: Sites to list when no site is given (default 20).
                  type: integer
                  minimum: 1
                  maximum: 50
              additionalProperties: false
      responses:
        '200':
          description: The tool result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ToolResult'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '402':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/Error'
        '502':
          $ref: '#/components/responses/Error'
  /api/v1/search_species_occurrence:
    post:
      operationId: search_species_occurrence
      summary: Search species occurrence records
      description: 'Find where and when a species has been recorded, from GBIF. Resolves a scientific or common name to a taxon, then returns the total record count and georeferenced occurrence records (coordinates, date, country, dataset, licence). Only CC0 and CC BY records are returned.


        Discipline pack: earth. Cost: 2 credits per successful call.'
      tags:
      - earth
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                species:
                  type: string
                  minLength: 2
                  maxLength: 200
                  description: Scientific name (Danaus plexippus) or common name (monarch butterfly).
                country:
                  description: Two-letter ISO 3166 country code, e.g. MX.
                  type: string
                  pattern: ^[A-Za-z]{2}$
                year_from:
                  description: Earliest year of the record.
                  type: integer
                  minimum: 1600
                  maximum: 2100
                year_to:
                  description: Latest year of the record.
                  type: integer
                  minimum: 1600
                  maximum: 2100
                has_coordinates:
                  description: Only records with coordinates (default true).
                  type: boolean
                limit:
                  description: Records to return (default 50).
                  type: integer
                  minimum: 1
                  maximum: 300
              required:
              - species
              additionalProperties: false
      responses:
        '200':
          description: The tool result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ToolResult'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '402':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/Error'
        '502':
          $ref: '#/components/responses/Error'
  /api/v1/get_air_quality:
    post:
      operationId: get_air_quality
      summary: Get air quality measurements
      description: 'Measured air quality near a point from OpenAQ: the nearest monitoring stations within 25 km and their daily mean PM2.5, PM10, NO2, O3, SO2 and CO with units. Use it for ground-station pollution data for a place and period.


        Discipline pack: earth. Cost: 1 credit per successful call.'
      tags:
      - earth
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                latitude:
                  type: number
                  minimum: -90
                  maximum: 90
                  description: Latitude in decimal degrees.
                longitude:
                  type: number
                  minimum: -180
                  maximum: 180
                  description: Longitude in decimal degrees.
                radius_km:
                  description: Search radius in km (default and maximum 25).
                  type: number
                  exclusiveMinimum: 0
                  maximum: 25
                pollutants:
                  description: 'Pollutants to return. Default: all of pm25, pm10, no2, o3, so2, co.'
                  minItems: 1
                  type: array
                  items:
                    type: string
                    enum:
                    - pm25
                    - pm10
                    - no2
                    - o3
                    - so2
                    - co
                start:
                  description: 'First day, YYYY-MM-DD. Default: 7 days before end.'
                  type: string
                  pattern: ^\d{4}-\d{2}-\d{2}$
                end:
                  description: 'Last day, YYYY-MM-DD. Default: today.'
                  type: string
                  pattern: ^\d{4}-\d{2}-\d{2}$
              required:
              - latitude
              - longitude
              additionalProperties: false
      responses:
        '200':
          description: The tool result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ToolResult'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '402':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/Error'
        '502':
          $ref: '#/components/responses/Error'
components:
  schemas:
    CreditStatus:
      type: object
      required:
      - creditsRemaining
      - status
      - lowBalanceThreshold
      - topUpUrl
      - pricingUrl
      - checkedAt
      properties:
        creditsRemaining:
          type:
          - integer
          - 'null'
          minimum: 0
          description: Spendable, unexpired balance at checkedAt; null if refresh failed. Credits reserved by pending figures are excluded.
        status:
          type: string
          enum:
          - ok
          - low
          - empty
          - unavailable
        lowBalanceThreshold:
          type: integer
          example: 20
        topUpUrl:
          type: string
          format: uri
        pricingUrl:
          type: string
          format: uri
        checkedAt:
          type: string
          format: date-time
        notice:
          type: string
    ToolResult:
      type: object
      required:
      - summary
      - credits_used
      - call_id
      properties:
        summary:
          type: string
        billing:
          $ref: '#/components/schemas/CreditStatus'
        records:
          type: array
          items:
            $ref: '#/components/schemas/Record'
        partial:
          type: boolean
        failedSources:
          type: array
          items:
            type: object
            properties:
              source:
                type: string
              error:
                type: string
        files:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
              url:
                type: string
              mimeType:
                type: string
        extra:
          type: object
        credits_used:
          type: number
        call_id:
          type: string
    Record:
      type: object
      required:
      - id
      - type
      - source
      - retrievedAt
      - data
      properties:
        id:
          type: string
        type:
          type: string
        source:
          type: string
        title:
          type: string
        url:
          type: string
        license:
          type: string
        attribution:
          type: string
        retrievedAt:
          type: string
          format: date-time
        data:
          type: object
  responses:
    Error:
      description: The call failed and was not charged.
      content:
        application/json:
          schema:
            type: object
            required:
            - error
            properties:
              error:
                type: object
                required:
                - code
                - message
                properties:
                  code:
                    type: string
                    enum:
                    - invalid_input
                    - unauthorized
                    - insufficient_credits
                    - paid_plan_required
                    - unknown_tool
                    - rate_limited
                    - upstream_error
                    - internal
                  message:
                    type: string
                  billing:
                    $ref: '#/components/schemas/CreditStatus'
                  requiredCredits:
                    type: integer
                    minimum: 0
                  shortfall:
                    type: integer
                    minimum: 0
                  retryable:
                    type: boolean
                    description: 'Payment errors are false: wait for the user to pay before attempting another paid call.'
                  nextAction:
                    type: string
                    enum:
                    - top_up
                    - choose_plan_or_pack
                    - try_later
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An API key created under Settings → API Keys.