In reality, many of the flights run out of Qatar airways terminal jfk terminal are codeshares. Because of this, codeshare flights run by Qatar Airlines depart from terminals 5, 7, and 8. There's a chance that this terminal will alter. From JFK, more than 70 airlines operate. If your flight from Qatar Airways lands at JFK Airport Terminal 8, you can speed up immigration by using an Automatic Passport Control (APC) kiosk. If you are travelling under the ESTA Visa Waiver Program, hold a B1/B2 tourist visa, or have a US or Canadian passport, you may use this facility.
You can also check-
https://travobravo.com/qatar-a....irways/what-terminal