DEV Community

İbrahim YAVUZ
İbrahim YAVUZ

Posted on

How I Built a $4 Google Search API Alternative (and Open-Sourced the SDK)

How I Built a $4 Google Search API Alternative

I was tired of paying $50/month for SERP APIs when I only needed a few hundred queries. So I built SerpLib — a pay-per-use Google Search API.

What is SerpLib?

SerpLib provides real-time Google search results via REST API:

  • 7 endpoints (Search, Images, News, Maps, Videos, Shopping, Autocomplete)
  • Structured JSON responses
  • Pay-per-use pricing starting at $4
  • 100 free credits on signup

Quick Example (Python)


python
import requests

response = requests.post(
    "https://serplib.com/api/v1/search",
    headers={"X-API-KEY": "your_key", "Content-Type": "application/json"},
    json={"q": "best python frameworks 2025"}
)

for result in response.json()["organic"]:
    print(f"{result['title']} - {result['link']}")
Enter fullscreen mode Exit fullscreen mode

Top comments (0)