Skip to content

Quickstart

Five calls cover what most people need. Put your key in a variable first, so it does not end up in your shell history:

read -rs AIP_KEY && export AIP_KEY

1. Check that the lists are fresh

curl -s https://api.intelligence.stratosphereips.org/v1/status

This needs no key. It shows the newest day of each list. A list is stale when that day is older than yesterday, or when its file was made more than 26 hours ago.

2. See the lists

curl -s https://api.intelligence.stratosphereips.org/v1/lists

Each list answers one question and has an id, such as persistent or all-last-day. The Lists page explains them.

3. Look up one address

curl -s -H "Authorization: Bearer $AIP_KEY" \
  https://api.intelligence.stratosphereips.org/v1/ip/203.0.113.7

The answer says whether the address is listed now, on which lists, since when, and until when you should block it. as_of is the day of the newest lists you can see. An address that was never listed returns 200 with "observed": "never". That does not mean it is safe.

Add ?include=scores for the address's rank and score on each list, and ?include=history for every day it was on a list. A long history costs more credits. The Fields page explains every field.

4. Download a list for your firewall

curl -s -H "Authorization: Bearer $AIP_KEY" \
  "https://api.intelligence.stratosphereips.org/v1/lists/persistent?format=csv" \
  -o persistent.csv

Without format=csv you get JSON, one page of 1,000 addresses at a time. Use limit and offset to page, and follow the Link header to the next page.

To load a list every day, run the download after 03:30 UTC. That leaves time for the day's lists to arrive. The integrations show how, for common firewalls and tools.

5. Get only what changed

curl -s -H "Authorization: Bearer $AIP_KEY" \
  "https://api.intelligence.stratosphereips.org/v1/changes?since=2026-10-05&list=persistent"

This returns the addresses added, removed and moved since the day you give. Use the day of your last sync. It must be inside your plan's history window, or you get 403 history_window_exceeded. Syncing changes is much smaller than downloading the whole list every day.

When something goes wrong

Every error has a stable code. The Errors page lists them all. Two you may meet early:

  • 429 means you went over a limit. Wait the number of seconds in Retry-After.
  • 403 history_window_exceeded means you asked for a day older than your plan covers.