# Ripe Bgp Activity

> Returns the number of BGP updates seen for a resource.

- **Type:** Skill
- **Install:** `agentstack add skill-mehrdadrad-radops-ripe-bgp-activity`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [mehrdadrad](https://agentstack.voostack.com/s/mehrdadrad)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [mehrdadrad](https://github.com/mehrdadrad)
- **Source:** https://github.com/mehrdadrad/radops/tree/main/skills/ripe-bgp-activity

## Install

```sh
agentstack add skill-mehrdadrad-radops-ripe-bgp-activity
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# RIPE BGP Update Activity
This skill queries the RIPE Stat API to returns the number of BGP updates seen over time. Results are aggregated in time intervals, the lenght of which is determined by the input parameters.

## Input
- resource: The resource (ASN, prefix, IP) to look up.
- starttime: The start time for the query (ISO 8601 or unix timestamp).
- endtime: The end time for the query (ISO 8601 or unix timestamp).

## Execution
```python
import requests

def execute(resource, starttime=None, endtime=None):
    url = "https://stat.ripe.net/data/bgp-update-activity/data.json"
    params = {"resource": resource}
    if starttime:
        params["starttime"] = starttime
    if endtime:
        params["endtime"] = endtime

    response = requests.get(url, params=params)
    response.raise_for_status()
    return response.json().get("data", {})
```

## Output

A JSON object containing:
- `updates`: List with BGP update activity samples. Each sample contains:
    - `starttime`: The beginning of each sample.
    - `announcements`: The number of announcements in this sample.
    - `withdrawals`: The number of withdrawals in this sample.
- `sampling_period`: The duration in seconds of each sample interval.
- `sampling_period_human`: A human-readable version of the sampling period.
- `query_starttime`: The starttime the query covers.
- `query_endtime`: The endtime the query covers.
- `resource`: Defines the resource used for the query.
- `resource_type`: The detected type of the queried resource ("asn", 4 or 6).
- `max_samples`: The maximum number of samples returned.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [mehrdadrad](https://github.com/mehrdadrad)
- **Source:** [mehrdadrad/radops](https://github.com/mehrdadrad/radops)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** yes
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-mehrdadrad-radops-ripe-bgp-activity
- Seller: https://agentstack.voostack.com/s/mehrdadrad
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
