Okapi Okapi

/v4.0/* → version retirement

1inch public Swap API

Stopped working

On August 11, 2023, the 1inch public Swap API shut down version 4.0 endpoints. Requests targeting /v4.0/* now fail. The provider retired the public service at that time, requiring developers to adjust where and how they send requests.


Calls it hits

  • /v4.0/*

What to use instead of these calls

Call the Swap API on api.1inch.com, such as GET /swap/v6.1/{chain}/swap, using a bearer API key from 1inch Business. Moving to the newer endpoints requires choosing a plan from 1inch Business to obtain an API key.

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 /v4.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. /v5.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