Check whether the phone is currently connected to 2G, 3G, 4G, or 5G. The app can adjust its behavior, such as video quality, based on the network type.
AUrban area
Response5G
Connected to a 5G network in an urban area.
BSuburban area
Response4G
Connected to a 4G network in a suburban area.
CMountain area
Response3G
Connected to a 3G network in a mountain area.
PurposeAdjust the app's behavior, such as video quality or sync frequency, based on the network type.
SubscriptionA subscription version is also available: the operator sends a notification when the network type changes.
Connected Network Type: How it works
- Send device detailsThe service provider sends device identifiers, such as a phone number.
- Check connectionThe operator looks up the mobile network technology the device is currently using.
- Network type responseThe response includes 2G, 3G, 4G, 5G, or UNKNOWN, and the update time.
Connected Network Type: API spec
Spec name
Connected Network Type (CAMARA open-source spec)
API calls
POST /retrieveInput
device: phone number, etc.Subscription
Subscriptions v0.2.0: event network-type-changed
Typical uses
Dynamically adjusting app behavior based on network quality
| Response fields | Meaning | Example |
|---|---|---|
| connectedNetworkType | 2G, 3G, 4G, 5G, or UNKNOWN | 5G |
| lastStatusTime | Time the status was last updated | 2026-10-13T10:41:00Z |
Responses for three scenarios (excerpts)
AUrban area
connectedNetworkType
5GFifth-generation mobile communicationslastStatusTime
2026-10-14T10:41:00ZStatus update timeBSuburban area
connectedNetworkType
4GFourth-generation mobile communicationslastStatusTime
2026-10-14T10:41:00ZStatus update timeCMountain area
connectedNetworkType
3GThird-generation mobile communicationslastStatusTime
2026-10-14T10:41:00ZStatus update timeSpec source: CAMARA ConnectedNetworkType r1.2 (Connected Network Type v0.2.0, Subscriptions v0.2.0)