# Network Lookup API

The Network Lookup API identifies the mobile network serving a South African number. Call it from your app when you need to verify the recipient’s network before placing an airtime or data order. Use the returned network when you submit the recharge.

[Web guide](https://simcloud.co.za/docs/guide/network-api/)

GET /api/network.php

[API reference](https://simcloud.co.za/api/network.html)

## Look up the mobile network

Set SIMCLOUD_MSISDN to the South African number you want to check. The example uses URL encoding for international numbers. A successful response contains the normalised msisdn and network. HTTP 400 indicates invalid input. HTTP 404 means there was no network match. The lookup does not place a recharge.

### GET /api/network.php

```bash
curl -4 -sS -i "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/network.php" \
  -H "Authorization: Bearer $SIMCLOUD_API_TOKEN" \
  --get \
  --data-urlencode "msisdn=$SIMCLOUD_MSISDN"
```

HTTP 200 response excerpt

```json
{
  "status": "success",
  "network": "Vodacom"
}
```

- [Use Network Lookup in the customer portal](https://simcloud.co.za/docs/guide/network-lookup/#steps)
