# Get topic by external_id

`GET /t/external_id/{external_id}.json`

Authentication: no security requirement declared for this operation.

Parameters:

- `external_id` (path, string, required)
  Type: string

Responses:

- 301: redirects to /t/{topic_id}.json

## Examples

### cURL

```bash
curl -X GET 'https://discourse.example.com/t/external_id/string.json'
```

### JavaScript

```javascript
const response = await fetch('https://discourse.example.com/t/external_id/string.json', {
  method: 'GET',
});

const data = await response.text();
```

### Python

```python
import requests

response = requests.get('https://discourse.example.com/t/external_id/string.json')
print(response.text)
```
