> ## Documentation Index
> Fetch the complete documentation index at: https://docs.codex.io/llms.txt
> Use this file to discover all available pages before exploring further.

# getNetworks

> Returns a list of all networks supported on Codex.

<Note>
  For a browsable, always-up-to-date list of supported networks and their chain IDs, see the [Supported Networks](/networks) page.
</Note>

<div data-generated>
  ## GraphQL

  ```
  type Query {
    getNetworks: [Network!]!
  }

  type Network {
    name: String!
    id: Int!
    networkShortName: String
  }
  ```
</div>

### Example

<a href="/explore" target="_blank" rel="noopener noreferrer">Test this query in the Explorer →</a>

```graphql theme={null}
{
  getNetworks {
    name
    id
    networkShortName
  }
}
```

### Usage Guidelines

* Use the returned `id` as the `networkId` argument in other queries (e.g. Ethereum is `1`, Solana is `1399811149`)
* Network IDs are stable — cache the result rather than fetching it on every request
* To check indexing health for specific networks, use [`getNetworkStatus`](/api-reference/queries/getnetworkstatus)
