Pangolinfo Ai Serp
by @liuyu020923
Search Google and get AI Overviews using Pangolin APIs. Use this skill when the user wants to: search Google with AI answers, get search engine results, perf...
Runtime
pip install needed)Pangolin Account
Register at pangolinfo.com to obtain credentials.
Environment Variables
Set one of the following:
| Variable | Required | Description |
|----------|----------|-------------|
| PANGOLIN_API_KEY | Option A | API Key (skips login) |
| PANGOLIN_EMAIL | Option B | Account email |
| PANGOLIN_PASSWORD | Option B | Account password |
API key resolution order: PANGOLIN_API_KEY env var > cached ~/.pangolin_api_key > fresh login.
macOS SSL Certificate Fix
On macOS, Python may fail with CERTIFICATE_VERIFY_FAILED because it ships without root certificates by default.
Symptoms: The script outputs an error with code SSL_CERT.
Solutions (pick one):
1. Run the certificate installer that ships with Python:
/Applications/Python\ 3.x/Install\ Certificates.command
(Replace 3.x with your Python version, e.g. 3.11)2. Set the SSL_CERT_FILE environment variable:
pip3 install certifi
export SSL_CERT_FILE=$(python3 -c "import certifi; print(certifi.where())")
Error Communication Table
| Error Code | Meaning | User-Facing Message | Resolution |
|------------|---------|---------------------|------------|
| MISSING_ENV | No credentials | "Authentication credentials are not configured." | Set PANGOLIN_EMAIL + PANGOLIN_PASSWORD or PANGOLIN_API_KEY. |
| AUTH_FAILED | Wrong credentials | "Authentication failed. Please check your credentials." | Verify email and password are correct. |
| RATE_LIMIT | Too many requests | "The API is rate-limiting requests. Please wait and try again." | Wait a moment, then retry. |
| NETWORK | Connection issue | "A network error occurred. Please check your connection." | Check internet, firewall, proxy settings. |
| SSL_CERT | Certificate error | "SSL certificate verification failed." | See macOS SSL Certificate Fix section above. |
| API_ERROR | Pangolin API error | "The search API returned an error." | Check the hint field; see references/error-codes.md. |
Pangolin API Error Codes
| API Code | Meaning | Resolution |
|----------|---------|------------|
| 1004 | Invalid/expired API key | Auto-retried by the script. If persistent, delete ~/.pangolin_api_key and retry. |
| 2001 | Insufficient credits | Top up credits at pangolinfo.com. |
| 2007 | Account expired | Renew subscription at pangolinfo.com. |
| 10000 | Task execution failed | Retry the request. Check query format. |
| 10001 | Task execution failed | Retry. May be a temporary server issue. |
clawhub install pangolin-ai-serp