# Subgraph Introduction

Silo has a GraphQL API Endpoint hosted by [The Graph](https://thegraph.com/docs/about/introduction#what-the-graph-is) called a subgraph for indexing and organizing data from the SILO smart contracts.

Subgraph information is serviced by a decentralized group of server operators called Indexers.

{% hint style="info" %}
*Silo maintains **two versions** of it's subgraph, a **v2*** ***version** and a **v3 version.** The v2 version is recommended for most users, it is faster and works more reliably. The v3 version does contain more feature rich data, but since it uses large iterations, your code needs to be prepared to deal with errors. \*\***There are major schema differences from V2 to V3.***
{% endhint %}

![](https://static.wixstatic.com/media/fd5034_828547682b1b4ddfbe555444366669ea~mv2.png/v1/fill/w_1200,h_600,al_c/fd5034_828547682b1b4ddfbe555444366669ea~mv2.png)

## SILO Finance Ethereum Mainnet

* **Explorer Page:** [View on The Graph](https://thegraph.com/explorer/subgraphs/81ER342viJd3oRvPf28M7GwsnToa1RVWDNLnTr1eBciC?view=Overview\&chain=arbitrum-one)
* **Graphql Endpoint:** `https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/81ER342viJd3oRvPf28M7GwsnToa1RVWDNLnTr1eBciC`

## SILO Finance Llama Edition

* **Explorer Page:** [View on The Graph](https://thegraph.com/explorer/subgraphs/5cNT22xQJVEWBBigBMBicv4UZAnGxH2CeHpenTJ8Q8kA?view=Overview\&chain=arbitrum-one)
* **Graphql Endpoint:** `https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/5cNT22xQJVEWBBigBMBicv4UZAnGxH2CeHpenTJ8Q8kA`

## SILO Finance Arbitrum

* **Explorer Page:** [View on The Graph](https://thegraph.com/explorer/subgraphs/2ufoztRpybsgogPVW6j9NTn1JmBWFYPKbP7pAabizADU?view=Overview\&chain=arbitrum-one)
* **Graphql Endpoint:** `https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/2ufoztRpybsgogPVW6j9NTn1JmBWFYPKbP7pAabizADU`

## Helpful Resources

* [Video Tutorial on creating an API Key](https://www.youtube.com/watch?v=UrfIpm-Vlgs)
* [Managing your API Key & setting your indexer preferences](https://thegraph.com/docs/en/studio/managing-api-keys/)
* [Querying from an application](https://thegraph.com/docs/en/developer/querying-from-your-app/)
* [How to use the explorer and playground to query on-chain data](https://medium.com/@chidubem_/how-to-query-on-chain-data-with-the-graph-f8507488215)
* [Deploy your own subgraph](https://thegraph.com/docs/en/developing/creating-a-subgraph/)
* [New to GraphQL? - Read Here](https://graphql.org/learn/)


---

# 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://devdocs.silo.finance/silo-subgraphs/subgraph-introduction.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.
