---
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, nullable — 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.

---

[API](https://skmtc.net/sugra/apis/sugra-api.md) · [All operations](https://skmtc.net/sugra/apis/sugra-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sugra/sugra-api/versions/4c4530760ba1/schema)
