Developers: Anyone using Google Places API instead of Scraping?
I’m feeling a bit cautious about using scraping tools, so I decided to give the Google Places API a shot instead. Anyone else here using it to pull data? I built a Node.js script that stores the place_id, location, and a boolean to track whether the place fits my niche or not—just to help avoid false positives.
For each result, I pull the place_id, hit the Google API, and return the results to the frontend. As expected, it is getting expensive. I kicked off this new project with $300 in free credits, and it's burning through them fast—especially after I introduced a bug that made the API call loop infinitely 😬(yikes!).
My stack is Next.js with TypeScript, Supabase, and Prisma, and I’m using Cursor.ai for development. Curious to hear if anyone’s got insights on optimizing API costs, using Google Places more efficiently, or perhaps even a different way to gather data that doesn’t involve scraping or the Google API!