# Default HTTP headers for Weibo API requests
DEFAULT_HEADERS = { 'Content-Type': 'application/json' }
# URL template for fetching user profile information
# {userId} will be replaced with the actual user ID
PROFILE_URL = 'https://m.weibo.cn/api/container/getIndex?type=uid&value={userId}'
# URL template for fetching user's Weibo feeds
# {userId}: User's unique identifier
# {containerId}: Container ID for the user's feed
# {sinceId}: ID of the last feed for pagination
FEEDS_URL = 'https://m.weibo.cn/api/container/getIndex?type=uid&value={userId}&containerid={containerId}&since_id={sinceId}'
# URL for searching users, posts, topics and trending
SEARCH_URL = 'https://m.weibo.cn/api/container/getIndex'
# URL template for fetching comments of a specific Weibo post
# {feed_id}: The ID of the Weibo post
# {page}: The page number for pagination
COMMENTS_URL = 'https://m.weibo.cn/api/comments/show?id={feed_id}&page={page}'
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/qinyuanpei/mcp-server-weibo'
If you have feedback or need assistance with the MCP directory API, please join our Discord server