ScholarMuse Astro API

The astro API from ScholarMuse — 3 operation(s) for astro.

GitHub OpenAPI

Operations 3

POST /api/v1/lookup_astro_object Look up an astronomical object #
POST /api/v1/search_exoplanets Search confirmed exoplanets #
POST /api/v1/query_gaia Cone search in Gaia DR3 #

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-astro-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-astro-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ScholarMuse REST Astro 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: astro
paths:
  /api/v1/lookup_astro_object:
    post:
      operationId: lookup_astro_object
      summary: Look up an astronomical object
      description: 'Resolve the name of a star, galaxy, nebula or other object outside the Solar System in SIMBAD. Returns the main identifier, object type, ICRS coordinates in degrees, parallax, proper motion, radial velocity, spectral type, V magnitude and other identifiers.


        Discipline pack: astro. Cost: 1 credit per successful call.'
      tags:
      - astro
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 100
                  description: Object name or catalogue identifier, e.g. M31, Betelgeuse, HD 209458, TRAPPIST-1.
              required:
              - name
              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_exoplanets:
    post:
      operationId: search_exoplanets
      summary: Search confirmed exoplanets
      description: 'Search confirmed exoplanets in the NASA Exoplanet Archive (composite parameters, one row per planet) by host star, name, discovery method, distance, radius or discovery year. Returns period, radius, mass, equilibrium temperature, insolation, distance and the discovery reference. The habitable-zone filter is approximate.


        Discipline pack: astro. Cost: 2 credits per successful call.'
      tags:
      - astro
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                host_star:
                  description: Exact host star name, e.g. TRAPPIST-1 or Kepler-186.
                  type: string
                  minLength: 1
                  maxLength: 80
                planet_name:
                  description: Planet name or part of it, e.g. "Proxima Cen b".
                  type: string
                  minLength: 1
                  maxLength: 80
                discovery_method:
                  description: Discovery method, e.g. Transit, Radial Velocity, Imaging, Microlensing, Transit Timing Variations, Astrometry.
                  type: string
                  minLength: 3
                  maxLength: 40
                max_distance_pc:
                  description: Maximum distance from the Sun in parsecs.
                  type: number
                  exclusiveMinimum: 0
                  maximum: 100000
                min_radius_earth:
                  description: Minimum planet radius in Earth radii.
                  type: number
                  minimum: 0
                  maximum: 1000
                max_radius_earth:
                  description: Maximum planet radius in Earth radii.
                  type: number
                  exclusiveMinimum: 0
                  maximum: 1000
                in_habitable_zone:
                  description: 'Approximate habitable zone only: insolation between 0.25 and 1.7 times what Earth receives.'
                  type: boolean
                discovered_after:
                  description: Only planets discovered after this year.
                  type: integer
                  minimum: 1980
                  maximum: 2100
                limit:
                  description: Planets to return (default 25).
                  type: integer
                  minimum: 1
                  maximum: 200
              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/query_gaia:
    post:
      operationId: query_gaia
      summary: Cone search in Gaia DR3
      description: 'List Gaia DR3 sources within a radius of a sky position (cone search), brightest first. Returns position, parallax, proper motion, G/BP/RP magnitudes, radial velocity and effective temperature for each source. Use lookup_astro_object first to get the coordinates of a named object.


        Discipline pack: astro. Cost: 2 credits per successful call.'
      tags:
      - astro
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                ra:
                  type: number
                  minimum: 0
                  maximum: 360
                  description: Right ascension of the centre in degrees (ICRS).
                dec:
                  type: number
                  minimum: -90
                  maximum: 90
                  description: Declination of the centre in degrees (ICRS).
                radius_deg:
                  type: number
                  exclusiveMinimum: 0
                  maximum: 1
                  description: Search radius in degrees (maximum 1.0).
                max_g_mag:
                  description: Only sources at least this bright in the G band.
                  type: number
                  minimum: -2
                  maximum: 25
                limit:
                  description: Sources to return (default 50).
                  type: integer
                  minimum: 1
                  maximum: 500
              required:
              - ra
              - dec
              - radius_deg
              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.