# IPFS Gateway API

## Overview

The Leto IPFS Gateway is a comprehensive, lightweight, and fast API that respects your privacy. It enables access to IPFS content and offers a metric-based approach to analyze anonymous usage patterns.&#x20;

The image below illustrates the structure of the Proxy Gateway Architecture:

<figure><img src="/files/gmgOAtSKBQy8tKKmHJST" alt="" width="433"><figcaption></figcaption></figure>

## Leto Gateway address

{% hint style="info" %}
To switch from your current IPFS Gateway to Leto, all you need to do is change the gateway address used in your system to the Leto Gateway, available at **https\://`leto.gg/ipfs/"cid"`**`.`
{% endhint %}

## Core Features

Here are the principal features offered by our IPFS Gateway:

* **Anonymity**: Our Gateway ensures you can access IPFS content without revealing your identity.
* **Privacy**: No logging of IP addresses or personal information.
* **Performance**: The Gateway is lightweight, fast, and easy to initialize.
* **Metrics**: We perform analyses based on the frequency and timing of CID requests.

## Accessing IPFS via HTTP

Accessing IPFS data via HTTP is straightforward, particularly when utilizing an IPFS HTTP gateway. As a decentralized peer-to-peer network, IPFS simplifies data retrieval. We'll be using the Leto gateway in this guide, offering anonymous metrics alongside data provision.

Upon storing data using the [web3.storage client](https://web3.storage/docs/how-tos/store/), the `put` method returns an [IPFS content identifier (CID)](https://docs.ipfs.io/concepts/content-addressing/) string. This CID corresponds to an IPFS directory containing files sent via the `put` method.

Here's how to leverage these CIDs:

* Point your application or program to the data in the Web3.Storage infrastructure using the respective CID.

## Leto IPFS gateway compatibility

The Leto Gateway communicates with a range of services, ensuring content is served as swiftly as possible, regardless of the provider. Gateways we currently support:

* web3.storage&#x20;
* ipfs.io&#x20;
* dweb&#x20;
* Cloudflare

{% hint style="info" %}
**Note:** The w3link (<https://ipfs.w3s.link/\\>\*) imposes a rate limit of 200 requests per minute per IP.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://letodev.gitbook.io/getting-started/documentation/quick-start/ipfs-gateway-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
