# Mobile networks

> Find the mobile operator a Pakistani 03XX prefix was originally allocated to (Jazz, Zong, Ufone, Telenor or SCO).

Source: https://pakdatakit.dev/docs/networks/

`import { getNetwork } from 'pakdatakit/networks'`

Reads the `03XX` prefix of a mobile number and returns the operator that prefix was originally allocated to. It accepts the same forms as the [phone helpers](https://pakdatakit.dev/docs/phone/): `03…`, `+92…`, `0092…`, with spaces or dashes.

> **The original network, not the current one**
>
> The result is the network the prefix was originally allocated to. Due to Mobile Number Portability (MNP) and operator mergers, the current carrier may differ.
## Examples

**TypeScript**

```ts
import { getNetwork } from 'pakdatakit';

getNetwork('0300 1234567');
// → 'Jazz'

getNetwork('+92 345 1234567');
// → 'Telenor'

getNetwork('042-35761234');
// → 'Unknown'
```

**Python**

```python
from pakdatakit import get_network

get_network('0300 1234567')
# → 'Jazz'

get_network('+92 345 1234567')
# → 'Telenor'

get_network('042-35761234')
# → 'Unknown'
```

**Dart**

```dart
import 'package:pakdatakit/pakdatakit.dart';

getNetwork('0300 1234567');
// → NetworkName.jazz

getNetwork('+92 345 1234567');
// → NetworkName.telenor

getNetwork('042-35761234');
// → NetworkName.unknown
```

**C#**

```csharp
using PakDataKit;

Networks.GetNetwork("0300 1234567");
// → "Jazz"

Networks.GetNetwork("+92 345 1234567");
// → "Telenor"

Networks.GetNetwork("042-35761234");
// → "Unknown"
```

**PHP**

```php
use PakDataKit\Networks;

Networks::getNetwork('0300 1234567');
// → 'Jazz'

Networks::getNetwork('+92 345 1234567');
// → 'Telenor'

Networks::getNetwork('042-35761234');
// → 'Unknown'
```

## Reference

### getNetwork()

```ts
function getNetwork(phone: string): NetworkName;

type NetworkName = 'Jazz' | 'Zong' | 'Telenor' | 'Ufone' | 'SCO' | 'Unknown';
```

**Parameters.** `phone`: the phone number to look up, in local or international form.

**Returns** the network name, or `Unknown` if the number is not a valid Pakistani mobile number.

**Caveats.**

- This is the network the prefix was originally allocated to. With number portability and operator mergers, the current carrier may differ.
- `Telenor` is the operator the `034x` range was originally allocated to. Telenor Pakistan was merged into PTML (Ufone) in 2026; the label is kept because the dataset records the original allocation.
- `SCO` is the Special Communications Organization (`0355`, serving Azad Jammu and Kashmir and Gilgit-Baltistan).
- `0370` and `0371` are labelled Zong from libphonenumber only; no official document giving `037x` to an operator was found. `0372` to `0379` are not included.
- `0364` (Instaphone, licence cancelled in 2008) is not included.

**Data.** PTA has no current operator-by-prefix table. The two-digit allocations come from PTA's National Numbering Plan 2008, with individual prefixes cross-checked against Google libphonenumber and operator announcements.

**Related:** [`validatePhone()`](https://pakdatakit.dev/docs/phone/#validatephone), [`analyzePhone()`](https://pakdatakit.dev/docs/phone/#analyzephone).

## Related

- [Phone](https://pakdatakit.dev/docs/phone/): validate and format mobile numbers.
- [Numbers](https://pakdatakit.dev/docs/numbers/): landlines, UAN, toll-free numbers and area codes.
- [WhatsApp](https://pakdatakit.dev/docs/whatsapp/): click-to-chat links.
- [Quality](https://pakdatakit.dev/docs/quality/): risk signals for a phone number given for a delivery.
- [API reference](https://pakdatakit.dev/api/typescript/networks/)
