If you're in the position of buying a new phone, the device's seller should provide its IMEI code to you upon request — and you should definitely ask for this code. The IMEI number will help you confirm whether it's been stolen or whether it's compatible with certain cellular networks.
There are all too many scams to avoid when buying refurbished tech online and in person, so be on the lookout for sellers that refuse to provide the IMEI number as they may be selling fenced goods. An IMEI number can't be used to hack or track phones by itself but sellers should only share it with serious buyers through private messaging and buyers should keep screenshots of the conversation just in case.
Upon being provided with an IMEI number, you should proceed with checking its validity and whether it's been reported stolen or lost. There's quite the smorgasbord of sites to use if you want to check an IMEI number, many of which will ask for a small fee before checking the number. While many of the options are free, research whichever site you use first to make sure you're not about to fall for a phishing scam.

Can you play GTA 6 from an external hard drive on PS5 or Xbox Series X/S?
7 gadgets that'll instantly upgrade your Thanksgiving feast
Capcom's quirky dinosaur-fighting hero shooter is shutting down in 2027
Trump admin didn't investigate Jensen Huang before pushing Nvidia to bring him back: 'What does that mean, had Huang been investigated? For what?'
GTA 6 vault: How to open them during big bank jobs
Deceased BBC football commentator resurrected with AI for EA Sports FC: The family says it's a 'touching tribute' but some fans call it 'gross' and 'bleak'
State AGs are trying to stop Character.AI from auctioning off users' chat histories
As the US Treasury suffers a cybersecurity breach, its chief tech guy is vibecoding a Civilization clone
AI kills another coding competition: 'I was not at all interested in giving awards to the output of large language models'