دليل تكامل البروكسي وREST API
كل ما تحتاجه لربط بروكسيات FastProxy بالكود والمتصفحات والأدوات: المضيفون والمنافذ وخيارات اسم المستخدم وأمثلة جاهزة للنسخ و REST API.
البوابات والمنافذ
تستخدم الخطط السكنية والجوال وغير المحدودة بوّابة واحدة لكل منها. أما خطط ISP الثابتة ومركز البيانات والمشتركة فتأتي كقوائم عناوين IP بمنافذها الخاصة.
بروكسيات سكنية
gw.fastproxy.fitHTTP و HTTPS 7700, SOCKS5 7701
بروكسيات الجوّال
4g.fastproxy.fitHTTP و HTTPS 7800, SOCKS5 7801
بروكسيات سكنية غير محدودة
unl.fastproxy.fitHTTP و HTTPS 7900, SOCKS5 7901
خيارات اسم المستخدم
أضف الخيارات إلى اسم المستخدم من My services. يمكن دمجها بهذا الترتيب.
-country-xxرمز الدولة المكوّن من حرفينUSER-country-us-city-nameالمدينة في تلك الدولة، بأحرف صغيرة، بدون مسافاتUSER-country-de-city-frankfurt-session-nameيحتفظ بنفس عنوان IP لمدة تصل إلى 60 دقيقةUSER-country-gb-session-a1b2أمثلة الكود
استبدل USER وPASS ببيانات دخولك. كل تبويب مثال كامل.
curl -x http://USER-country-us:PASS@gw.fastproxy.fit:7700 https://api.ipify.org
# SOCKS5, sticky for up to 60 minutes
curl -x socks5h://USER-country-de-session-a1:PASS@gw.fastproxy.fit:7701 https://api.ipify.orgimport requests
proxy = "http://USER-country-gb:PASS@gw.fastproxy.fit:7700"
r = requests.get("https://api.ipify.org?format=json",
proxies={"http": proxy, "https": proxy}, timeout=30)
print(r.json())import { ProxyAgent, fetch } from "undici";
const agent = new ProxyAgent("http://USER-country-jp:PASS@gw.fastproxy.fit:7700");
const res = await fetch("https://api.ipify.org?format=json", { dispatcher: agent });
console.log(await res.json());from playwright.sync_api import sync_playwright
with sync_playwright() as p:
browser = p.chromium.launch(proxy={
"server": "http://gw.fastproxy.fit:7700",
"username": "USER-country-fr-city-paris",
"password": "PASS",
})
page = browser.new_page()
page.goto("https://api.ipify.org")
print(page.content())# settings.py
DOWNLOADER_MIDDLEWARES = {
"scrapy.downloadermiddlewares.httpproxy.HttpProxyMiddleware": 110,
}
# in your spider
yield scrapy.Request(url, meta={
"proxy": "http://USER-country-us:PASS@gw.fastproxy.fit:7700"
})# list plans (no key needed)
curl https://fastproxy.fit/api/v1/plans
# buy a plan from credit
curl -X POST https://fastproxy.fit/api/v1/orders \
-H "Authorization: Bearer pvk_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"plan":"isp-25","country":"us"}'
# your services and logins
curl https://fastproxy.fit/api/v1/services -H "Authorization: Bearer pvk_YOUR_KEY"REST API
عنوان URL الأساسي https://fastproxy.fit/api/v1. أرسل المفتاح كـ Authorization: Bearer pvk_. أنشئ المفتاح في منطقة الحساب. 300 طلب في الدقيقة لكل مفتاح.
| الطريقة | المسار | Key | الإرجاع |
|---|---|---|---|
| GET | /api/v1/plans | لا | كل خطة مع سعرها وكميتها ومدتها |
| GET | /api/v1/locations | لا | الدول والمدن والمنتجات المباعة في كل منها |
| GET | /api/v1/balance | نعم | رصيدك بالدولار الأمريكي |
| POST | /api/v1/orders | نعم | اشترِ خطة من الرصيد: {plan, country} |
| GET | /api/v1/services | نعم | خططك مع بيانات الدخول وقوائم عناوين IP وتواريخ الانتهاء |
| GET | /api/v1/services/{id} | نعم | خطة واحدة |
الأخطاء
401
unauthorizedمفتاح API مفقود أو خاطئ. لا يتم خصم أي مبلغ.402
fundsالرصيد أقل من سعر الخطة. لا يُخصم أي مبلغ.400
bad_plan / bad_countryخطة غير معروفة، أو دولة لا يُباع فيها المنتج. لا يتم خصم أي مبلغ.429
rate_limitedأكثر من 300 طلب في الدقيقة على مفتاح واحد.503
networkتعذّر إعداد الخطة الآن. لا يتم خصم أي مبلغ.