List Internet Products
curl --request GET \
--url https://api.oneclickdz.com/v3/internet/products \
--header 'X-Access-Token: <api-key>'import requests
url = "https://api.oneclickdz.com/v3/internet/products"
headers = {"X-Access-Token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Access-Token': '<api-key>'}};
fetch('https://api.oneclickdz.com/v3/internet/products', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.oneclickdz.com/v3/internet/products",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Access-Token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.oneclickdz.com/v3/internet/products"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Access-Token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.oneclickdz.com/v3/internet/products")
.header("X-Access-Token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.oneclickdz.com/v3/internet/products")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Access-Token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"products": [
{
"cost": 123,
"value": 123,
"available": true
}
],
"type": "<string>"
},
"meta": {
"timestamp": "<string>"
}
}Internet Top-Ups
List Internet Products
Get available ADSL and 4G LTE internet cards with real-time stock
GET
/
v3
/
internet
/
products
List Internet Products
curl --request GET \
--url https://api.oneclickdz.com/v3/internet/products \
--header 'X-Access-Token: <api-key>'import requests
url = "https://api.oneclickdz.com/v3/internet/products"
headers = {"X-Access-Token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Access-Token': '<api-key>'}};
fetch('https://api.oneclickdz.com/v3/internet/products', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.oneclickdz.com/v3/internet/products",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Access-Token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.oneclickdz.com/v3/internet/products"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Access-Token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.oneclickdz.com/v3/internet/products")
.header("X-Access-Token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.oneclickdz.com/v3/internet/products")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Access-Token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"products": [
{
"cost": 123,
"value": 123,
"available": true
}
],
"type": "<string>"
},
"meta": {
"timestamp": "<string>"
}
}Overview
Returns available internet recharge cards for ADSL and 4G LTE services with real-time pricing and stock availability.Query Parameters
string
required
Internet service type:
ADSL or 4GResponse
boolean
required
Indicates if the request was successful
object
required
Examples
curl "https://api.oneclickdz.com/v3/internet/products?type=ADSL" \
-H "X-Access-Token: YOUR_API_KEY"
curl "https://api.oneclickdz.com/v3/internet/products?type=4G" \
-H "X-Access-Token: YOUR_API_KEY"
const type = "ADSL"; // or '4G'
const response = await fetch(
`https://api.oneclickdz.com/v3/internet/products?type=${type}`,
{ headers: { "X-Access-Token": "YOUR_API_KEY" } }
);
const { data } = await response.json();
response = requests.get(
'https://api.oneclickdz.com/v3/internet/products',
headers={'X-Access-Token': 'YOUR_API_KEY'},
params={'type': 'ADSL'}
)
products = response.json()['data']['products']
<?php
$type = 'ADSL'; // or '4G'
$ch = curl_init("https://api.oneclickdz.com/v3/internet/products?type={$type}");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['X-Access-Token: YOUR_API_KEY']);
$response = curl_exec($ch);
$data = json_decode($response, true);
$products = $data['data']['products'];
?>
ADSL Products Response
{
"success": true,
"data": {
"products": [
{
"cost": 1900,
"value": 2000,
"available": false
},
{
"cost": 2850,
"value": 3000,
"available": true
},
{
"cost": 475,
"value": 500,
"available": true
},
{
"cost": 950,
"value": 1000,
"available": true
}
],
"type": "ADSL"
},
"meta": {
"timestamp": "2025-10-29T00:36:50.059Z"
}
}
4G Products Response
{
"success": true,
"data": {
"products": [
{
"cost": 950,
"value": 1000,
"available": true
},
{
"cost": 1425,
"value": 1500,
"available": true
},
{
"cost": 475,
"value": 500,
"available": true
},
{
"cost": 2375,
"value": 2500,
"available": true
},
{
"cost": 3325,
"value": 3500,
"available": true
},
{
"cost": 6175,
"value": 6500,
"available": false
},
{
"cost": 1140,
"value": 1200,
"available": true
}
],
"type": "4G"
},
"meta": {
"timestamp": "2025-10-29T00:36:50.632Z"
}
}
Important Notes
Remove
cost before displaying to end users. Apply your own markup for
pricing.Check
available: true before allowing users to order. Stock levels are
real-time.Phone Number Formats
ADSL Numbers
- Format:
0[0-9]{8} - Examples:
036362608,031417237 - Fixed line numbers (landline)
4G Numbers
- Format:
213[0-9]{9} - Examples:
213472731602,213665983439 - Mobile numbers with country code
Best Practices
Check Stock
Always verify
available: true before displaying to usersApply Markup
Calculate:
sellPrice = cost * (1 + yourMargin)Cache Products
Cache for 5-10 minutes to reduce API calls
Validate Numbers
Use validate endpoint before submitting orders
Related Endpoints
Validate Number
Validate phone before ordering
Send Top-Up
Purchase internet card

