Hi Era1ah,
Thank you for participating in the Apple Support Communities. We understand you bought your iPhone on Instagram and you'd like to know if your iPhone has legitimate Apple parts. You can always check your device's parts and service history. This article explains how: iPhone parts and service history.
"Check your device's parts and service history
With iOS 15.2 and later, you can go to Settings > General > About to check the parts and service history of your iPhone.
- For iPhone XR, XS, XS Max, and later, including iPhone SE (2nd generation), you can check if the battery has been replaced.
- For iPhone 11 models, you can check if the battery or display has been replaced.
- For iPhone 12 models, iPhone 13 models, and iPhone 14 models, you can check if the rear system, TrueDepth camera, battery, display, or rear cameras have been replaced.

If the service was done using genuine Apple parts and processes, "Genuine Apple Part" appears next to the part. If your iPhone has connected to the internet since the service was performed, you can tap the part for more information, including the date of the service.
An Unknown Part
message appears if the part installation is incomplete or if the part:
- Was replaced with a nongenuine part
- Was already used or installed in another iPhone
- Isn't functioning as expected

For display and battery, you might find an additional message that says "Apple has updated the device information for this iPhone." This means that Apple has updated the device information maintained for this iPhone for service needs, safety analysis, and to improve future products.
These messages don't affect your ability to use your iPhone, its battery, display, or camera.
One of these messages might appear in the Parts and Service History section: Face ID Issue Detected, Cellular Issue Detected, Ultra Wideband Issue Detected, or Apple Pay Issue Detected.
Learn more about the Face ID Issue Detected message
Learn more about the Cellular, Ultra Wideband, and Apple Pay Issue Detected messages
With iOS versions earlier than iOS 15.2, you can check only if a replacement part is identified as an Unknown Part.
Information about parts and service history is collected by Apple and stored as part of the device information maintained for your iPhone. This information is used for service needs, safety analysis, and to improve future products.
Parts and service history is shown only if your iPhone has had a part replaced or if a part isn't functioning as expected. If a part has been serviced more than once, only the most recent service will appear.
iPhone parts and service history is linked to the serial number of your iPhone. If your iPhone has been repaired in a way that generates a new serial number, you'll find only the parts and service history that's associated with the new serial number."
You could also contact Apple Support and have them run a diagnostic which may help identify non-apple parts.
We hope this helps.
Take care.