KYC የለም — መታወቂያ፣ ሰልፊ ወይም ሰነዶች አያስፈልጉም
ቋንቋ: አማርኛ
1 GB ይምረጡ

የAPI ማጣቀሻ

ትዕዛዞች

እቅዶችንና ዋጋዎቻቸውን ይዘርዝሩ፣ ከቀሪ ሂሳብ እቅድ ይግዙ (አዲስ አገልግሎት፣ ተጨማሪ ትራፊክ ወይም የፖርት ጊዜ ማራዘም)፣ የቀድሞ ትዕዛዞችዎንም ያንብቡ።

የመጨረሻው መዘመን: · 5 ደቂቃ ንባብ

በዚህ ገጽ ያሉ መዳረሻዎች

  • GET /v1/catalog/products: ምርቶች፣ እቅዶችና ዋጋዎች
  • POST /v1/orders: ከቀሪ ሂሳብ እቅድ ይግዙ (አዲስ አገልግሎት፣ ተጨማሪ ትራፊክ ወይም የፖርት ጊዜ ማራዘም)
  • GET /v1/orders: ትዕዛዞችን ይዘርዝሩ
  • GET /v1/orders/{orderId}: ትዕዛዝ ያግኙ

መሠረታዊ URL https://africaproxies.com/api/v1። የመለያ ማረጋገጫ፣ ስህተቶችና ገደቦች፦ የAPI አጠቃላይ መግለጫ ይመልከቱ።

ምርቶች፣ እቅዶችና ዋጋዎች

GET/v1/catalog/products

እያንዳንዱ ምርት ከእቅዶቹና ከዋጋዎቹ ጋር፣ ሲያዝዙ በሚከፈለው ልክ።

የሕዝብ፡ ምንም API ቁልፍ አያስፈልግም።

ምላሽ 200 OK

{
  "data": [
    {
      "id": "residential",
      "name": "Residential proxies",
      "description": "Residential IPs across 49 African locations for public price research, local SEO and your application tests. Prepaid traffic, billed per GB.",
      "unit": "GB",
      "plans": [
        {
          "id": "res-10",
          "productId": "residential",
          "name": "Team",
          "quantity": 10,
          "unit": "GB",
          "durationDays": null,
          "price": "5.94",
          "pricePerUnit": "0.59",
          "popular": false,
          "features": [
            "Prepaid traffic never expires",
            "Country and city where available",
            "Project credentials and traffic caps"
          ],
          "available": true,
          "countries": null
        }
      ]
    }
  ]
}

የኮድ ምሳሌዎች

curl
curl -s "https://africaproxies.com/api/v1/catalog/products"
Python
import os
import requests

API = "https://africaproxies.com/api/v1"

r = requests.get(f"{API}/catalog/products", timeout=30)
r.raise_for_status()
print(r.json())
Node.js
// Node.js 18+ (built-in fetch), ES module
const API = 'https://africaproxies.com/api/v1';

const res = await fetch(`${API}/catalog/products`);
if (!res.ok) throw new Error((await res.json()).error?.message ?? `HTTP ${res.status}`);
console.log(await res.json());

ከቀሪ ሂሳብ እቅድ ይግዙ (አዲስ አገልግሎት፣ ተጨማሪ ትራፊክ ወይም የፖርት ጊዜ ማራዘም)

POST/v1/orders

ሁልጊዜ ከበቅድሚያ የተከፈለ ቀሪ ሂሳብ ይከፈላል፤ API ዋጋውን ያሰላል (የካታሎግ ዋጋ × quantity)፣ ከቀሪ ሂሳብ ይቀንሳል፣ አገልግሎቱ ይፈጠራል ወይም ይራዘማል፣ ትዕዛዙም ከ fulfillment ጋር completed ሆኖ ይመለሳል። የproxy መግቢያ መረጃዎች ወዲያውኑ ይገኛሉ።

  • አዲስ የመኖሪያ ኔትወርክ ትራፊክ፦ { "planId": "res-10" }።
  • አዲስ የሚለዋወጥ 4G/5G ትራፊክ (በ GB)፦ { "planId": "mgb-10" } (productId: "mobile-gb" ያለው የትራፊክ ምዝገባ፣ በ fulfillment.residentialSubscriptionId ይቀርባል)።
  • ባለ ምዝገባ ላይ ትራፊክ ይጨምሩ፦ { "planId": "res-10", "options": { "subscriptionId": "res_9x2m4k" } }፤ እቅዱ የምዝገባው ምርት መሆን አለበት።
  • አዲስ የሞባይል ፖርት/ፖርቶች፦ { "planId": "mob-30d", "quantity": 1, "options": { "country": "AE" } }፣ በአማራጭ carrier ሊጨመር ይችላል (የአገር ኦፕሬተሮችን በየሞባይል ፖርቶች ይመልከቱ)። የዞን እቅዶች የዞናቸውን አገሮች ብቻ ይሸፍናሉ (ካልሆነ በ options.country ላይ 422)።
  • የሞባይል ፖርት ጊዜ ያራዝሙ፦ { "planId": "mob-7d", "options": { "portId": "mob_2v8k1q" } } የእቅዱን ቆይታ ወደ expiresAt ይጨምራል።

ቀሪ ሂሳብ አይበቃም → 402 insufficient_balance፣ ከጎደለው መጠንና ከተጠቆመ መሙያ ጋር በ error.details (missing፣ suggestedTopUp)። በማንኛውም ስህተት ገንዘብ አይቀነስም። ልዩነቱን ለመክፈል፣ በ purchase ውስጥ ያንኑ ጥያቄ የያዘ መሙያ ይጀምሩ (POST /v1/topups)፤ መሙያው ወደ ሂሳብ እንደተጨመረ እቅዱ ይገዛል።

ማረጋገጫ፦ የAPI ቁልፍ በAuthorization: Bearer API_KEY ራስጌ ውስጥ።

ፓራሜትሮች

ስምበዓይነትአስፈላጊመግለጫ
Idempotency-KeyheaderstringአይደለምPOST በደህንነት እንደገና ለመሞከር ልዩ ቁልፍ (ለምሳሌ UUID)። ለ24 ሰዓት ይቆያል። — እስከ 128 ቁምፊዎች

የጥያቄ አካል

መስክዓይነትአስፈላጊመግለጫ
planIdstringአዎ—
quantityintegerአይደለም1–100፣ ነባሪ 1
optionsobjectአይደለም—
ምሳሌ: የመኖሪያ ኔትወርክ
{
  "planId": "res-10"
}
ምሳሌ: የሞባይል ፖርቶች
{
  "planId": "mob-30d",
  "quantity": 1,
  "options": {
    "country": "AE",
    "carrier": "etisalat",
    "autoRenew": true
  }
}
ምሳሌ: የፖርት ጊዜ ማራዘም
{
  "planId": "mob-7d",
  "options": {
    "portId": "mob_2v8k1q"
  }
}
ምሳሌ: የሞባይል ትራፊክ
{
  "planId": "mgb-10"
}
ምሳሌ: የዞን ፖርት
{
  "planId": "mob-30d",
  "options": {
    "country": "AE",
    "carrier": "etisalat"
  }
}

ምላሽ 201 Created

{
  "id": "ord_4f8k2m9q",
  "status": "completed",
  "productId": "residential",
  "planId": "res-10",
  "planName": "Team",
  "quantity": 1,
  "unitPrice": "5.94",
  "subtotal": "5.94",
  "discount": "0.00",
  "total": "5.94",
  "promoCode": null,
  "currency": "USD",
  "topUpId": null,
  "options": {},
  "fulfillment": {
    "residentialSubscriptionId": "res_9x2m4k",
    "mobilePortIds": []
  },
  "createdAt": "2026-10-05T14:03:11Z",
  "paidAt": "2026-10-05T14:03:11Z"
}

የኮድ ምሳሌዎች

curl
curl -s -X POST "https://africaproxies.com/api/v1/orders" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"planId":"res-10"}'
Python
import os, uuid
import requests

API = "https://africaproxies.com/api/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['API_KEY']}", "Idempotency-Key": str(uuid.uuid4())}

r = requests.post(f"{API}/orders", headers=HEADERS, json={"planId": "res-10"}, timeout=30)
r.raise_for_status()
print(r.json())
Node.js
// Node.js 18+ (built-in fetch), ES module
import { randomUUID } from 'node:crypto';

const API = 'https://africaproxies.com/api/v1';

const res = await fetch(`${API}/orders`, {
  method: 'POST',
  headers: { Authorization: `Bearer ${process.env.API_KEY}`, 'Idempotency-Key': randomUUID(), 'Content-Type': 'application/json' },
  body: JSON.stringify({ planId: 'res-10' }),
});
if (!res.ok) throw new Error((await res.json()).error?.message ?? `HTTP ${res.status}`);
console.log(await res.json());

ትዕዛዞችን ይዘርዝሩ

GET/v1/orders

ማረጋገጫ፦ የAPI ቁልፍ በAuthorization: Bearer API_KEY ራስጌ ውስጥ።

ፓራሜትሮች

ስምበዓይነትአስፈላጊመግለጫ
pagequeryintegerአይደለም≥ 1፣ ነባሪ 1
perPagequeryintegerአይደለም1–100፣ ነባሪ 20
statusquerycompleted · cancelledአይደለምትዕዛዞች የተከፈሉ ሆነው ይፈጠራሉ (ከቀሪ ሂሳብ ይቀነሳሉ)። completed — ተከፍሏልና ቀርቧል (የመግቢያ መረጃዎች ወዲያውኑ ይገኛሉ)።
productIdquerystringአይደለምከካታሎጉ የምርት መለያ። ለ AfricaProxies ያሉ እሴቶች፦ residential (GB)፣ mobile (የተወሰኑ 4G/5G ፖርቶች) እና mobile-gb (በ GB የሚከፈል የሚለዋወጥ 4G/5G ትራፊክ)። የደንበኛ ፕሮግራሞች የማያውቋቸውን እሴቶች መቋቋም አለባቸው።

ምላሽ 200 OK

{
  "data": [
    {
      "id": "ord_4f8k2m9q",
      "status": "completed",
      "productId": "residential",
      "planId": "res-10",
      "planName": "Team",
      "quantity": 1,
      "unitPrice": "5.94",
      "subtotal": "5.94",
      "discount": "0.00",
      "total": "5.94",
      "promoCode": null,
      "currency": "USD",
      "topUpId": null,
      "options": {},
      "fulfillment": {
        "residentialSubscriptionId": "res_9x2m4k",
        "mobilePortIds": []
      },
      "createdAt": "2026-10-05T14:03:11Z",
      "paidAt": "2026-10-05T14:03:11Z"
    }
  ],
  "pagination": {
    "page": 1,
    "perPage": 20,
    "total": 1,
    "totalPages": 1
  }
}

የኮድ ምሳሌዎች

curl
curl -s "https://africaproxies.com/api/v1/orders" \
  -H "Authorization: Bearer $API_KEY"
Python
import os
import requests

API = "https://africaproxies.com/api/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['API_KEY']}"}

r = requests.get(f"{API}/orders", headers=HEADERS, timeout=30)
r.raise_for_status()
print(r.json())
Node.js
// Node.js 18+ (built-in fetch), ES module
const API = 'https://africaproxies.com/api/v1';

const res = await fetch(`${API}/orders`, {
  headers: { Authorization: `Bearer ${process.env.API_KEY}` },
});
if (!res.ok) throw new Error((await res.json()).error?.message ?? `HTTP ${res.status}`);
console.log(await res.json());

ትዕዛዝ ያግኙ

GET/v1/orders/{orderId}

ማረጋገጫ፦ የAPI ቁልፍ በAuthorization: Bearer API_KEY ራስጌ ውስጥ።

ፓራሜትሮች

ስምበዓይነትአስፈላጊመግለጫ
orderIdpathstringአዎ—

ምላሽ 200 OK

{
  "id": "ord_4f8k2m9q",
  "status": "completed",
  "productId": "residential",
  "planId": "res-10",
  "planName": "Team",
  "quantity": 1,
  "unitPrice": "5.94",
  "subtotal": "5.94",
  "discount": "0.00",
  "total": "5.94",
  "promoCode": null,
  "currency": "USD",
  "topUpId": null,
  "options": {},
  "fulfillment": {
    "residentialSubscriptionId": "res_9x2m4k",
    "mobilePortIds": []
  },
  "createdAt": "2026-10-05T14:03:11Z",
  "paidAt": "2026-10-05T14:03:11Z"
}

የኮድ ምሳሌዎች

curl
curl -s "https://africaproxies.com/api/v1/orders/ord_4f8k2m9q" \
  -H "Authorization: Bearer $API_KEY"
Python
import os
import requests

API = "https://africaproxies.com/api/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['API_KEY']}"}

r = requests.get(f"{API}/orders/ord_4f8k2m9q", headers=HEADERS, timeout=30)
r.raise_for_status()
print(r.json())
Node.js
// Node.js 18+ (built-in fetch), ES module
const API = 'https://africaproxies.com/api/v1';

const res = await fetch(`${API}/orders/ord_4f8k2m9q`, {
  headers: { Authorization: `Bearer ${process.env.API_KEY}` },
});
if (!res.ok) throw new Error((await res.json()).error?.message ?? `HTTP ${res.status}`);
console.log(await res.json());

1 GB US$1.23 · ሂሳብ መሙላት ከ US$25 ጀምሮ

1 GB ይምረጡ