# 工蜂主站页面访问限流规则

工蜂主站部分页面和接口会受到访问限制,如有疑问请联系工蜂助手。

# 限流规则

全站默认限流规则

URL Pattern 维度 限流值 说明
/** 用户 1500/min 2024-03-25 开始实施

MR 类接口

匹配 URL 限流值(用户维度)
/api/web/v1/projects/:id_or_path/merge_requests/** 200req/min
/api/web/v1/projects/:id_or_path/merge_quests/:id/pre_merge/commits/latest 10req/min
/api/web/v1/projects/:id_or_path/merge_requests/:id/merge 80req/min

CR 类接口

匹配 URL 限流值(用户维度)
/api/web/v1/projects/:id_or_path/reviews/** 600req/min
/api/web/v1/projects/:id_or_path/reviews/:review_id/tapd/batch_union 10req/min
/api/web/v1/projects/:id_or_path/reviews/:review_id/reviewer/users 10req/min
/api/web/v1/projects/:id_or_path/reviews/:review_id/note_drafts/publish 10req/min
/api/web/v1/projects/:id_or_path/reviews/:review_id/review_file/owner/users 10req/min
/api/web/v1/projects/:id_or_path/reviews/:review_id/refresh 20req/min
/api/web/v1/projects/:id_or_path/reviews/:review_id/user_badges 50req/min
/api/web/v1/projects/:id_or_path/reviews/:review_id/wechat_work/group/member 5req/min
/api/web/v1/projects/:id_or_path/reviews/:review_id/wechat_work/group 5req/min

GIT 仓库接口

匹配 URL 限流值(用户维度)
/api/web/v1/projects/:id_or_path/repository/** 800req/min
/api/web/v1/projects/:id_or_path/repository/merge/can_merge_check 20req/min
/api/web/v1/projects/:id_or_path/repository/merge 5req/min
/api/web/v1/projects/:id_or_path/repository/commit/:commit/revert 10req/min
/api/web/v1/projects/:id_or_path/repository/commit/:commit/cherry_pick 10req/min
/api/web/v1/projects/:id_or_path/repository/blob/blame 60req/min
/api/web/v1/projects/:id_or_path/repository/tree/recursive 10req/min

SVN 仓库接口

匹配 URL 限流值(用户维度)
/api/web/v1/svn/projects/:id_or_path/repository/** 150req/min
/api/web/v1/svn/projects/:id_or_path/repository/locks/lock 30req/min
/api/web/v1/svn/projects/:id_or_path/repository/tree 30req/min
/api/web/v1/svn/projects/:id_or_path/repository/revisions 80req/min
/api/web/v1/svn/projects/:id_or_path/repository/revisions/:v/stats 20req/min
/api/web/v1/svn/projects/:id_or_path/repository/compare/file/expand 10req/min
/api/web/v1/svn/projects/:id_or_path/repository/compare/stats 10req/min
/api/web/v1/svn/projects/:id_or_path/repository/compare/diff_files/tree 10req/min
/api/web/v1/svn/projects/:id_or_path/repository/compare/diff_files/file 10req/min
/api/web/v1/svn/projects/:id_or_path/branches 5req/min

腾讯接口

匹配 URL 限流值(用户维度)
/api/web/v1/projects/:id_or_path/issues/:tapd_id/tapd/create 20req/min

统计接口

匹配 URL 限流值(用户维度)
/dashboard/organizations/department/:id_or_path/** 80req/min
/api/web/v1/projects/:id_or_path/metrics/code_trend 20req/min
/api/web/v1/oa/statistics/organizations/:id1/oteams/:id2/statistics 60req/min
/api/web/v1/dashboard/profile/stats 60req/min
/api/web/v1/groups/:id/merge_requests/actions/export/stats_total 5req/min

搜索

匹配 URL 限流值(用户维度)
/search/search_aggregation 20req/min
/search 20req/min
/search/get_result_counts 150req/min
/search/get_more_path 10req/min
/api/web/v1/projects/:id_or_path/search/file_list 10req/min
/api/web/v1/projects/:id_or_path/code_search 30req/min
/search/autocomplete/namespaces.json 50req/min
/api/web/v1/dashboard/groups 20req/min

周边服务(ide、代码导航)

匹配 URL 限流值(用户维度)
/api/web/v1/ide/workspaces/:workspace 20req/min
/api/web/v1/ide/workspaces/agent/:workspace 10req/min
/api/web/v1/dashboard/code_navigation/sample_projects 10req/min
/api/web/v1/projects/:id_or_path/navigation/references 10req/min
/api/web/v1/ide/servers/agents/:workspace 10req/min

web-pc 基础功能(用户、用户组、项目接口、issue 接口、hook)

匹配 URL 限流值(用户维度)
/api/web/v1/projects/:id_or_path/branch_lifecycle/stat 10req/min
/api/web/v1/groups/:group_id/user_groups/:id 20req/min
/api/web/v1/explore/trend/projects/public 20req/min
/api/web/v1/projects/:id_or_path/share_groups 20req/min
/api/web/v1/projects/:id_or_path/pushes 140req/min
/api/web/v1/projects/:id_or_path/locks/v2 20req/min
/api/web/v1/dashboard/issues 30req/min
/api/web/v1/groups/:group_id/issues 30req/min
/api/web/v1/projects/:id_or_path/hooks/:hook_id/hook_logs/:id_3/retry 20req/min
/api/web/v1/projects/:id_or_path/hooks/:id/test 20req/min
/*/-/repository/archive. 5req/min

# 限流错误提示

  • HTTP 错误状态码:429

API 接口提示

{
    "api_username": "xx",
    "message": "Too Many Requests",
    "project_id": "",
    "status": 429,
    "strategy_id": "2387",
    "timestamp": "2024-03-25 06:41:05.613",
    "username": "xx",
    "x_tips": "Request Limited"
}

页面提示

lastUpdate: 12/8/2025, 3:03:47 PM