GitHub uses 27 prefixes for api.
Short answer
api lists the addresses of api.github.com.
Prefixes
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
- GitHub: published IP ranges · checked 5 Nov 2026
- GitHub documentation