Go to Instagram user profile, open Developer Tools Console, and type this command. Last numbers is the user ID
// New way window._sharedData.config.viewer.id // Old way window._sharedData.entry_data.ProfilePage[0].logging_page_id