How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

OpenSea Swap Endpoints API

Swap endpoints for getting token swap quotes with executable transaction data

OpenSea Swap Endpoints API is one of 17 APIs that OpenSea publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Swap Endpoints. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

This API exposes 2 operations across 2 paths, and defines 9 schemas. It is described by OpenAPI 3.1.0, at version 2.0.0.

Requests are made against a single base URL, https://api.opensea.io.

2 operations 2 paths 9 schemas 1 GET1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
2.0.0
Base URL
https://api.opensea.io/api/v2
Authentication
API Key
Contact
Resource Areas
1

Authentication & Security 1

OpenSea Swap Endpoints API declares 1 security scheme for authenticating requests. An API key is passed in the header as x-api-key (ApiKeyAuth). By default, every request must be authenticated.

  • ApiKeyAuth — API key required for authentication

Paths & Operations 2

Across 2 paths, the API surfaces 2 operations — 1 GET, 1 POST. Each is listed below with its method, path, parameters, and response codes.

Swap Endpoints 2

Swap endpoints for getting token swap quotes with executable transaction data

POST
/api/v2/swap/execute
Execute a token swap
post_swap_execute body → 200400500
GET
/api/v2/swap/quote
Get swap quote
get_swap_quote 8 params → 200400500

Schemas 9

The contract defines 9 schemas that model the data the API accepts and returns. The most detailed are SwapQuoteDetails (10 properties), SwapExecuteRequest (5 properties), SwapTransactionResponse (4 properties), SwapAssetInput (3 properties). Each schema is shown below with its type and property counts.

SwapExecuteResponse
object
Response containing quote details and executable swap transactions
2 properties 2 required
SwapAssetInput
object
An asset to swap with chain, contract address, and amount
3 properties 3 required
SwapRouteErrorResponse
object
An error encountered for a specific swap route
1 property 1 required
SwapQuoteResponse
object
Swap quote with price details and executable transactions
2 properties 2 required
SwapCostResponse
object
A cost component of the swap
2 properties 2 required
SwapExecuteRequest
object
Request body for executing a token swap
5 properties 3 required
SwapQuoteDetails
object
Price and fee details for a swap quote
10 properties 7 required
SwapPriceImpact
object
Price impact of the swap
2 properties 2 required
SwapTransactionResponse
object
A transaction to be submitted onchain to execute a swap
4 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

opensea-swap-endpoints-api-openapi.yml Raw ↑

Other APIs OpenSea publishes across the network.

OpenSea Stream API
OpenSea Account Endpoints API
OpenSea Analytics Endpoints API
OpenSea Auth Endpoints API
OpenSea Chain Endpoints API
OpenSea Collection Endpoints API
OpenSea Contract Endpoints API
OpenSea Drops Endpoints API
OpenSea Listing Endpoints API
OpenSea NFT Endpoints API
OpenSea Offer Endpoints API
OpenSea Order Endpoints API
Where this information came from

This is an independent, third-party profile of OpenSea Swap Endpoints API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.