Downloading CIDR Address Blocks?

I currently use ipinfo.app to download ATT Wireless CIDR blocks for firewall allow rules.

curl "https://asn.ipinfo.app/api/download/list/AS20057" > att_cidr.txt

Trying to find an equivalent for ipinfo.io, bit it comes back with an error.

curl -s "https://ipinfo.io/AS20057?token=redacted" 

{
  "error": "Token does not have access to this API",
  "token": "redacted"
}

Is there a method to get simple CIDR blocks for various ASNs using the free tier?

Or do I have to use whois

whois -h whois.radb.net -- '-i origin AS20057' | grep -Eo "([0-9.]+){4}/[0-9]+"

My apologies for the late response. Unfortunately, we do not have any system that allows for direct CIDR block download. You can download the database and use grep to get the CIDR blocks, or if you are using GCP/Snowflake, you can use SQL to get the CIDR blocks via their API.