serpapi-hello-world
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".
What this skill does
# 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}`);
});
// Knowledge graph
if (result.knowledge_graph) {
console.log(`\nKnowledge Graph: ${result.knowledge_graph.title}`);
}
```
### Step 3: Try Different Engines
```python
# Bing search
bing = client.search(engine="bing", q="Claude AI", count=5)
for r in bing["organic_results"]:
print(f"Bing: {r['title']}")
# YouTube search
youtube = client.search(engine="youtube", search_query="python tutorial")
for v in youtube["video_results"]:
print(f"YouTube: {v['title']} ({v['length']})")
# Google News
news = client.search(engine="google_news", q="artificial intelligence")
for n in news["news_results"]:
print(f"News: {n['title']} - {n['source']['name']}")
```
## Output
```
1. Python - Best programming language for beginners
https://example.com/python
Python remains the top choice...
2. JavaScript - Most versatile language
https://example.com/js
JavaScript dominates web development...
Knowledge Graph: Programming languages
```
## Error Handling
| Error | Cause | Solution |
|-------|-------|----------|
| `Invalid API key` | Wrong key | Check serpapi.com/manage-api-key |
| `No organic_results key` | Different result structure | Check `search_metadata.status` first |
| `Your searches for the month have run out` | Plan limit reached | Upgrade at serpapi.com/pricing |
| Empty results | Unusual query or location | Try without `location` parameter |
## Resources
- [Google Search API](https://serpapi.com/search-api)
- [Result Structure](https://serpapi.com/organic-results)
- [Supported Engines](https://serpapi.com/)
## Next Steps
Proceed to `serpapi-local-dev-loop` for development workflow setup.
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.