You can find your Apple device linking code directly on your TV or supported Apple device when you start the sign-in or linking process.
Follow these steps:
Open the Apple TV app on your smart TV or streaming device.
Select the Sign In option.
Choose Sign In on the Web if available.
A unique linking code will appear on your TV screen.
Keep the code visible and open link.apple.com on your phone or computer.
Enter the displayed code to continue.
Note: If you don't see a code, try restarting the Apple TV app and selecting the sign-in option again.