---
title: "ASN resources by country"
method: GET
path: "/api/v1/network/asn"
tags: ["Sugra NetAtlas"]
---

# ASN resources by country

`GET /api/v1/network/asn`

When ?country={cc} is provided, returns the ASN + IPv4 + IPv6 resource counts allocated to that country. Replaces the legacy /bgp/country/{cc}/resources path per spec section 12.

## Query parameters

- `country` string, required — ISO 3166-1 alpha-2 country code.
- `limit` integer — Max items per resource list (asn/ipv4/ipv6) in this page.
- `offset` integer — 0-based offset into each resource list.

## Response `200`

Successful Response

- unknown

## Other responses

- `401` — Missing or invalid `x-api-key` header. JSON body with a stable `code` distinguishing `missing_api_key` (no header sent) from `invalid_api_key` (header sent, key not accepted); any other 401 source carries the generic `unauthorized` with its detail as `reason`. Plus `hint`. `plan` is always null on 401 - an unauthenticated request has no plan; quota exhaustion is 429, not 401.
- `422` — Validation Error
- `429` — Daily rate limit exceeded. Check `X-RateLimit-Reset` for the next window.
- `503` — Upstream source is temporarily unavailable. Retry after a short delay.

## Changes

- **2026-08-12** `062b7040e9bc` — 2 breaking, 1 info
  - the `query` request parameter `country` became required
  - `query` request parameter `country` list-of-types was narrowed by removing types `null`
  - for the `query` request parameter `country`, the type was generalized from no type to `string`
- **2026-08-08** `4c4530760ba1` — 12 info
  - added the optional property `code` to the response with the `401` status
  - added the optional property `code` to the response with the `429` status
  - added the optional property `code` to the response with the `503` status
  - added the optional property `hint` to the response with the `401` status
  - …8 more

[Change history](https://skmtc.dev/sugra/apis/sugra-api/changes/api/v1/network/asn/get.md)

---

[API](https://skmtc.dev/sugra/apis/sugra-api.md) · [All operations](https://skmtc.dev/sugra/apis/sugra-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sugra/apis/sugra-api/revisions/652554d2aae1?raw)
