A Network resource represents a cellular network to which Super SIMs can connect.
You can obtain a list of all available mobile operator networks, provided as an array of Network resources, from this endpoint:
https://supersim.twilio.com/v1/Networks
To allow Super SIMs to connect to the cellular network that a Network resource represents, the Network resource must be included in a Network Access Profile resource's Networks subresource.
The unique string that we created to identify the Network resource.
^HW[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
A Network resource's identifiers
property is an array of objects that contain identifiers for all of the public land mobile networks (PLMNs) that are represented by a Network resource.
mcc | The Mobile Country Code (MCC) is the unique ID that identifies the mobile operator network's home country. |
---|---|
mnc | The Mobile Network Code (MNC) is the unique ID that identifies the mobile operator network. |
There have been many mergers, spin-offs, and rebrandings of mobile network operators around the world. A PLMN may therefore have many identifiers, i.e., multiple MCC and MNC pairings. A PLMN's trading name may no longer match the 'friendly name' which is used to identify it in a human-readable way to other PLMNs and which is recorded in a Network resource's friendly_name
property.
If there is a specific mobile network operator you are looking for which may have a different name to the Network resource's friendly_name
property, check if its MCC and MNC IDs are included among a Network resource's identifiers
.
GET https://supersim.twilio.com/v1/Networks/{Sid}
The SID of the Network resource to fetch.
^HW[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function fetchNetwork() {11const network = await client.supersim.v112.networks("HWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")13.fetch();1415console.log(network.sid);16}1718fetchNetwork();
1{2"friendly_name": "AT&T",3"iso_country": "US",4"identifiers": [5{6"mcc": "310",7"mnc": "410"8}9],10"sid": "HWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",11"url": "https://supersim.twilio.com/v1/Networks/HWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"12}
GET https://supersim.twilio.com/v1/Networks
The 'mobile country code' of a country. Network resources with this mcc
in their identifiers
will be read.
The 'mobile network code' of a mobile operator network. Network resources with this mnc
in their identifiers
will be read.
How many resources to return in each list page. The default is 50, and the maximum is 1000.
1
Maximum: 1000
The page token. This is provided by the API.
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function listNetwork() {11const networks = await client.supersim.v1.networks.list({ limit: 20 });1213networks.forEach((n) => console.log(n.sid));14}1516listNetwork();
1{2"meta": {3"first_page_url": "https://supersim.twilio.com/v1/Networks?PageSize=50&Page=0",4"key": "networks",5"next_page_url": null,6"page": 0,7"page_size": 50,8"previous_page_url": null,9"url": "https://supersim.twilio.com/v1/Networks?PageSize=50&Page=0"10},11"networks": [12{13"friendly_name": "AT&T",14"iso_country": "US",15"identifiers": [16{17"mcc": "310",18"mnc": "410"19}20],21"sid": "HWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",22"url": "https://supersim.twilio.com/v1/Networks/HWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"23}24]25}
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function listNetwork() {11const networks = await client.supersim.v1.networks.list({12isoCountry: "US",13limit: 20,14});1516networks.forEach((n) => console.log(n.isoCountry));17}1819listNetwork();
1{2"meta": {3"first_page_url": "https://supersim.twilio.com/v1/Networks?IsoCountry=US&Mnc=410&Mcc=310&PageSize=50&Page=0",4"key": "networks",5"next_page_url": null,6"page": 0,7"page_size": 50,8"previous_page_url": null,9"url": "https://supersim.twilio.com/v1/Networks?IsoCountry=US&Mnc=410&Mcc=310&PageSize=50&Page=0"10},11"networks": [12{13"friendly_name": "AT&T",14"iso_country": "US",15"identifiers": [16{17"mcc": "310",18"mnc": "410"19}20],21"sid": "HWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",22"url": "https://supersim.twilio.com/v1/Networks/HWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"23}24]25}
You can use the a cellular network's MCC-MNC to search for a specific network. For example, one of AT&T US' MCC-MNCs is 310-410. You can use the mcc
and mnc
parameters to search for the Network resource which represents AT&T US.
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function listNetwork() {11const networks = await client.supersim.v1.networks.list({12mcc: "310",13mnc: "410",14limit: 20,15});1617networks.forEach((n) => console.log(n.identifiers));18}1920listNetwork();
1{2"meta": {3"first_page_url": "https://supersim.twilio.com/v1/Networks?IsoCountry=US&Mnc=410&Mcc=310&PageSize=50&Page=0",4"key": "networks",5"next_page_url": null,6"page": 0,7"page_size": 50,8"previous_page_url": null,9"url": "https://supersim.twilio.com/v1/Networks?IsoCountry=US&Mnc=410&Mcc=310&PageSize=50&Page=0"10},11"networks": [12{13"friendly_name": "AT&T",14"iso_country": "US",15"identifiers": [16{17"mcc": "310",18"mnc": "410"19}20],21"sid": "HWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",22"url": "https://supersim.twilio.com/v1/Networks/HWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"23}24]25}