DEV Community

Cover image for How to Check Google Penalties Automatically Using SERPSpur API and Python Scripts
Matt Joshi
Matt Joshi

Posted on

How to Check Google Penalties Automatically Using SERPSpur API and Python Scripts

I recently noticed a sudden drop in organic traffic for one of my sites, and I suspected a search engine penalty. Instead of guessing, I used SERPSpur’s Search Engine Penalty Radar to check for indexing issues and blacklist signals. Here’s how I integrated it into my monitoring workflow:

python
import requests

url = 'https://serpspur.com/tool/search-engine-penalty-radar/'
params = {
'domain': 'example.com'
}
response = requests.get(url, params=params)
data = response.json()
if data['penalty_detected']:
print(f'Penalty found: {data["details"]}')
else:
print('No penalty detected')

It flagged a manual action from Google that I hadn’t noticed in Search Console. The tool also checks for blacklist signals from sources like Safe Browsing and Spamhaus. Since adding this to my weekly checks, I’ve caught two potential issues before they impacted rankings. Highly recommend for anyone managing multiple sites. #python #seo #monitoring

Top comments (0)