プロキシ連携ガイドとREST API
FastProxyのプロキシをコード、ブラウザ、ツールに接続するために必要なすべて:ホスト、ポート、ユーザー名オプション、コピーしてすぐ使える例、そしてREST API。
ゲートウェイとポート
レジデンシャル、モバイル、無制限プランはそれぞれ1つのゲートウェイを使用します。静的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-xx2文字の国コードUSER-country-us-city-nameその国の都市名、小文字、スペースなしUSER-country-de-city-frankfurt-session-name最大60分間同じIPを維持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_ として送信してください。キーはアカウント画面で作成します。キーごとに1分あたり300リクエストまで。
| メソッド | パス | キー | 返金 |
|---|---|---|---|
| GET | /api/v1/plans | いいえ | すべてのプランと、その料金・数量・期間 |
| GET | /api/v1/locations | いいえ | 国・都市と、それぞれで販売されている商品 |
| GET | /api/v1/balance | はい | USD建てのクレジット |
| POST | /api/v1/orders | はい | クレジットでプランを購入:{plan, country} |
| GET | /api/v1/services | はい | ログイン情報、IPリスト、終了日を含むプラン |
| GET | /api/v1/services/{id} | はい | 1つのプラン |
エラー
401
unauthorizedAPIキーがないか、正しくありません。料金は発生しません。402
fundsクレジットがプラン料金を下回っています。請求は発生しません。400
bad_plan / bad_country不明なプラン、または商品が販売されていない国です。料金は発生しません。429
rate_limited1つのキーで1分あたり300件を超えるリクエストです。503
network現在プランを設定できませんでした。料金は発生しません。