serpapi-hello-world

Featured

Run your first SerpApi search -- Google, Bing, or YouTube results as JSON. Use when starting with SerpApi, testing search queries, or learning the structured result format. Trigger: "serpapi hello world", "serpapi example", "serpapi first search".

AI & Automation 2,940 stars 439 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 Hello World ## Overview Run a Google search via SerpApi and parse the structured JSON response. SerpApi returns organic results, knowledge graph, answer boxes, ads, local results, and more -- all as structured data. Key parameter: `engine` (google, bing, youtube, etc.). ## Prerequisites - `serpapi` package installed (see `serpapi-install-auth`) - `SERPAPI_API_KEY` environment variable set ## Instructions ### Step 1: Basic Google Search (Python) ```python import serpapi import os client = serpapi.Client(api_key=os.environ["SERPAPI_API_KEY"]) result = client.search( engine="google", q="best programming languages 2025", location="Austin, Texas", hl="en", gl="us", num=5, # Number of results ) # Organic results for r in result["organic_results"]: print(f"{r['position']}. {r['title']}") print(f" {r['link']}") print(f" {r.get('snippet', 'No snippet')}\n") # Answer box (if present) if "answer_box" in result: print(f"Answer Box: {result['answer_box'].get('answer', result['answer_box'].get('snippet'))}") ``` ### Step 2: Google Search (Node.js) ```typescript import { getJson } from 'serpapi'; const result = await getJson({ engine: 'google', q: 'best programming languages 2025', location: 'Austin, Texas', hl: 'en', gl: 'us', num: 5, api_key: process.env.SERPAPI_API_KEY, }); result.organic_results.forEach((r: any) => { console.log(`${r.position}. ${r.title}`); console.log(` ${r.link}`); }); // Knowl...

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