Is it legal to scrape data from Instagram?
I'm making a scraper in PHP to pull all the posts on a particular Instagram user's profile.
This isn't like Pinterest where you can get the data directly from their site but I don't want to be violating any copyrights or trademarks.
There is no public API for Instagram and the data are stored only in their servers. So, if you are scraping Instagram, you are violating their TOS.
This might help: As @josephm pointed out, they do not provide an API for public consumption, and are very protective of their intellectual property. It seems that they have a private API, however, which you can use to access certain parts of their database - which is pretty much what you are doing when you scrape their site. You are not "violating their TOS" (and they have no right to stop you), since their servers simply host the content you retrieve from them. If anything, they may want to block you, since your scraper may damage their search and analytics service.
The only way to know for sure would be to ask them directly, but I think the probability is low.
Related Answers
What states have the most Web Scraping jobs?
Sure, if you are good enough to make it, but it is also not the future of lar...
How long does web scraping take?
As we know, data web scraping is a process of extracting data fro...
Which tool is best for web scraping?
Web scraping is a process of extracting information from the World Wide Web...