Spiral gives your agent every tool with one account. Browse the tools →

AlexandriaE-commerceAvailable now

GitHub · Search advisories

github-com/repositories/search_advisories

Get product, price and seller data with GitHub · Search advisories from Alexandria through one Spiral API key. Search advisories. It runs in the background and returns structured JSON. Pay as you go, with no subscription.

Pricing

$0.00873 per call.

Limits

Runs
In the background
Returns
json
Longest queue wait
1 hour
Run deadline
5 minutes
Longest run, end to end
225 minutes
Largest inline input
1 MB
Largest input file
2 GB
Largest output
5 GB

Input

FieldKindDefaultDescription
cweslist—

CWE ids such as CWE-79 or 79; matches advisories with any of them.

sortone of
published, updated, epss_percentage, epss_percentile
published

sort

typeone of
reviewed, unreviewed, malware
reviewed

reviewed (GitHub-curated, the default), unreviewed (imported from NVD, often without packages) or malware.

cursortext—

next_cursor from the previous page. Pattern: ^[A-Za-z0-9+/=%_-]+$.

cve_idtext—

CVE id, for example CVE-2021-44228. Pattern: ^[Cc][Vv][Ee]-\d{4}-\d{4,19}$.

affectslist—

Package names or name@version (Maven as group:artifact, Go as module path); matches advisories affecting any of them.

updatedtext—

Last update date: YYYY-MM-DD, >=YYYY-MM-DD (also >, <, <=) or YYYY-MM-DD..YYYY-MM-DD. Pattern: ^(?:(?:[<>]=?)?\d{4}-\d{2}-\d{2}|\d{4}-\d{2}-\d{2}\.\.\d{4}-\d{2}-\d{2})$.

modifiedtext—

Publication or update date: YYYY-MM-DD, >=YYYY-MM-DD (also >, <, <=) or YYYY-MM-DD..YYYY-MM-DD. Pattern: ^(?:(?:[<>]=?)?\d{4}-\d{2}-\d{2}|\d{4}-\d{2}-\d{2}\.\.\d{4}-\d{2}-\d{2})$.

per_pagenumber
1 to 100
30

per_page

severityone of
unknown, low, medium, high, critical
—

severity

directionone of
asc, desc
desc

direction

ecosystemone of
rubygems, npm, pip, maven, nuget, composer, go, rust, erlang, actions, pub, other, swift
—

Package ecosystem. pip is PyPI, rust is crates.io, composer is Packagist, actions is GitHub Actions.

publishedtext—

Publication date: YYYY-MM-DD, >=YYYY-MM-DD (also >, <, <=) or YYYY-MM-DD..YYYY-MM-DD. Pattern: ^(?:(?:[<>]=?)?\d{4}-\d{2}-\d{2}|\d{4}-\d{2}-\d{2}\.\.\d{4}-\d{2}-\d{2})$.

is_withdrawntrue or false—

true: only withdrawn advisories; false: only active ones.

Same request in code

curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "github-com/repositories/search_advisories",
    "input": {
      "cwes": [
        "<cwes>"
      ]
    }
  }'

Frequently asked questions

How much does GitHub · Search advisories cost?

$0.00873 per call. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

How do I use GitHub · Search advisories through an API?

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "github-com/repositories/search_advisories"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

Do I need an account with Alexandria to use GitHub · Search advisories?

No. Spiral runs it on its own Alexandria account and charges your Spiral balance.

Can my AI agent use GitHub · Search advisories?

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.