ripe-bgp-state
星标14
分支3
更新时间2026年2月28日 01:52
Fetches global BGP state data from RIPE NCC for a specific resource.
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Fetches global BGP state data from RIPE NCC for a specific resource.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Fetches DNS chain data from RIPE NCC for a specific domain. This skill must be used whenever the user asks for a 'chain', 'full path', or 'multi-step' DNS resolution
Returns the number of BGP updates seen for a resource.
| name | ripe-bgp-state |
| description | Fetches global BGP state data from RIPE NCC for a specific resource. |
| metadata | {"category":"network"} |
This skill queries the RIPE Stat API to retrieve global BGP state information for a specific IP prefix or ASN.
Set the resource variable in the variables argument to the IP prefix or ASN you wish to query (e.g., 1.1.1.0/24).
import requests
import json
import sys
resource = locals().get("resource") or (sys.argv[1] if len(sys.argv) > 1 else None)
if resource:
response = requests.get("https://stat.ripe.net/data/bgp-state/data.json", params={"resource": resource})
print(json.dumps(response.json(), indent=2))
else:
print("Error: The 'resource' variable is required. Please provide it in the 'variables' argument.")
resource: The IP prefix or ASN to query (e.g., 1.1.1.0/24 or AS3333).A JSON object containing:
status: Request status.data: Contains bgp_state list with route details (path, source_id, target_prefix, etc.).