---
title: "列出 Robinhood Social 账号及设置"
canonical_url: "https://tweetstream.io/zh-cn/docs/api/list-robinhood-social-accounts"
last_updated: 2026-11-05
---

# 列出 Robinhood Social 账号及设置

GET /api/robinhood-social 列出你可以推送的 Robinhood Social 账号，每个账号都包含 profileId、名称、头像、主页链接以及你是否已启用。响应中的 canManage 表示当前套餐能否启用这些账号。

Canonical URL: https://tweetstream.io/zh-cn/docs/api/list-robinhood-social-accounts

## `GET /api/robinhood-social`

`https://api.tweetstream.io/api/robinhood-social`

## 授权

| 名称 | 类型 | 说明 |
| --- | --- | --- |
| `Authorization` | `string`, 必填 | 使用 TweetStream API 密钥进行 Bearer 认证：`Bearer <key>`。 |

## 响应字段

| 名称 | 类型 | 说明 |
| --- | --- | --- |
| `accounts` | `object[]`, 必填 |  |
| `accounts.avatarUrl` | `string`, 必填 |  |
| `accounts.displayName` | `string`, 必填 |  |
| `accounts.enabled` | `boolean`, 必填 |  |
| `accounts.group` | `enum<string>`, 必填 |  |
| `accounts.profileId` | `string`, 必填 |  |
| `accounts.profileUrl` | `string`, 必填 |  |
| `canManage` | `boolean`, 必填 |  |

## 响应

| 状态 | 说明 | 请求头 |
| --- | --- | --- |
| `200` | 成功 |  |
| `401` | API key 缺失或无效 |  |
| `403` | 已认证的账号无法使用此功能 |  |
| `500` | 请求未能完成 |  |

### 200

```json
{
  "accounts": [
    {
      "avatarUrl": "<string>",
      "displayName": "<string>",
      "enabled": true,
      "group": "official",
      "profileId": "<string>",
      "profileUrl": "<string>"
    }
  ],
  "canManage": true
}
```

### 401

```json
{
  "error": "<string>"
}
```

### 403

```json
{
  "error": "<string>"
}
```

### 500

```json
{
  "error": "<string>"
}
```

## 代码示例

### cURL

```bash
curl --request GET \
  --url https://api.tweetstream.io/api/robinhood-social \
  --header "Authorization: Bearer $TWEETSTREAM_API_KEY"
```

### JavaScript

```javascript
const response = await fetch("https://api.tweetstream.io/api/robinhood-social", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.TWEETSTREAM_API_KEY}`,
  },
});

console.log(response.status, await response.json());
```

### Python

```python
import os
import requests

response = requests.get(
    "https://api.tweetstream.io/api/robinhood-social",
    headers={"Authorization": f"Bearer {os.environ['TWEETSTREAM_API_KEY']}"},
)

print(response.status_code, response.json())
```
