# ASN ## Get ASN Overview. `client.intel.asn.get(ASNasn, ASNGetParamsparams, RequestOptionsoptions?): ASN` **get** `/accounts/{account_id}/intel/asn/{asn}` Gets an overview of the Autonomous System Number (ASN) and a list of subnets for it. ### Parameters - `asn: ASN` - `params: ASNGetParams` - `account_id: string` Identifier. ### Returns - `ASN = number` ### Example ```node import Cloudflare from 'cloudflare'; const client = new Cloudflare({ apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted }); const asn = await client.intel.asn.get(0, { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }); console.log(asn); ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "success": true, "result": 0 } ``` # Subnets ## Get ASN Subnets `client.intel.asn.subnets.get(ASNasn, SubnetGetParamsparams, RequestOptionsoptions?): SubnetGetResponse` **get** `/accounts/{account_id}/intel/asn/{asn}/subnets` Get ASN Subnets. ### Parameters - `asn: ASN` - `params: SubnetGetParams` - `account_id: string` Identifier. ### Returns - `SubnetGetResponse` - `asn?: ASN` - `count?: number` Total results returned based on your search parameters. - `ip_count_total?: number` - `page?: number` Current page within paginated list of results. - `per_page?: number` Number of results per page of results. - `subnets?: Array` ### Example ```node import Cloudflare from 'cloudflare'; const client = new Cloudflare({ apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted }); const subnet = await client.intel.asn.subnets.get(0, { account_id: '023e105f4ecef8ad9ca31a8372d0c353', }); console.log(subnet.asn); ``` #### Response ```json { "asn": 0, "count": 1, "ip_count_total": 0, "page": 1, "per_page": 20, "subnets": [ "192.0.2.0/24", "2001:DB8::/32" ] } ``` ## Domain Types ### Subnet Get Response - `SubnetGetResponse` - `asn?: ASN` - `count?: number` Total results returned based on your search parameters. - `ip_count_total?: number` - `page?: number` Current page within paginated list of results. - `per_page?: number` Number of results per page of results. - `subnets?: Array`