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

# Python 快速调用

> 在数据抓取与分析脚本中集成 SocialVision

## 示例代码

```python theme={null}
import requests

API_KEY = "sv_live_你的API_KEY"

def run_socialvision(endpoint, input_params):
    url = "https://socialvision.tisyk.xyz/api/v1/run"
    headers = {
        "Authorization": f"Bearer {API_KEY}",
        "Content-Type": "application/json"
    }
    payload = {
        "provider": "tikhub",
        "endpoint": endpoint,
        "input": input_params
    }
    response = requests.post(url, headers=headers, json=payload)
    return response.json()

# 示例：搜索小红书笔记
result = run_socialvision("/api/v1/xiaohongshu/app_v2/search_notes", {
    "keyword": "智能家居",
    "page": 1
})

print(result["output"])
```
