# List topics

Every subscribable topic; marks readability when a key is sent.

> Source: https://tokenearly.com/en/developers/rest/topics · Docs index: https://tokenearly.com/en/developers/llms.txt · OpenAPI: https://api.tokenearly.com/v1/openapi.json

`GET https://api.tokenearly.com/v1/topics`

No key required and not rate limited. Newly added exchanges, news sources and signal sources appear here automatically; X topics are a curated list of KOL accounts that changes over time, and this list is the reference. Send a key and each topic gains an `accessible` flag telling you whether your key may read it.

**Public, no key needed (a key adds more detail)**

## Parameters

No parameters.

## Example request

**cURL**

```bash
curl "https://api.tokenearly.com/v1/topics"
```

**Python**

```python
import requests

resp = requests.get("https://api.tokenearly.com/v1/topics", timeout=10)
resp.raise_for_status()
print(resp.json())
```

**Node.js**

```javascript
// Node 18+ (built-in fetch)
async function main() {
  const resp = await fetch("https://api.tokenearly.com/v1/topics");
  console.log(await resp.json());
}

main().catch((err) => {
  console.error(err);
  process.exit(1);
});
```

**Go**

```go
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	req, _ := http.NewRequest("GET", "https://api.tokenearly.com/v1/topics", nil)
	resp, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(resp.Status, string(body))
}
```

## Example response

```json
{
  "spec_version": "1.0",
  "topics": [
    {
      "id": "announcement.binance",
      "type": "announcement",
      "source_id": "binance",
      "names": {
        "zh": "币安",
        "en": "Binance",
        "ko": "바이낸스"
      },
      "accessible": true
    },
    {
      "id": "announcement.okx",
      "type": "announcement",
      "source_id": "okx",
      "names": {
        "zh": "欧易",
        "en": "OKX",
        "ko": "OKX"
      },
      "accessible": false
    },
    {
      "id": "announcement.mexc",
      "type": "announcement",
      "source_id": "mexc",
      "names": {
        "zh": "抹茶",
        "en": "MEXC",
        "ko": "MEXC"
      },
      "accessible": false
    }
  ]
}
```

## Errors

| Code | HTTP | Description |
|---|---|---|
| `invalid_api_key` | 401 | The key does not exist, or it was reset or revoked. |
| `key_expired` | 401 | The trial key has expired. Apply for a new trial key, or subscribe and create a regular key. |
| `ip_not_allowed` | 403 | The key has an IP allowlist and the request came from an address outside it. |
| `plan_required` | 403 | Your plan does not include the developer API, or this part of it. |
