List products and prices
curl --request GET \
--url https://app.proxy-layer.com/api/v1/catalogconst options = {method: 'GET'};
fetch('https://app.proxy-layer.com/api/v1/catalog', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.proxy-layer.com/api/v1/catalog"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.proxy-layer.com/api/v1/catalog', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"currency": "USD",
"products": [
{
"slug": "isp",
"type": "ISP",
"name": "ISP",
"billingMode": "FIXED",
"durationsDays": [
30,
90
],
"countries": [
{
"code": "US",
"name": "United States"
}
],
"prices": [
{
"ruleType": "BASE",
"durationDays": 30,
"countryCode": null,
"minQuantity": 1,
"maxQuantity": null,
"minTrafficGb": null,
"maxTrafficGb": null,
"unitAmountCents": 500,
"packageAmountCents": null,
"currency": "USD"
}
]
}
],
"limits": {
"maxProxyQuantity": 500,
"maxResidentialTrafficGb": 5000
}
}购买代理
产品目录
Public catalog of products, countries, terms, prices, and purchase limits.
GET
/
api
/
v1
/
catalog
List products and prices
curl --request GET \
--url https://app.proxy-layer.com/api/v1/catalogconst options = {method: 'GET'};
fetch('https://app.proxy-layer.com/api/v1/catalog', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.proxy-layer.com/api/v1/catalog"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.proxy-layer.com/api/v1/catalog', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"currency": "USD",
"products": [
{
"slug": "isp",
"type": "ISP",
"name": "ISP",
"billingMode": "FIXED",
"durationsDays": [
30,
90
],
"countries": [
{
"code": "US",
"name": "United States"
}
],
"prices": [
{
"ruleType": "BASE",
"durationDays": 30,
"countryCode": null,
"minQuantity": 1,
"maxQuantity": null,
"minTrafficGb": null,
"maxTrafficGb": null,
"unitAmountCents": 500,
"packageAmountCents": null,
"currency": "USD"
}
]
}
],
"limits": {
"maxProxyQuantity": 500,
"maxResidentialTrafficGb": 5000
}
}将返回的
slug、countries[].code 和 durationsDays 用于 查询价格——库存和价格可能随时间变化。