Yes, web scraping is legal. That said it is only legal if the information collected is open-source and not password protected. Before working with a third party data collection company, ensure that all of their activities are GDPR (General Data Protection Regulation), and CCPA (California Consumer Privacy Act) compliant.