Amazon EC2 Spot Instances API

Operations for requesting and managing Spot Instances

Operations 2

GET /?Action=RequestSpotInstances Amazon EC2 Request Spot Instances #
GET /?Action=DescribeSpotInstanceRequests Amazon EC2 Describe Spot Instance Requests #

Documentation

Specifications

Schemas & Data

Other Resources

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/amazon-ec2-spot-instances-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 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. See our Privacy Policy and Terms.

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

OpenAPI Specification

amazon-ec2-spot-instances-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Amazon EC2 AMIs Spot Instances API
  description: Amazon Elastic Compute Cloud (EC2) provides resizable compute capacity in the cloud. This API enables you to launch and manage virtual server instances, configure networking and security, and manage storage volumes with complete control over your computing resources.
  version: '2016-11-15'
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  termsOfService: https://aws.amazon.com/service-terms/
servers:
- url: https://ec2.{region}.amazonaws.com
  description: Amazon EC2 Regional Endpoint
  variables:
    region:
      default: us-east-1
      description: AWS Region
security:
- sigv4Auth: []
tags:
- name: Spot Instances
  description: Operations for requesting and managing Spot Instances
paths:
  /?Action=RequestSpotInstances:
    get:
      operationId: requestSpotInstances
      summary: Amazon EC2 Request Spot Instances
      description: Creates a Spot Instance request. For more information about Spot Instances, see Spot Instances in the Amazon EC2 User Guide.
      tags:
      - Spot Instances
      parameters:
      - name: SpotPrice
        in: query
        description: The maximum price per unit hour for a Spot Instance
        schema:
          type: string
        example: example-string
      - name: InstanceCount
        in: query
        description: The maximum number of Spot Instances to launch
        schema:
          type: integer
        example: 1
      - name: Type
        in: query
        description: The Spot Instance request type
        schema:
          type: string
          enum:
          - one-time
          - persistent
        example: one-time
      responses:
        '200':
          description: Successfully created Spot Instance request
        '400':
          description: Invalid request parameters
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /?Action=DescribeSpotInstanceRequests:
    get:
      operationId: describeSpotInstanceRequests
      summary: Amazon EC2 Describe Spot Instance Requests
      description: Describes the specified Spot Instance requests. You can use DescribeSpotInstanceRequests to find a running Spot Instance by querying for the Spot Instance request ID.
      tags:
      - Spot Instances
      parameters:
      - name: SpotInstanceRequestId
        in: query
        description: The IDs of the Spot Instance requests
        schema:
          type: array
          items:
            type: string
        example:
        - i-0abc123def456789
      responses:
        '200':
          description: Successfully described Spot Instance requests
        '400':
          description: Invalid request parameters
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
components:
  securitySchemes:
    sigv4Auth:
      type: apiKey
      name: Authorization
      in: header
      description: AWS Signature Version 4 authentication
externalDocs:
  description: Amazon EC2 API Reference
  url: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/