# Proxy với IP thành phố cụ thể: tham số thành phố

> Cách lấy proxy với IP thành phố cụ thể ở châu Á và châu Đại Dương: thêm -city-<name> vào tên người dùng. Mọi gói, không phụ phí, từ 1,88 US$ mỗi GB. Không cần KYC.

- URL: https://banyanproxies.com/vi/targeting/city/
- Cập nhật lần cuối: 2026-10-18
- Publisher: Banyan Proxies (https://banyanproxies.com)

Một đoạn tên người dùng chọn thành phố. Trang này cung cấp định dạng chính xác, ví dụ đã kiểm thử bằng curl, Python và Node.js, và cách xử lý khi một thành phố không có IP online.

**Câu trả lời nhanh — Làm sao để lấy proxy với IP thành phố cụ thể ở châu Á?**

Với Banyan Proxies, thêm `-city-` và tên thành phố vào tên người dùng proxy sau mã quốc gia, ví dụ `USERNAME-country-in-city-mumbai` hoặc `USERNAME-country-ph-city-cebu_city`. Nhắm mục tiêu theo thành phố nằm trong mọi gói không phụ phí, từ 1,88 US$ cho 1 GB (tháng 10 năm 2026). Tình trạng sẵn có theo thành phố có thể thay đổi; trang thanh toán hiển thị những gì đang online. Không cần KYC, chỉ thanh toán bằng crypto.

## Nhắm mục tiêu theo thành phố bao gồm những gì?

| Thuộc tính | Giá trị |
| --- | --- |
| Các cấp nhắm mục tiêu | Nhắm mục tiêu theo quốc gia và thành phố trên mọi gói; nhắm mục tiêu theo ASN không mất thêm phí. Tính khả dụng của thành phố thay đổi |
| Định dạng tên người dùng | `USERNAME-country-{cc}-city-{city}-asn-{asn}-session-{id}-ttl-{minutes}` |
| Tên thành phố | Tên tiếng Anh viết thường, dùng gạch dưới cho khoảng trắng: `kuala_lumpur`, `ho_chi_minh_city`, `gold_coast` |
| Áp dụng cho | Mọi gói proxy dân cư, từ 1 GB với 1,88 US$ |
| Gateway | `gw.banyanproxies.com`, cổng 7777 (HTTP/HTTPS) hoặc 7778 (SOCKS5) |
| Phiên sticky | tối đa 30 phút (IP có thể thay đổi sớm hơn) |
| Khả dụng | Tính khả dụng của thành phố thay đổi; trang thanh toán hiển thị những gì đang online |
| Đã cập nhật | 18 tháng 10 năm 2026 |

## Tên người dùng theo thành phố được tạo như thế nào?

Tên người dùng là một chuỗi các phân đoạn nối với nhau bằng dấu gạch nối. Định dạng đầy đủ là `USERNAME-country-{cc}-city-{city}-asn-{asn}-session-{id}-ttl-{minutes}`; chỉ dùng những phân đoạn bạn cần, theo đúng thứ tự đó.

- `USERNAME-country-in-city-bengaluru`: bất kỳ IP nhà riêng nào ở Bengaluru, một IP mới mỗi lần kết nối.
- `USERNAME-country-id-city-surabaya`: Surabaya, Đông Java.
- `USERNAME-country-vn-city-ho_chi_minh_city`: Thành phố Hồ Chí Minh; dấu cách được thay bằng dấu gạch dưới.
- `USERNAME-country-au-city-gold_coast-session-gc1-ttl-15`: một IP Gold Coast được giữ trong 15 phút.
- `USERNAME-country-pk-city-lahore-asn-17557`: Lahore trên mạng của PTCL (AS17557).

Mã quốc gia là mã ISO hai chữ cái viết thường. Luôn gửi kèm quốc gia với thành phố: Hyderabad có ở cả Ấn Độ và Pakistan, và `country-pk-city-hyderabad` không phải là cùng một nơi với `country-in-city-hyderabad`.

## Làm sao để viết tên thành phố có hai tên hoặc có dấu?

Dùng tên tiếng Anh thuần không dấu, như hiển thị trên trang của từng thành phố: `bengaluru`, `chattogram`, `george_town`. Một số thành phố còn có tên cũ, chẳng hạn Bangalore hoặc Chittagong. Nếu cách viết trên trang không trả về IP nào trong khi quốc gia vẫn hoạt động, hãy thử tên cũ và báo cho bộ phận hỗ trợ để chúng tôi sửa lại trang. [Danh mục thành phố](https://banyanproxies.com/vi/cities/) liệt kê mọi cách viết mà chúng tôi công bố.

## Làm sao để kiểm tra IP thành phố bằng curl, Python và Node.js?

Gửi một yêu cầu qua gateway và in ra IP thoát cùng vị trí mà dịch vụ tra cứu của bạn báo cáo. Hãy dùng dịch vụ tra cứu mà bạn được phép gọi; các ví dụ dùng endpoint công khai của ipinfo.io.

*curl: IP Jakarta xoay vòng và cố định*

```bash
# Rotating Jakarta IP over HTTP
curl -x http://gw.banyanproxies.com:7777 \
  -U "USERNAME-country-id-city-jakarta:PASSWORD" \
  https://ipinfo.io/json

# One Jakarta IP kept for 10 minutes, over SOCKS5
curl --socks5-hostname gw.banyanproxies.com:7778 \
  -U "USERNAME-country-id-city-jakarta-session-jkt1-ttl-10:PASSWORD" \
  https://ipinfo.io/json
```

*Python (requests): một yêu cầu cho mỗi thành phố*

```python
import requests

HOST = "gw.banyanproxies.com"
PORT = 7777

cities = {
    "in": "mumbai",
    "th": "chiang_mai",
    "au": "perth",
}

for country, city in cities.items():
    user = f"USERNAME-country-{country}-city-{city}"
    proxy = f"http://{user}:PASSWORD@{HOST}:{PORT}"
    try:
        r = requests.get(
            "https://ipinfo.io/json",
            proxies={"http": proxy, "https": proxy},
            timeout=30,
        )
        info = r.json()
        print(city, info.get("ip"), info.get("city"), info.get("region"))
    except requests.RequestException as exc:
        print(city, "failed:", exc)
```

*Node.js 18+ (undici ProxyAgent): một IP Manila*

```javascript
// npm install undici
const { ProxyAgent, fetch } = require("undici");

const user = "USERNAME-country-ph-city-manila";
const token = Buffer.from(`${user}:PASSWORD`).toString("base64");
const agent = new ProxyAgent({
  uri: "http://gw.banyanproxies.com:7777",
  token: `Basic ${token}`,
});

fetch("https://ipinfo.io/json", { dispatcher: agent })
  .then((res) => res.json())
  .then((info) => console.log(info.ip, info.city, info.region))
  .catch((err) => console.error("failed:", err.message));
```

## Điều gì xảy ra khi không có IP nào trực tuyến ở một thành phố?

Một thành phố nhỏ có thể có ít hoặc không có thiết bị nhà riêng nào trực tuyến tại một thời điểm. Luôn kiểm tra thành phố thoát của IP bạn nhận được, sau đó:

1. Thử lại sau vài phút: thiết bị nhà riêng bật và tắt trong suốt cả ngày.
2. Dùng một thành phố lân cận từ cùng trang, ví dụ Rawalpindi thay cho Islamabad.
3. Bỏ phân đoạn `-city-` và giữ lại quốc gia, nếu công việc cho phép.

Tính khả dụng của thành phố thay đổi; trang thanh toán hiển thị những gì đang online.

## Mọi trang web có thấy được thành phố tôi yêu cầu không?

Không phải lúc nào cũng vậy. Các trang web gán vị trí cho IP theo cơ sở dữ liệu địa lý của riêng họ, và các cơ sở dữ liệu không đồng nhất với nhau, nhất là gần ranh giới thành phố: một thiết bị ở Gurugram có thể hiện là Delhi, một thiết bị ở Petaling Jaya có thể hiện là Kuala Lumpur. [Hướng dẫn kiểm tra thành phố](https://banyanproxies.com/vi/guides/verify-proxy-city/) chỉ cách kiểm tra cơ sở dữ liệu mà mục tiêu của bạn dùng trước khi chạy một chiến dịch lớn.

## Tôi có thể nhắm mục tiêu những thành phố nào?

Mỗi trang trong số 70 trang thành phố đều ghi rõ tham số chính xác, các ISP địa phương và múi giờ.

- [Mumbai](https://banyanproxies.com/vi/residential-proxies/mumbai/) — Maharashtra
- [Delhi](https://banyanproxies.com/vi/residential-proxies/delhi/) — National Capital Territory of Delhi
- [Bengaluru](https://banyanproxies.com/vi/residential-proxies/bengaluru/) — Karnataka
- [Hyderabad](https://banyanproxies.com/vi/residential-proxies/hyderabad/) — Telangana
- [Chennai](https://banyanproxies.com/vi/residential-proxies/chennai/) — Tamil Nadu
- [Kolkata](https://banyanproxies.com/vi/residential-proxies/kolkata/) — West Bengal
- [Pune](https://banyanproxies.com/vi/residential-proxies/pune/) — Maharashtra
- [Ahmedabad](https://banyanproxies.com/vi/residential-proxies/ahmedabad/) — Gujarat
- [Jaipur](https://banyanproxies.com/vi/residential-proxies/jaipur/) — Rajasthan
- [Surat](https://banyanproxies.com/vi/residential-proxies/surat/) — Gujarat
- [Lucknow](https://banyanproxies.com/vi/residential-proxies/lucknow/) — Uttar Pradesh
- [Kochi](https://banyanproxies.com/vi/residential-proxies/kochi/) — Kerala
- [Chandigarh](https://banyanproxies.com/vi/residential-proxies/chandigarh/) — Chandigarh
- [Indore](https://banyanproxies.com/vi/residential-proxies/indore/) — Madhya Pradesh
- [Jakarta](https://banyanproxies.com/vi/residential-proxies/jakarta/) — Jakarta Special Capital Region
- [Surabaya](https://banyanproxies.com/vi/residential-proxies/surabaya/) — East Java
- [Bandung](https://banyanproxies.com/vi/residential-proxies/bandung/) — West Java
- [Medan](https://banyanproxies.com/vi/residential-proxies/medan/) — North Sumatra
- [Semarang](https://banyanproxies.com/vi/residential-proxies/semarang/) — Central Java
- [Makassar](https://banyanproxies.com/vi/residential-proxies/makassar/) — South Sulawesi
- [Denpasar](https://banyanproxies.com/vi/residential-proxies/denpasar/) — Bali
- [Yogyakarta](https://banyanproxies.com/vi/residential-proxies/yogyakarta/) — Special Region of Yogyakarta
- [Manila](https://banyanproxies.com/vi/residential-proxies/manila/) — Metro Manila
- [Quezon City](https://banyanproxies.com/vi/residential-proxies/quezon-city/) — Metro Manila
- [Makati](https://banyanproxies.com/vi/residential-proxies/makati/) — Metro Manila
- [Cebu City](https://banyanproxies.com/vi/residential-proxies/cebu-city/) — Central Visayas
- [Davao City](https://banyanproxies.com/vi/residential-proxies/davao-city/) — Davao Region
- [Bangkok](https://banyanproxies.com/vi/residential-proxies/bangkok/) — Bangkok Metropolitan Administration
- [Chiang Mai](https://banyanproxies.com/vi/residential-proxies/chiang-mai/) — Chiang Mai city municipality , Mueang Chiang Mai district, Chiang Mai province
- [Phuket](https://banyanproxies.com/vi/residential-proxies/phuket/) — Phuket province
- [Pattaya](https://banyanproxies.com/vi/residential-proxies/pattaya/) — Pattaya City , Bang Lamung district, Chonburi province
- [Khon Kaen](https://banyanproxies.com/vi/residential-proxies/khon-kaen/) — Khon Kaen city municipality, Mueang Khon Kaen district, Khon Kaen province
- [Ho Chi Minh City](https://banyanproxies.com/vi/residential-proxies/ho-chi-minh-city/) — Ho Chi Minh City
- [Hanoi](https://banyanproxies.com/vi/residential-proxies/hanoi/) — Hanoi
- [Da Nang](https://banyanproxies.com/vi/residential-proxies/da-nang/) — Da Nang
- [Hai Phong](https://banyanproxies.com/vi/residential-proxies/hai-phong/) — Hai Phong
- [Can Tho](https://banyanproxies.com/vi/residential-proxies/can-tho/) — Can Tho
- [Kuala Lumpur](https://banyanproxies.com/vi/residential-proxies/kuala-lumpur/) — Federal Territory of Kuala Lumpur
- [George Town](https://banyanproxies.com/vi/residential-proxies/george-town/) — Penang
- [Johor Bahru](https://banyanproxies.com/vi/residential-proxies/johor-bahru/) — Johor
- [Shah Alam](https://banyanproxies.com/vi/residential-proxies/shah-alam/) — Selangor
- [Kota Kinabalu](https://banyanproxies.com/vi/residential-proxies/kota-kinabalu/) — Sabah
- [Karachi](https://banyanproxies.com/vi/residential-proxies/karachi/) — Karachi Division, Sindh province
- [Lahore](https://banyanproxies.com/vi/residential-proxies/lahore/) — Lahore District, Punjab province
- [Islamabad](https://banyanproxies.com/vi/residential-proxies/islamabad/) — Islamabad Capital Territory
- [Rawalpindi](https://banyanproxies.com/vi/residential-proxies/rawalpindi/) — Rawalpindi District, Punjab province
- [Faisalabad](https://banyanproxies.com/vi/residential-proxies/faisalabad/) — Faisalabad District, Punjab province
- [Peshawar](https://banyanproxies.com/vi/residential-proxies/peshawar/) — Peshawar District, Khyber Pakhtunkhwa province
- [Dhaka](https://banyanproxies.com/vi/residential-proxies/dhaka/) — Dhaka Division
- [Chittagong](https://banyanproxies.com/vi/residential-proxies/chittagong/) — Chittagong Division, Chittagong District
- [Khulna](https://banyanproxies.com/vi/residential-proxies/khulna/) — Khulna Division, Khulna District
- [Colombo](https://banyanproxies.com/vi/residential-proxies/colombo/) — Western Province, Colombo District
- [Kandy](https://banyanproxies.com/vi/residential-proxies/kandy/) — Central Province, Kandy District
- [Kathmandu](https://banyanproxies.com/vi/residential-proxies/kathmandu/) — Bagmati Province, Kathmandu District
- [Pokhara](https://banyanproxies.com/vi/residential-proxies/pokhara/) — Gandaki Province, Kaski District
- [Phnom Penh](https://banyanproxies.com/vi/residential-proxies/phnom-penh/) — Phnom Penh Capital
- [Siem Reap](https://banyanproxies.com/vi/residential-proxies/siem-reap/) — Siem Reap municipality , Siem Reap province
- [Singapore](https://banyanproxies.com/vi/residential-proxies/singapore/) — Republic of Singapore (city-state
- [Sydney](https://banyanproxies.com/vi/residential-proxies/sydney/) — New South Wales
- [Melbourne](https://banyanproxies.com/vi/residential-proxies/melbourne/) — Victoria
- [Brisbane](https://banyanproxies.com/vi/residential-proxies/brisbane/) — Queensland
- [Perth](https://banyanproxies.com/vi/residential-proxies/perth/) — Western Australia
- [Adelaide](https://banyanproxies.com/vi/residential-proxies/adelaide/) — South Australia
- [Gold Coast](https://banyanproxies.com/vi/residential-proxies/gold-coast/) — Queensland
- [Canberra](https://banyanproxies.com/vi/residential-proxies/canberra/) — Australian Capital Territory
- [Hobart](https://banyanproxies.com/vi/residential-proxies/hobart/) — Tasmania
- [Auckland](https://banyanproxies.com/vi/residential-proxies/auckland/) — Auckland Region
- [Wellington](https://banyanproxies.com/vi/residential-proxies/wellington/) — Wellington Region
- [Christchurch](https://banyanproxies.com/vi/residential-proxies/christchurch/) — Canterbury Region
- [Hamilton](https://banyanproxies.com/vi/residential-proxies/hamilton/) — Waikato Region

## Tôi nên đọc gì tiếp theo?

Thiết lập phiên với [hướng dẫn proxy dân cư cố định](https://banyanproxies.com/vi/guides/sticky-sessions/), sao chép mã máy khách từ [tài liệu](https://banyanproxies.com/vi/docs/), và tra cứu các thuật ngữ như ASN hoặc CGNAT trong [bảng thuật ngữ](https://banyanproxies.com/vi/glossary/). Mọi hướng dẫn khác đều được liệt kê trên [trang hướng dẫn](https://banyanproxies.com/vi/guides/).

## Người mua còn hỏi gì về nhắm mục tiêu theo thành phố?

### Nhắm mục tiêu theo thành phố có phụ phí không?

Không. Nhắm mục tiêu theo thành phố được bao gồm trong mọi gói proxy dân cư Banyan Proxies, từ 1,88 US$ cho 1 GB đến 0,50 US$/GB trên 1 TB. Để so sánh, DataImpulse ghi rõ rằng lưu lượng nhắm theo thành phố bị tính gấp đôi mức giá tiêu chuẩn (đọc ngày 18 tháng 10 năm 2026).

### Tôi có thể nhắm mục tiêu theo mã bưu chính hoặc quận không?

Không. Nhắm mục tiêu chỉ dừng ở cấp thành phố. Mã bưu chính vẫn hữu ích bên trong trang mục tiêu, ví dụ để đặt địa chỉ giao hàng trên sàn thương mại điện tử sau khi trang tải từ đúng thành phố.

### Tôi có thể kết hợp thành phố và ASN không?

Có: `USERNAME-country-my-city-kuala_lumpur-asn-4788` yêu cầu một IP Kuala Lumpur trên mạng của TM. Mỗi bộ lọc thu hẹp tập IP khớp, nên hãy kiểm tra trước khi mở rộng quy mô. Xem [nhắm mục tiêu theo ASN](https://banyanproxies.com/vi/targeting/asn/).

### Tôi có thể giữ một IP thành phố trong bao lâu?

Phiên dính giữ nguyên một IP trong khoảng thời gian bạn đặt (ttl, tính bằng phút), tối đa 30 phút. IP có thể thay đổi sớm hơn, ví dụ nếu thiết bị dân cư offline. Thêm `-session-<id>-ttl-<minutes>` sau phân đoạn thành phố.

### Có thành phố nào bạn không hỗ trợ không?

Chỉ những thành phố 70 có trang mới được ghi tài liệu, nhưng tham số chấp nhận các thành phố khác trong cùng 14 quốc gia. Tình trạng sẵn có của thành phố thay đổi; trang thanh toán hiển thị những gì đang trực tuyến. Đông Á và Trung Quốc đại lục không được hỗ trợ.

**Chọn thành phố, thanh toán bằng crypto** Nhắm mục tiêu theo thành phố trên mọi gói từ 1,88 US$. Không cần KYC: không ID, không ảnh selfie, không giấy tờ. [Xem bảng giá](https://banyanproxies.com/vi/pricing/)

## Những thông tin này đến từ đâu?

1. [Tham số thành phố của DataImpulse (lưu lượng theo thành phố bị tính gấp đôi mức giá tiêu chuẩn)](https://docs.dataimpulse.com/proxies/parameters/city.md) — DataImpulse (2026-10-18)
2. [Tài liệu undici ProxyAgent](https://undici.nodejs.org/#/docs/api/ProxyAgent) — Node.js undici
3. [API ipinfo.io](https://ipinfo.io/developers) — IPinfo

---

Banyan Proxies: Banyan Proxies là nhà cung cấp proxy dân cư cho các thành phố trên khắp Nam Á, Đông Nam Á và Châu Đại Dương, thanh toán bằng crypto mà không cần tải ID lên: IP nhà riêng được nhắm mục tiêu theo thành phố ở Mumbai, Jakarta, Manila, Bangkok, Karachi, Sydney và nhiều nơi khác, tính phí theo GB.
