Okapi Okapi

/v5.0/* → version retirement

1inch public Swap API

Stopped working

On August 11, 2023, the 1inch public Swap API shut down its /v5.0/* endpoints. Calls sent to /v5.0/* after this date fail. The change retired the public service and requires requests to use the developer portal infrastructure instead.


Calls it hits

  • /v5.0/*

What to use instead of these calls

Direct calls to the Swap API on api.1inch.com, such as GET /swap/v6.1/{chain}/swap. Moving requires obtaining a bearer API key from 1inch Business under its plans rather than merely switching endpoints.

The Swap API now needs an API key from 1inch Business, under its plans.

In 1inch public Swap API's words

As the public Swap API is set to be shut down on August 11, 2023, at 11:30 AM (CET), it is essential that all current users subscribe to the 1inch Developer Portal to ensure seamless access to this tool.

1inch public Swap API, Announcement

Facts

API
1inch public Swap API api.1inch.io
Kind
Version retirement
Takes effect
August 11, 2023
Calls after that day
Fail
Source
Announcement
Last updated
Verified
, against 1inch public Swap API's own pages

Questions

When does this change take effect?

Calls to /v5.0/* on 1inch public Swap API stopped working on August 11, 2023.

What happens to calls after August 11, 2023?

They have failed since August 11, 2023.

How do I find the calls this hits in my code?

Okapi reads your repository, finds the calls this change hits and opens a pull request with the fix. It never commits to your branches: every change comes as a pull request you review.


More from 1inch public Swap API 1

  1. /v4.0/*Version retirement Stopped working

You fixed this one by hand.

Okapi opens the pull request with the fix before the next breaking change reaches your code.

Add to GitHub