Liste ayarlarını sağlayıcıdan kontrol et
GET
/account/api/v1/residential/lists/{id}/checkYetkilendirme
| Authorization | Bearer YOUR_ARNPROXY_API_KEY |
|---|---|
| Gerekli izin | residential_management |
| Accept | application/json |
Parametreler
| Ad | Tür | Açıklama |
|---|---|---|
id | integer | Bu işleme ait kendi kayıt ID’niz; 1–2147483647. Görünen sipariş numarası veya sağlayıcı ID’si değildir. Bağlantı listesi ID’sidir. |
İstek örneği
printf 'Authorization: Bearer %s\n' "$ARNPROXY_API_KEY" |
curl --silent --show-error --header @- \
--header 'Accept: application/json' \
--connect-timeout 10 --max-time 30 \
'https://www.arnproxy.com/account/api/v1/residential/lists/YOUR_LIST_ID/check'Örnekler bu sayfada çalıştırılmaz. API anahtarını sunucu ortam değişkeninde tutun; gerçek anahtarı URL veya tarayıcı koduna yazmayın. POST örnekleri için request.json hazırlayın.
{"curl":"printf \u0027Authorization: Bearer %s\\n\u0027 \u0022$ARNPROXY_API_KEY\u0022 |\n curl --silent --show-error --header @- \\\n --header \u0027Accept: application\/json\u0027 \\\n --connect-timeout 10 --max-time 30 \\\n \u0027https:\/\/www.arnproxy.com\/account\/api\/v1\/residential\/lists\/YOUR_LIST_ID\/check\u0027","python":"import os, requests\n\nheaders = {\u0022Authorization\u0022: \u0022Bearer \u0022 + os.environ[\u0022ARNPROXY_API_KEY\u0022]}\nresponse = requests.get(\n \u0022https:\/\/www.arnproxy.com\/account\/api\/v1\/residential\/lists\/YOUR_LIST_ID\/check\u0022,\n headers=headers,\n timeout=(10, 30), allow_redirects=False\n)\nprint(response.status_code, response.text)\n# No automatic write retry.","javascript":"const headers = { Authorization: `Bearer ${process.env.ARNPROXY_API_KEY}` };\nconst response = await fetch(\u0022https:\/\/www.arnproxy.com\/account\/api\/v1\/residential\/lists\/YOUR_LIST_ID\/check\u0022, {\n method: \u0027GET\u0027, headers, redirect: \u0027error\u0027,\n signal: AbortSignal.timeout(30000)\n});\nconsole.log(response.status, await response.text());\n\/\/ A write timeout is ambiguous; query its saved operation.","php":"\u003C?php\n$headers = [\u0027Accept: application\/json\u0027,\n \u0027Authorization: Bearer \u0027.getenv(\u0027ARNPROXY_API_KEY\u0027)];\n$ch = curl_init(\u0027https:\/\/www.arnproxy.com\/account\/api\/v1\/residential\/lists\/YOUR_LIST_ID\/check\u0027);\ncurl_setopt_array($ch, [\n CURLOPT_RETURNTRANSFER =\u003E true,\n CURLOPT_HTTPHEADER =\u003E $headers,\n CURLOPT_FOLLOWLOCATION =\u003E false,\n CURLOPT_SSL_VERIFYPEER =\u003E true, CURLOPT_SSL_VERIFYHOST =\u003E 2,\n CURLOPT_CONNECTTIMEOUT =\u003E 10, CURLOPT_TIMEOUT =\u003E 30,\n]);\n$result = curl_exec($ch);\nif ($result === false) {\n \/\/ Do not repeat a write; use the original operation key.\n throw new RuntimeException(\u0027Transport result unknown\u0027);\n}\necho curl_getinfo($ch, CURLINFO_HTTP_CODE).PHP_EOL.$result;\ncurl_close($ch);","go":"package main\n\nimport (\n \u0022fmt\u0022\n \u0022io\u0022\n \u0022net\/http\u0022\n \u0022os\u0022\n \u0022time\u0022\n)\n\nfunc main() {\n client := \u0026http.Client{Timeout: 30*time.Second,\n CheckRedirect: func(req *http.Request, via []*http.Request) error {\n return http.ErrUseLastResponse\n }}\n var body io.Reader\n req, err := http.NewRequest(\u0022GET\u0022, \u0022https:\/\/www.arnproxy.com\/account\/api\/v1\/residential\/lists\/YOUR_LIST_ID\/check\u0022, body)\n if err != nil { panic(err) }\n req.Header.Set(\u0022Authorization\u0022, \u0022Bearer \u0022+os.Getenv(\u0022ARNPROXY_API_KEY\u0022))\n res, err := client.Do(req); if err != nil { panic(err) }\n defer res.Body.Close()\n data, err := io.ReadAll(res.Body); if err != nil { panic(err) }\n fmt.Println(res.StatusCode, string(data))\n}","csharp":"using System;\nusing System.IO;\nusing System.Net.Http;\nusing System.Net.Http.Headers;\nusing System.Text;\n\nusing var handler = new HttpClientHandler { AllowAutoRedirect = false };\nusing var client = new HttpClient(handler) { Timeout = TimeSpan.FromSeconds(30) };\nusing var request = new HttpRequestMessage(HttpMethod.Get,\n \u0022https:\/\/www.arnproxy.com\/account\/api\/v1\/residential\/lists\/YOUR_LIST_ID\/check\u0022);\nrequest.Headers.Authorization = new AuthenticationHeaderValue(\n \u0022Bearer\u0022, Environment.GetEnvironmentVariable(\u0022ARNPROXY_API_KEY\u0022));\nusing var response = await client.SendAsync(request);\nConsole.WriteLine((int)response.StatusCode);\nConsole.WriteLine(await response.Content.ReadAsStringAsync());\n\/\/ Never automatically retry an ambiguous write.","java":"import java.net.URI;\nimport java.net.http.*;\nimport java.nio.charset.StandardCharsets;\nimport java.nio.file.*;\n\n\/\/ Inside your application method:\nvar client = HttpClient.newHttpClient();\nvar request = HttpRequest.newBuilder(URI.create(\u0022https:\/\/www.arnproxy.com\/account\/api\/v1\/residential\/lists\/YOUR_LIST_ID\/check\u0022))\n .header(\u0022Authorization\u0022, \u0022Bearer \u0022 + System.getenv(\u0022ARNPROXY_API_KEY\u0022))\n .header(\u0022Accept\u0022, \u0022application\/json\u0022)\n .GET()\n .build();\nvar response = client.send(request, HttpResponse.BodyHandlers.ofString());\nSystem.out.println(response.statusCode());"}Yanıtlar
200Başarılı yanıt
{
"ok": true,
"data": {
"tool": "ARN_RESIDENTIAL_LIST_CHECK_V1",
"list_id": 30001,
"read_only": true,
"diagnostic": {
"http_status": 200,
"curl_errno": 0,
"response_json": true,
"provider_status": "success",
"reason": "LIST_READ_VERIFIED",
"api_version": "v2"
},
"elapsed_ms": 100,
"read_timeout_seconds": 10,
"data_shape": "array",
"items_source": "data",
"items_is_list": true,
"items_count": 1,
"matching_items": 1,
"title_valid": true,
"rotation_valid": true,
"provider_get_attempts": 1,
"provider_post_requests": 0,
"database_changes": 0,
"operation_journal_changes": 0,
"raw_response_included": false,
"customer_values_included": false,
"secret_values_included": false
},
"meta": {
"request_id": "000000000000000000000001",
"phase": "public_v1",
"source": "provider_read_diagnostic"
}
}Yanıt alanları ve türleri
| Ad | Tür | Açıklama |
|---|---|---|
ok | boolean | Başarılı istek zarfı; false ise error.code alanını okuyun. |
data | object | İşleme özel sonuç. Örnekler temsili ve sentetiktir. |
data.tool | string | tool alanının işleme özel değeri; örnekteki türü ve ilgili davranış notlarını esas alın. |
data.list_id | integer | İlgili ARNPROXY kayıt kimliği. Sağlayıcının iç kimliği yerine bunu kullanın. |
data.read_only | boolean | read only alanının işleme özel değeri; örnekteki türü ve ilgili davranış notlarını esas alın. |
data.diagnostic | object | diagnostic alanının işleme özel değeri; örnekteki türü ve ilgili davranış notlarını esas alın. |
data.diagnostic.http_status | integer | http status alanının işleme özel değeri; örnekteki türü ve ilgili davranış notlarını esas alın. |
data.diagnostic.curl_errno | integer | curl errno alanının işleme özel değeri; örnekteki türü ve ilgili davranış notlarını esas alın. |
data.diagnostic.response_json | boolean | response json alanının işleme özel değeri; örnekteki türü ve ilgili davranış notlarını esas alın. |
data.diagnostic.provider_status | string | provider status alanının işleme özel değeri; örnekteki türü ve ilgili davranış notlarını esas alın. |
data.diagnostic.reason | string | Sabit neden kodu veya null. Ham sağlayıcı hata metni değildir. |
data.diagnostic.api_version | string | api version alanının işleme özel değeri; örnekteki türü ve ilgili davranış notlarını esas alın. |
data.elapsed_ms | integer | elapsed ms alanının işleme özel değeri; örnekteki türü ve ilgili davranış notlarını esas alın. |
data.read_timeout_seconds | integer | read timeout seconds alanının işleme özel değeri; örnekteki türü ve ilgili davranış notlarını esas alın. |
data.data_shape | string | data shape alanının işleme özel değeri; örnekteki türü ve ilgili davranış notlarını esas alın. |
data.items_source | string | items source alanının işleme özel değeri; örnekteki türü ve ilgili davranış notlarını esas alın. |
data.items_is_list | boolean | items is list alanının işleme özel değeri; örnekteki türü ve ilgili davranış notlarını esas alın. |
data.items_count | integer | items count alanının işleme özel değeri; örnekteki türü ve ilgili davranış notlarını esas alın. |
data.matching_items | integer | matching items alanının işleme özel değeri; örnekteki türü ve ilgili davranış notlarını esas alın. |
data.title_valid | boolean | title valid alanının işleme özel değeri; örnekteki türü ve ilgili davranış notlarını esas alın. |
data.rotation_valid | boolean | rotation valid alanının işleme özel değeri; örnekteki türü ve ilgili davranış notlarını esas alın. |
data.provider_get_attempts | integer | provider get attempts alanının işleme özel değeri; örnekteki türü ve ilgili davranış notlarını esas alın. |
data.provider_post_requests | integer | provider post requests alanının işleme özel değeri; örnekteki türü ve ilgili davranış notlarını esas alın. |
data.database_changes | integer | database changes alanının işleme özel değeri; örnekteki türü ve ilgili davranış notlarını esas alın. |
data.operation_journal_changes | integer | operation journal changes alanının işleme özel değeri; örnekteki türü ve ilgili davranış notlarını esas alın. |
data.raw_response_included | boolean | raw response included alanının işleme özel değeri; örnekteki türü ve ilgili davranış notlarını esas alın. |
data.customer_values_included | boolean | customer values included alanının işleme özel değeri; örnekteki türü ve ilgili davranış notlarını esas alın. |
data.secret_values_included | boolean | secret values included alanının işleme özel değeri; örnekteki türü ve ilgili davranış notlarını esas alın. |
meta | object | İstek izleme ve veri kaynağı bilgileri. |
meta.request_id | string | Bu HTTP isteğinin kimliği; işlem anahtarı veya sipariş ID’si değildir. |
meta.phase | string | phase alanının işleme özel değeri; örnekteki türü ve ilgili davranış notlarını esas alın. |
meta.source | string | Bu alanın veri kaynağı; yerel kayıt ile canlı sağlayıcı okuması aynı şey değildir. |
Hata yanıtı
{
"ok": false,
"error": { "code": "INVALID_API_KEY" },
"meta": { "request_id": "000000000000000000000001" }
}Kimlik doğrulama ve alan denetimleri işlemi başlamadan reddedebilir. Hata rehberini inceleyin; destek için request_id saklayın. Anahtar veya şifre göndermeyin. Hatalar ve limitler →
Davranış ve önemli notlar
- Paket ve liste kimlikleri ARNPROXY kayıt ID’leridir; sağlayıcının paket anahtarını veya liste ID’sini göndermeyin. Eski paket gözlemi erişim için yeterli değildir; gerekirse residential_package_refresh kullanın.
- Yeni listede login_password veya ip_auth seçilebilir. Yetkili IP listesi 1–20 benzersiz genel IPv4 kabul eder. Liste silmek GB paketini silmez; yalnız o listeye bağlı bağlantılar kapanır.