Download latest list of registered domains for .TW zone

324,512 registered domains — Last update: 04 Jul 2026

.TW domain list file

Domain list for .TW zone - full list of registered domain names for the zone

  • Daily updated data — last update: 04 Jul 2026
  • Total domains in the list: 324,512
  • File size: 1.2 MB
  • Download from website (with one mouse click!)
  • Download via simple HTTP REST API (automate!)

Sample data: Show

Contents

1. Quick Facts

Total Zone Volume
324,512
Registered domains
New Today
0
Registrations / 24h
Daily Churn
0
Expired domains / 24h

2. Daily Domain Statistics - Last 90 days

Date Total domains New Deleted
2026-07-04 324,512 0 0
2026-07-03 324,512 0 0
2026-07-02 324,512 0 0
2026-07-01 324,512 0 0
2026-06-30 324,512 0 0
2026-06-29 324,512 0 0
2026-06-28 324,512 0 0
2026-06-27 324,512 0 0
2026-06-26 324,512 0 0
2026-06-25 324,512 0 0
2026-06-24 324,512 0 0
2026-06-23 324,512 + 5 0
2026-06-22 324,507 + 59 0
2026-06-21 324,448 + 20 0
2026-06-20 324,428 + 2 0
2026-06-19 324,426 + 511 0
2026-06-18 323,915 0 0
2026-06-17 323,915 + 43 0
2026-06-16 323,872 + 1 0
2026-06-15 323,871 + 37 0
2026-06-14 323,834 + 15 0
2026-06-13 323,819 + 18 0
2026-06-12 323,801 0 0
2026-06-11 323,801 + 270 0
2026-06-10 323,531 + 286 0
2026-06-09 323,245 0 0
2026-06-08 323,245 + 61 0
2026-06-07 323,184 + 17 0
2026-06-06 323,167 + 30 0
2026-06-05 323,137 + 389 0
2026-06-04 322,748 + 24 0
2026-06-03 322,724 + 18 0
2026-06-02 322,706 0 0
2026-06-01 322,706 + 52 0
2026-05-31 322,654 + 23 0
2026-05-30 322,631 + 33 0
2026-05-29 322,598 + 1 0
2026-05-28 322,597 + 31 0
2026-05-27 322,566 + 26 0
2026-05-26 322,540 + 23 0
2026-05-25 322,517 + 10 0
2026-05-24 322,507 + 71 0
2026-05-23 322,436 + 10 0
2026-05-22 322,426 + 7 0
2026-05-21 322,419 + 6 0
2026-05-20 322,413 + 32 0
2026-05-19 322,381 + 330 0
2026-05-18 322,051 0 0
2026-05-17 322,051 + 36 0
2026-05-16 322,015 + 26 0
2026-05-15 321,989 + 258 0
2026-05-14 321,731 + 27 0
2026-05-13 321,704 0 0
2026-05-12 321,704 + 2 0
2026-05-11 321,702 + 39 0
2026-05-10 321,663 0 0
2026-05-09 321,663 + 31 0
2026-05-08 321,632 + 38 0
2026-05-07 321,594 + 8 0
2026-05-06 321,586 + 191 0
2026-05-05 321,395 + 549 0
2026-05-04 320,846 0 0
2026-05-03 320,846 + 70 0
2026-05-02 320,776 + 17 0
2026-05-01 320,759 + 21 0
2026-04-30 320,738 + 35 0
2026-04-29 320,703 + 53 0
2026-04-28 320,650 + 100 0
2026-04-27 320,550 + 117 0
2026-04-25 320,433 + 32 0
2026-04-24 320,401 0 0
2026-04-23 320,401 + 110 0
2026-04-22 320,291 + 61 0
2026-04-21 320,230 + 10 0
2026-04-20 320,220 0 0
2026-04-19 320,220 + 319 0
2026-04-18 319,901 + 23 0
2026-04-17 319,878 0 0
2026-04-16 319,878 + 16 0
2026-04-15 319,862 + 256 0
2026-04-14 319,606 + 15 0
2026-04-13 319,591 0 0
2026-04-12 319,591 + 17 0
2026-04-11 319,574 + 28 0
2026-04-10 319,546 + 1 0
2026-04-09 319,545 + 9 0
2026-04-08 319,536 + 39 0
2026-04-07 319,497 + 13 0
2026-04-06 319,484 0 0
2026-04-05 319,484 + 3 0

3. Zone Details: .tw

The .tw domain is Taiwan’s official country-code top-level domain, administered by the Taiwan Network Information Center (TWNIC). Registrations are available at the second level and in established third-level categories such as com.tw, org.tw, edu.tw, and gov.tw; certain categories have eligibility or documentation requirements tied to local presence or institutional status.

Businesses, media outlets, educational institutions, non-profits, and government agencies commonly use .tw to signal a Taiwan-based operation and to build credibility with local users. Choosing .tw communicates geographic relevance for Taiwanese audiences, supports local-brand recognition, and can contribute to more effective regional search visibility compared with generic global TLDs.

Organizations registering a .tw name should review category-specific rules and verification steps offered by registrars. For brand protection consider registering appropriate second-level names and common alternative TLDs to avoid confusion and preserve search presence; many international and local registrars provide .tw services and guidance.

Related zones:

Zone Name tw
Zone Type ccTLD
Assigned by IANA YES
Public registrations allowed YES
WHOIS Server whois.twnic.net.tw
RDAP Server
Managing Organization Taiwan Network Information Center (TWNIC)
Organization Address 3F., No. 123, Sec. 4, Bade Rd.
Songshan Dist.
Taipei 105
Taiwan

4. Historical Domain Lists for .tw zone

Access the archive of historical .TW domain lists and analyze how domains in the .TW namespace have evolved over time. Historical domain data helps researchers and engineers study domain growth, DNS infrastructure changes, and long-term internet trends.

Date Domains File Size Download
2026-07-04 324,512 1.2 MB Download
2026-07-03 324,512 1.2 MB Download
2026-07-02 324,512 1.2 MB Download
2026-07-01 324,512 1.2 MB Download
2026-06-30 324,512 1.2 MB Download
2026-06-29 324,512 1.2 MB Download
2026-06-28 324,512 1.2 MB Download
2026-06-27 324,512 1.2 MB Download
2026-06-26 324,512 1.2 MB Download
2026-06-25 324,512 1.2 MB Download
2026-06-24 324,512 1.2 MB Download
2026-06-23 324,512 1.2 MB Download
2026-06-22 324,507 1.2 MB Download
2026-06-21 324,448 1.2 MB Download
2026-06-20 324,428 1.2 MB Download
2026-06-19 324,426 1.2 MB Download
2026-06-18 323,915 1.2 MB Download
2026-06-17 323,915 1.2 MB Download
2026-06-16 323,872 1.2 MB Download
2026-06-15 323,871 1.2 MB Download
2026-06-14 323,834 1.2 MB Download
2026-06-13 323,819 1.2 MB Download
2026-06-12 323,801 1.2 MB Download
2026-06-11 323,801 1.2 MB Download
2026-06-10 323,531 1.2 MB Download
2026-06-09 323,245 1.2 MB Download
2026-06-08 323,245 1.2 MB Download
2026-06-07 323,184 1.2 MB Download
2026-06-06 323,167 1.2 MB Download
2026-06-05 323,137 1.2 MB Download
2026-06-04 322,748 1.2 MB Download
2026-06-03 322,724 1.2 MB Download
2026-06-02 322,706 1.2 MB Download
2026-06-01 322,706 1.2 MB Download
2026-05-31 322,654 1.2 MB Download
2026-05-30 322,631 1.2 MB Download
2026-05-29 322,598 1.2 MB Download
2026-05-28 322,597 1.2 MB Download
2026-05-27 322,566 1.2 MB Download
2026-05-26 322,540 1.2 MB Download
2026-05-25 322,517 1.2 MB Download
2026-05-24 322,507 1.2 MB Download
2026-05-23 322,436 1.2 MB Download
2026-05-22 322,426 1.2 MB Download
2026-05-21 322,419 1.2 MB Download
2026-05-20 322,413 1.2 MB Download
2026-05-19 322,381 1.2 MB Download
2026-05-18 322,051 1.2 MB Download
2026-05-17 322,051 1.2 MB Download
2026-05-16 322,015 1.2 MB Download
2026-05-15 321,989 1.2 MB Download
2026-05-14 321,731 1.2 MB Download
2026-05-13 321,704 1.2 MB Download
2026-05-12 321,704 1.2 MB Download
2026-05-11 321,702 1.2 MB Download
2026-05-10 321,663 1.2 MB Download
2026-05-09 321,663 1.2 MB Download
2026-05-08 321,632 1.2 MB Download
2026-05-07 321,594 1.2 MB Download
2026-05-06 321,586 1.2 MB Download
2026-05-05 321,395 1.2 MB Download
2026-05-04 320,846 1.2 MB Download
2026-05-03 320,846 1.2 MB Download
2026-05-02 320,776 1.2 MB Download
2026-05-01 320,759 1.2 MB Download
2026-04-30 320,738 1.2 MB Download
2026-04-29 320,703 1.2 MB Download
2026-04-28 320,650 1.2 MB Download
2026-04-27 320,550 1.2 MB Download
2026-04-25 320,433 1.2 MB Download
2026-04-24 320,401 1.2 MB Download
2026-04-23 320,401 1.2 MB Download
2026-04-22 320,291 1.2 MB Download
2026-04-21 320,230 1.2 MB Download
2026-04-20 320,220 1.2 MB Download
2026-04-19 320,220 1.2 MB Download
2026-04-18 319,901 1.2 MB Download
2026-04-17 319,878 1.2 MB Download
2026-04-16 319,878 1.2 MB Download
2026-04-15 319,862 1.2 MB Download
2026-04-14 319,606 1.2 MB Download
2026-04-13 319,591 1.2 MB Download
2026-04-12 319,591 1.2 MB Download
2026-04-11 319,574 1.2 MB Download
2026-04-10 319,546 1.2 MB Download
2026-04-09 319,545 1.2 MB Download
2026-04-08 319,536 1.2 MB Download
2026-04-07 319,497 1.2 MB Download
2026-04-06 319,484 1.2 MB Download
2026-04-05 319,484 1.2 MB Download
2026-04-04 319,481 1.2 MB Download
2026-04-03 319,120 1.2 MB Download
2026-04-02 319,080 1.2 MB Download
2026-04-01 318,882 1.2 MB Download
2026-03-31 318,882 1.2 MB Download
2026-03-30 318,811 1.2 MB Download
2026-03-29 318,767 1.2 MB Download
2026-03-28 318,753 1.2 MB Download
2026-03-27 318,729 1.2 MB Download
2026-03-26 318,716 1.2 MB Download
2026-03-25 318,699 1.2 MB Download
2026-03-24 318,662 1.2 MB Download
2026-03-23 318,647 1.2 MB Download
2026-03-22 318,546 1.2 MB Download
2026-03-21 318,546 1.2 MB Download
2026-03-20 318,546 1.2 MB Download
2026-03-19 318,546 1.2 MB Download
2026-03-18 318,525 1.2 MB Download
2026-03-17 318,343 1.2 MB Download
2026-03-16 317,519 1.2 MB Download
2026-03-15 317,519 1.2 MB Download
2026-03-14 317,519 1.2 MB Download
2026-03-13 317,519 1.2 MB Download
2026-03-12 317,519 1.2 MB Download
2026-03-11 317,519 1.2 MB Download
2026-03-10 317,232 1.2 MB Download
2026-03-09 317,202 1.2 MB Download
2026-03-08 317,200 1.2 MB Download
2026-03-07 317,181 1.2 MB Download
2026-03-06 317,166 1.2 MB Download
2026-03-05 317,158 1.2 MB Download
2026-03-04 317,144 1.2 MB Download
2026-03-03 316,989 1.2 MB Download
2026-03-02 316,943 1.2 MB Download
2026-03-01 316,908 1.2 MB Download
2026-02-28 316,901 1.2 MB Download
2026-02-27 316,892 1.2 MB Download
2026-02-26 316,882 1.2 MB Download
2026-02-25 316,869 1.2 MB Download
2026-02-24 316,860 1.2 MB Download
2026-02-23 316,849 1.2 MB Download
2026-02-22 316,834 1.2 MB Download
2026-02-21 316,821 1.2 MB Download
2026-02-20 316,814 1.2 MB Download
2026-02-19 316,808 1.2 MB Download
2026-02-18 316,803 1.2 MB Download
2026-02-17 316,613 1.2 MB Download
2026-02-16 316,548 1.2 MB Download
2026-02-15 316,509 1.2 MB Download
2026-02-14 316,473 1.2 MB Download
2026-02-13 316,443 1.2 MB Download
2026-02-12 316,369 1.2 MB Download
2026-02-11 316,240 1.2 MB Download
2026-02-10 316,133 1.2 MB Download
2026-02-09 316,022 1.2 MB Download
2026-02-08 316,003 1.2 MB Download
2026-02-07 315,959 1.2 MB Download
2026-02-06 315,902 1.2 MB Download
2026-02-05 315,844 1.2 MB Download
2026-02-04 315,843 1.2 MB Download
2026-02-03 315,188 1.2 MB Download
2026-02-02 315,083 1.2 MB Download
2026-02-01 315,083 1.2 MB Download
2026-01-31 315,035 1.2 MB Download
2026-01-30 315,013 1.2 MB Download
2026-01-29 315,005 1.2 MB Download
2026-01-28 314,945 1.2 MB Download
2026-01-27 314,870 1.2 MB Download
2026-01-26 314,813 1.2 MB Download
2026-01-25 314,770 1.2 MB Download
2026-01-24 314,722 1.2 MB Download
2026-01-23 314,653 1.2 MB Download
2026-01-22 314,597 1.2 MB Download
2026-01-21 314,563 1.2 MB Download
2026-01-20 314,541 1.2 MB Download
2026-01-19 314,540 1.2 MB Download
2026-01-18 314,371 1.2 MB Download
2026-01-17 314,332 1.2 MB Download
2026-01-16 314,272 1.2 MB Download
2026-01-15 314,249 1.2 MB Download
2026-01-14 314,213 1.2 MB Download
2026-01-13 314,139 1.2 MB Download
2026-01-12 314,132 1.2 MB Download
2026-01-11 314,120 1.2 MB Download
2026-01-10 314,106 1.2 MB Download
2026-01-09 314,096 1.2 MB Download
2026-01-08 314,081 1.2 MB Download
2026-01-07 314,027 1.2 MB Download
2026-01-06 313,877 1.2 MB Download
2026-01-05 313,877 1.2 MB Download
2026-01-04 313,832 1.2 MB Download
2026-01-03 313,584 1.2 MB Download
2026-01-02 313,524 1.2 MB Download
2026-01-01 313,453 1.2 MB Download
2025-12-31 313,453 1.2 MB Download
2025-12-30 313,411 1.2 MB Download
2025-12-29 313,307 1.2 MB Download
2025-12-28 313,265 1.2 MB Download
2025-12-27 313,212 1.2 MB Download
2025-12-26 313,201 1.2 MB Download
2025-12-25 313,174 1.2 MB Download
2025-12-24 313,160 1.2 MB Download
2025-12-23 313,124 1.2 MB Download
2025-12-22 313,070 1.2 MB Download
2025-12-21 313,046 1.2 MB Download
2025-12-20 207,329 755 kB Download
2025-12-19 207,329 755 kB Download
2025-12-18 207,329 755 kB Download
2025-12-17 207,821 756 kB Download
2025-12-16 207,821 756 kB Download
2025-12-15 207,821 756 kB Download
2025-12-14 207,821 756 kB Download
2025-12-13 207,821 756 kB Download
2025-12-12 207,821 756 kB Download
2025-12-11 207,821 756 kB Download
2025-12-10 207,821 756 kB Download
2025-12-09 207,821 756 kB Download
2025-12-08 207,821 756 kB Download
2025-12-07 207,821 756 kB Download
2025-12-06 207,821 756 kB Download
2025-12-05 207,821 756 kB Download
2025-12-04 207,821 756 kB Download
2025-12-03 208,288 759 kB Download
2025-12-02 208,288 759 kB Download
2025-12-01 208,288 759 kB Download
2025-11-30 208,288 759 kB Download
2025-11-29 208,288 759 kB Download
2025-11-28 208,288 759 kB Download
2025-11-27 208,288 759 kB Download
2025-11-26 208,288 759 kB Download
2025-11-25 208,288 759 kB Download
2025-11-24 208,288 759 kB Download
2025-11-23 208,288 759 kB Download
2025-11-22 208,288 759 kB Download
2025-11-21 208,288 759 kB Download
2025-11-20 208,288 759 kB Download
2025-11-19 208,288 759 kB Download
2025-11-18 208,288 759 kB Download
2025-11-17 208,525 760 kB Download
2025-11-16 208,525 760 kB Download
2025-11-15 208,525 760 kB Download
2025-11-14 208,525 760 kB Download
2025-11-13 208,525 760 kB Download
2025-11-12 208,525 760 kB Download
2025-11-11 208,525 760 kB Download
2025-11-10 208,525 760 kB Download
2025-11-09 208,525 760 kB Download
2025-11-08 208,525 760 kB Download
2025-11-07 208,525 760 kB Download
2025-11-06 208,525 760 kB Download
2025-11-05 208,525 760 kB Download
2025-11-04 208,525 760 kB Download
2025-11-03 206,970 754 kB Download
2025-11-02 206,970 754 kB Download
2025-11-01 206,970 754 kB Download
2025-10-31 206,970 754 kB Download
2025-10-30 206,970 754 kB Download
2025-10-29 206,970 754 kB Download
2025-10-28 206,970 754 kB Download
2025-10-27 206,970 754 kB Download
2025-10-26 206,970 754 kB Download
2025-10-25 206,970 754 kB Download
2025-10-24 206,970 754 kB Download
2025-10-23 206,970 754 kB Download
2025-10-22 206,970 754 kB Download
2025-10-21 206,970 754 kB Download
2025-10-20 206,970 754 kB Download
2025-10-19 206,970 754 kB Download
2025-10-18 206,970 754 kB Download
2025-10-17 208,499 760 kB Download
2025-10-16 208,499 760 kB Download
2025-10-15 208,499 760 kB Download
2025-10-14 208,499 760 kB Download
2025-10-13 208,499 760 kB Download
2025-10-12 208,499 760 kB Download
2025-10-11 208,499 760 kB Download
2025-10-10 208,499 760 kB Download
2025-10-09 208,499 760 kB Download
2025-10-08 208,499 760 kB Download
2025-10-07 208,499 760 kB Download
2025-10-06 208,499 760 kB Download
2025-10-05 208,499 760 kB Download
2025-10-04 208,499 760 kB Download
2025-10-03 209,559 764 kB Download
2025-10-02 209,559 764 kB Download
2025-10-01 209,559 764 kB Download
2025-09-30 209,559 764 kB Download
2025-09-29 209,559 764 kB Download
2025-09-28 209,559 764 kB Download
2025-09-27 209,559 764 kB Download
2025-09-26 209,559 764 kB Download
2025-09-25 209,559 764 kB Download
2025-09-24 209,559 764 kB Download
2025-09-23 209,559 764 kB Download
2025-09-22 209,559 764 kB Download
2025-09-21 209,559 764 kB Download
2025-09-20 209,559 764 kB Download
2025-09-19 209,559 764 kB Download
2025-09-18 209,559 764 kB Download
2025-09-17 210,276 767 kB Download
2025-09-16 210,276 767 kB Download
2025-09-15 210,276 767 kB Download
2025-09-14 210,276 767 kB Download
2025-09-13 210,276 767 kB Download
2025-09-12 210,276 767 kB Download
2025-09-11 210,276 767 kB Download
2025-09-10 210,276 767 kB Download
2025-09-09 210,276 767 kB Download
2025-09-08 210,276 767 kB Download
2025-09-07 210,276 767 kB Download
2025-09-06 210,276 767 kB Download
2025-09-05 210,276 767 kB Download
2025-09-04 210,276 767 kB Download
2025-09-03 210,760 769 kB Download
2025-09-02 210,760 769 kB Download
2025-09-01 210,760 769 kB Download
2025-08-31 210,760 769 kB Download
2025-08-30 210,760 769 kB Download
2025-08-29 210,760 769 kB Download
2025-08-28 210,760 769 kB Download
2025-08-27 210,760 769 kB Download
2025-08-26 210,760 769 kB Download
2025-08-25 210,760 769 kB Download
2025-08-24 210,760 769 kB Download
2025-08-23 210,760 769 kB Download
2025-08-22 210,760 769 kB Download
2025-08-21 210,760 769 kB Download
2025-08-20 210,760 769 kB Download
2025-08-19 210,760 769 kB Download
2025-08-18 210,760 769 kB Download
2025-08-17 211,149 770 kB Download
2025-08-16 211,149 770 kB Download
2025-08-15 211,149 770 kB Download
2025-08-14 211,149 770 kB Download
2025-08-13 211,149 770 kB Download
2025-08-12 211,149 770 kB Download
2025-08-11 211,149 770 kB Download
2025-08-10 211,149 770 kB Download
2025-08-09 211,149 770 kB Download
2025-08-08 211,149 770 kB Download
2025-08-07 211,149 770 kB Download
2025-08-06 211,149 770 kB Download
2025-08-05 211,149 770 kB Download
2025-08-04 211,149 770 kB Download
2025-08-03 211,987 773 kB Download
2025-08-02 211,987 773 kB Download
2025-07-31 211,987 773 kB Download
2025-07-30 211,987 773 kB Download
2025-07-29 211,987 773 kB Download
2025-07-28 211,987 773 kB Download
2025-07-27 134,701 550 kB Download
2025-07-26 134,623 550 kB Download
2025-07-25 134,541 549 kB Download
2025-07-24 134,475 549 kB Download
2025-07-23 134,356 548 kB Download
2025-07-22 134,335 548 kB Download
2025-07-21 134,173 547 kB Download
2025-07-20 134,096 547 kB Download
2025-07-19 133,989 546 kB Download
2025-07-18 133,897 545 kB Download
2025-07-17 133,848 545 kB Download
2025-07-16 133,829 545 kB Download
2025-07-14 133,696 544 kB Download
2025-07-13 133,624 544 kB Download
2025-07-12 133,597 544 kB Download
2025-07-11 133,579 543 kB Download
2025-07-10 133,552 543 kB Download
2025-07-09 133,532 543 kB Download
2025-07-08 133,516 543 kB Download
2025-07-07 133,488 543 kB Download
2025-07-06 133,480 543 kB Download
2025-07-05 133,455 543 kB Download
2025-07-04 133,450 543 kB Download
2025-07-03 133,421 543 kB Download
2025-07-02 133,407 543 kB Download
2025-07-01 133,372 542 kB Download
2025-06-30 133,351 542 kB Download
2025-06-29 133,322 542 kB Download
2025-06-28 133,313 542 kB Download
2025-06-27 133,282 542 kB Download
2025-06-26 133,272 542 kB Download
2025-06-25 133,253 542 kB Download
2025-06-24 133,240 542 kB Download
2025-06-23 133,214 542 kB Download
2025-06-22 133,203 542 kB Download

5. Download latest .tw domain list via API

import axios from 'axios';
import fs from 'fs';
import { pipeline } from 'stream/promises';

const response = await axios({
  method: 'GET',
  url: 'https://allzonefiles.io/api/v1/zones/tw/dl',
  responseType: 'stream',
  headers: {
    // Replace with your API key
    'Authorization': 'Bearer allzfio_5c1572d016b846ce99ce7a177922ff21'
  }
});

await pipeline(response.data, fs.createWriteStream('tw.txt.gz'));

console.log('Download complete!');
package main

import (
    "io"
    "net/http"
    "os"
)

func main() {
    url := "https://allzonefiles.io/api/v1/zones/tw/dl"
    file, _ := os.Create("tw.txt.gz")
    defer out.Close()

    req, _ := http.NewRequest("GET", url, nil)
    // Replace with your API key
    req.Header.Set("Authorization", "Bearer allzfio_5c1572d016b846ce99ce7a177922ff21")

    resp, _ := http.DefaultClient.Do(req)
    defer resp.Body.Close()

    io.Copy(out, resp.Body)
}
import requests

url = "https://allzonefiles.io/api/v1/zones/tw/dl"
# Replace with your API key
headers = {"Authorization": "Bearer allzfio_5c1572d016b846ce99ce7a177922ff21"}

with requests.get(url, headers=headers, stream=True) as r:
    r.raise_for_status()
    with open("tw.txt.gz", "wb") as f:
        for chunk in r.iter_content(chunk_size=128*1024):
            f.write(chunk)
import java.io.FileOutputStream;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;

public class FileDownloader {
    public static void main(String[] args) throws Exception {
        URL url = new URL("https://allzonefiles.io/api/v1/zones/tw/dl");
        HttpURLConnection connection = (HttpURLConnection) url.openConnection();

        connection.setRequestMethod("GET");
        // Replace with your API key
        connection.setRequestProperty("Authorization", "Bearer allzfio_5c1572d016b846ce99ce7a177922ff21");

        try (InputStream in = connection.getInputStream();
             FileOutputStream out = new FileOutputStream("tw.txt.gz")) {

            byte[] buffer = new byte[8192];
            int bytesRead;
            while ((bytesRead = in.read(buffer)) != -1) {
                out.write(buffer, 0, bytesRead);
            }
        }

        System.out.println("Download complete!");
    }
}