github · api

GitHub uses 27 prefixes for api.

Short answer

api lists the addresses of api.github.com.

IPv4 prefixes25
IPv6 prefixes2
Regions in the first 100—
Fetched by peekip5 Nov 2026

Prefixes

PrefixRegion / locationService
140.82.112.0/20—api
143.55.64.0/20—api
172.182.252.137/32—api
185.199.108.0/22—api
192.30.252.0/22—api
20.175.192.149/32—api
20.199.39.228/32—api
20.200.245.245/32—api
20.201.28.148/32—api
20.205.243.168/32—api
20.207.73.85/32—api
20.217.135.0/32—api
20.233.83.146/32—api
20.250.119.72/32—api
20.26.156.210/32—api
20.27.177.116/32—api
20.29.134.17/32—api
20.87.245.6/32—api
4.208.26.200/32—api
4.225.11.201/32—api
4.228.31.149/32—api
4.237.22.34/32—api
4.249.131.166/32—api
48.202.248.39/32—api
48.204.201.2/32—api
2606:50c0::/32—api
2a0a:a440::/29—api
Showing 27 of 27 prefixes All prefixes (CSV)

What changed

  • 21 Oct 2026
    + 20.250.119.72/32
    

Allowlist formats

nginx (first 5 prefixes)
allow 140.82.112.0/20;
allow 143.55.64.0/20;
allow 172.182.252.137/32;
allow 185.199.108.0/22;
allow 192.30.252.0/22;
deny all;
iptables (first 5 prefixes)
iptables -A INPUT -s 140.82.112.0/20 -j ACCEPT
iptables -A INPUT -s 143.55.64.0/20 -j ACCEPT
iptables -A INPUT -s 172.182.252.137/32 -j ACCEPT
iptables -A INPUT -s 185.199.108.0/22 -j ACCEPT
iptables -A INPUT -s 192.30.252.0/22 -j ACCEPT

Generate the full list from the CSV, and refresh it on a schedule: providers add and retire prefixes often.

Sources

  1. GitHub: published IP ranges · checked 5 Nov 2026
  2. GitHub documentation