serpapi-deploy-integration

Featured

Deploy SerpApi-powered search features to production platforms. Use when deploying search APIs, configuring backend proxies, or setting up SerpApi in serverless environments. Trigger: "deploy serpapi", "serpapi Vercel", "serpapi production deploy".

AI & Automation 2,944 stars 440 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# SerpApi Deploy Integration ## Overview Deploy SerpApi-powered search as a backend API endpoint. Always proxy through your server -- never expose the API key to browsers. ## Instructions ### Vercel Serverless Function ```typescript // api/search.ts import { getJson } from 'serpapi'; export default async function handler(req: Request) { const url = new URL(req.url); const q = url.searchParams.get('q'); if (!q) return new Response('Missing q parameter', { status: 400 }); const engine = url.searchParams.get('engine') || 'google'; const num = parseInt(url.searchParams.get('num') || '5'); const result = await getJson({ engine, q, num, api_key: process.env.SERPAPI_API_KEY, }); return Response.json({ results: result.organic_results?.slice(0, num) || [], answer_box: result.answer_box || null, total_results: result.search_information?.total_results, }); } ``` ```bash vercel env add SERPAPI_API_KEY production vercel --prod ``` ### Cloud Run with Python ```python # main.py from flask import Flask, request, jsonify import serpapi, os app = Flask(__name__) client = serpapi.Client(api_key=os.environ["SERPAPI_API_KEY"]) @app.route("/search") def search(): q = request.args.get("q") if not q: return jsonify({"error": "Missing q parameter"}), 400 result = client.search(engine="google", q=q, num=5) return jsonify({ "results": result.get("organic_results", [])[:5], "answer_box": result.get("answer_box")...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category