Docs
Type to search every article.
  1. Docs
  2. API

Edge addresses

1 min read Updated

On this page
  1. As JSON
  2. As plain text

The addresses a request from us reaches your origin from, for a firewall rule or a security group. They are published on the API with no key needed: as JSON, and as plain text with one address per line.

An address joins the list before the location behind it serves and leaves it only after that location is retired for good, so a firewall that re-reads the list once a day is never ahead of us. It covers every location, including one that is down or being worked on.

As JSON#

HTTP
GET https://api.cachegenie.com/v1/edges
Shell
curl https://api.cachegenie.com/v1/edges
JSON
{
  "CODE": 200,
  "MESSAGE": "Edge addresses returned.",
  "DATA": {
    "IPV4": ["203.0.113.10", "203.0.113.20"],
    "IPV6": ["2001:db8::10", "2001:db8::20"],
    "ALL": ["203.0.113.10", "203.0.113.20", "2001:db8::10", "2001:db8::20"]
  }
}
  • IPV4 (Array): every IPv4 address, sorted.
  • IPV6 (Array): every IPv6 address, sorted.
  • ALL (Array): both, IPv4 first.

As plain text#

The same lists, one address per line and nothing else, for a firewall or a script that reads a URL.

HTTP
GET https://api.cachegenie.com/v1/edges/all
GET https://api.cachegenie.com/v1/edges/ipv4
GET https://api.cachegenie.com/v1/edges/ipv6
Shell
curl https://api.cachegenie.com/v1/edges/ipv4