Gateways
Get list public & premium gateways
The IPFS API provides a list of public and premium gateways that you can use to access content on the IPFS network. Here is how you can retrieve the list of gateways using the provided API endpoint:
GEThttps://api.w3ipfs.storage/api/gateways/
Query
offset (default 0)
limit (default 10)
type Filter by type (options: Public, Premium, all) (default all)
Headers
pinning_api_key* PINNING-API-KEY
pinning_secret_key* PINNING-SECRET-KEY
Response
200: OK
curl --location --request GET 'https://api.w3ipfs.storage/api/gateways/?offset=0&limit=10&type=all' \
--header 'pinning_api_key: KEY' \
--header 'pinning_secret_key: SECRET'
Please replace YOUR_API_KEY
and YOUR_SECRET_KEY
with your actual pinning API key and secret key.