Agent skill

Serpapi

by nicepkg in nicepkg/ai-workflow

SerpApi search engine results API via curl. An agent skill from nicepkg/ai-workflow.

MITAuto-check passedData & Analytics

Install Serpapi

skills CLI
$ npx skills add nicepkg/ai-workflow --skill serpapi -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install nicepkg/ai-workflow serpapi --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/nicepkg/ai-workflow.git skills-src && mkdir -p .claude/skills && cp -r skills-src/workflows/video-creator-workflow/.claude/skills/serpapi .claude/skills/serpapi && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
serpapi
GitHub stars
285
Token cost
~1.4k tokens
SKILL.md length
428 words
Files
1
Skills in repo
61
Repo updated
First seen
Licence
MIT

At a glance

SerpApi search engine results API via curl. An agent skill from nicepkg/ai-workflow.

  • Works in 9 steps: Basic Google Search → Search with Location → Google Image Search → …
  • Other search engines
  • SKILL.md covers When to Use, Prerequisites, How to Use and Supported Engines, plus 2 more sections
  • Calls bash and jq; reaches serpapi.com; needs SERPAPI_API_KEY and API_KEY

What it does

Serpapi is an agent skill from nicepkg/ai-workflow. SerpApi search engine results API via curl. Use this skill to scrape Google, Bing, YouTube, and other search engines.

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Data & Analytics, covering Web scraping and Web search. It works with SerpApi, YouTube, Google Maps Platform and Bash. The repository describes itself as: 🚀 170+ pre-built skills for Claude Code, Cursor, Codex & 14+ AI tools. Stop re-teaching your AI the same things. One command → instant domain expertise. Marketing, SEO, Trading… The licence is MIT.

When your agent uses it

  • Other search engines
  • Tasks that involve Web scraping
  • Tasks that involve Web search

Example prompts

  • “/serpapi”

Requirements

  • A credential in SERPAPI_API_KEY
  • A credential in API_KEY

Workflow steps

9 steps, taken from the step headings in SKILL.md.

  1. Basic Google Search
  2. Search with Location
  3. Google Image Search
  4. Google News Search
  5. Google Shopping Search
  6. YouTube Search
  7. Google Maps / Local Results
  8. Pagination
  9. Check Account Info

What it can do on your machine

Read from SKILL.md and the folder at commit d167b41. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • bash
    • jq

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • serpapi.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • SERPAPI_API_KEY
    • API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Serpapi loads about 1.4k tokens when it runs. Until then it costs about 31 tokens; SKILL.md has 428 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~31
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from nicepkg/ai-workflow at commit d167b41, republished under its MIT licence (© nicepkg). 428 words, ~1,398 tokens.

Download SKILL.mdSave it as .claude/skills/serpapi/SKILL.md (or your agent's skills folder).
name
serpapi
description
SerpApi search engine results API via curl. Use this skill to scrape Google, Bing, YouTube, and other search engines.
vm0_secrets
SERPAPI_API_KEY

SerpApi

Use SerpApi via direct curl calls to scrape search engine results from Google, Bing, YouTube, and more.

Official docs: https://serpapi.com/search-api


When to Use

Use this skill when you need to:

  • Scrape Google search results (organic, ads, knowledge graph)
  • Search Google Images, News, Videos, Shopping
  • Get local business results from Google Maps
  • Scrape other search engines (Bing, YouTube, DuckDuckGo, etc.)
  • Monitor SERP rankings for SEO analysis

Prerequisites

  1. Sign up at SerpApi
  2. Go to Dashboard and copy your API key
  3. Store it in the environment variable SERPAPI_API_KEY
bash
export SERPAPI_API_KEY="your-api-key"
Pricing
  • Free tier: 100 searches/month
  • API key is passed as a query parameter api_key

Important: When using $VAR in a command that pipes to another command, wrap the command containing $VAR in bash -c '...'. Due to a Claude Code bug, environment variables are silently cleared when pipes are used directly.

bash
bash -c 'curl -s "https://api.example.com" -H "Authorization: Bearer $API_KEY"'

How to Use

All examples below assume you have SERPAPI_API_KEY set.

Base URL: https://serpapi.com/search


Search Google and get structured JSON results:

bash
bash -c 'curl -s "https://serpapi.com/search?engine=google&q=artificial+intelligence&api_key=${SERPAPI_API_KEY}"' | jq '.organic_results[:3] | .[] | {title, link, snippet}

2. Search with Location

Search from a specific location:

bash
bash -c 'curl -s "https://serpapi.com/search?engine=google&q=best+coffee+shops&location=San+Francisco,+California&gl=us&hl=en&api_key=${SERPAPI_API_KEY}"' | jq '.organic_results[:3]'

Parameters:

  • location: City, state, or address
  • gl: Country code (us, uk, de, etc.)
  • hl: Language code (en, de, fr, etc.)

Search for images:

bash
bash -c 'curl -s "https://serpapi.com/search?engine=google_images&q=sunset+beach&api_key=${SERPAPI_API_KEY}"' | jq '.images_results[:3] | .[] | {title, original, thumbnail}

Search news articles:

bash
bash -c 'curl -s "https://serpapi.com/search?engine=google_news&q=technology&api_key=${SERPAPI_API_KEY}"' | jq '.news_results[:3] | .[] | {title, link, source, date}

Search products:

bash
bash -c 'curl -s "https://serpapi.com/search?engine=google_shopping&q=wireless+headphones&api_key=${SERPAPI_API_KEY}"' | jq '.shopping_results[:3] | .[] | {title, price, source}

Search YouTube videos:

bash
bash -c 'curl -s "https://serpapi.com/search?engine=youtube&search_query=python+tutorial&api_key=${SERPAPI_API_KEY}"' | jq '.video_results[:3] | .[] | {title, link, channel, views}

7. Google Maps / Local Results

Search local businesses:

bash
bash -c 'curl -s "https://serpapi.com/search?engine=google_maps&q=restaurants&ll=@40.7128,-74.0060,15z&api_key=${SERPAPI_API_KEY}"' | jq '.local_results[:3] | .[] | {title, rating, address}

Parameters:

  • ll: Latitude, longitude, and zoom level (e.g., @40.7128,-74.0060,15z)

8. Pagination

Get more results using the start parameter:

bash
# First page (results 1-10)
bash -c 'curl -s "https://serpapi.com/search?engine=google&q=machine+learning&start=0&api_key=${SERPAPI_API_KEY}"' | jq '.organic_results | length'

# Second page (results 11-20)
bash -c 'curl -s "https://serpapi.com/search?engine=google&q=machine+learning&start=10&api_key=${SERPAPI_API_KEY}"' | jq '.organic_results | length'

Show full SKILL.md (173 more words)Show less
9. Check Account Info

Check your API usage and credits:

bash
bash -c 'curl -s "https://serpapi.com/account?api_key=${SERPAPI_API_KEY}"' | jq '{plan_name, searches_per_month, this_month_usage}

Supported Engines

EngineParameterDescription
Google Searchengine=googleWeb search results
Google Imagesengine=google_imagesImage search
Google Newsengine=google_newsNews articles
Google Shoppingengine=google_shoppingProduct search
Google Mapsengine=google_mapsLocal businesses
YouTubeengine=youtubeVideo search
Bingengine=bingBing web search
DuckDuckGoengine=duckduckgoPrivacy-focused search

Common Parameters

ParameterDescription
qSearch query (required)
engineSearch engine to use
locationGeographic location for search
glCountry code (e.g., us, uk)
hlLanguage code (e.g., en, de)
startPagination offset (0, 10, 20...)
numNumber of results (max 100)
safeSafe search (active or off)
deviceDevice type (desktop, mobile, tablet)

Guidelines

  1. Use specific engines: Use google_images, google_news etc. instead of tbm parameter for cleaner results
  2. Add location for local searches: Use location and gl for geo-targeted results
  3. Cache results: SerpApi caches results by default; use no_cache=true for fresh data
  4. Monitor usage: Check /account endpoint to track API credits
  5. Use jq filters: Filter large JSON responses to extract only needed data

© nicepkg, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in workflows/video-creator-workflow/.claude/skills/serpapi of nicepkg/ai-workflow.

Open the folder on GitHubat commit d167b41

Compare with similar skills

Serpapi next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Serpapi compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Serpapi this skillnicepkg/ai-workflow285—~1.4kAutomated safety check: PassMIT
Apify Competitor Intelligencemajiayu000/claude-skill-registry6664 repos~1.3kAutomated safety check: NotesMIT
Google Maps ScraperMahanaicoach/google-maps-scraper-kit1.3k—~2.8kAutomated safety check: PassMIT
Deepapidavidondrej/skills4.1k—~2.5kAutomated safety check: PassMIT
Bright Data Best Practicesbrightdata/skills2641 repos~3.6kAutomated safety check: PassMIT
Apify Audience Analysismajiayu000/claude-skill-registry6663 repos~1.2kAutomated safety check: NotesMIT

Similar skills

  • Apify Competitor Intelligence

    majiayu000/claude-skill-registry

    Analyze competitor strategies, content, pricing, ads, and market positioning across Google Maps, Booking.com, Facebook, Instagram, YouTube, and TikTok.

    666 GitHub starsUsed in 4 repos~1.3k tokens
    Data & AnalyticsAuto-check: notes
  • Google Maps Scraper

    Mahanaicoach/google-maps-scraper-kit

    Scrape Google Maps business listings (name, address, phone, website, rating, reviews, lat/lng, hours, emails) via the local gosom google-maps-scraper REST API.

    1.3k GitHub stars~2.8k tokensUpdated 2 days ago
    Data & AnalyticsAuto-check passed
  • Deepapi

    davidondrej/skills

    Use DeepAPI for all web search, deep research, and web scraping (websites, LinkedIn, GitHub, X/Twitter, YouTube, Instagram) instead of built-in search, research, fetch, or browser tools.

    4.1k GitHub stars~2.5k tokensUpdated today
    Data & AnalyticsAuto-check passed
  • Build production-ready Bright Data integrations with best practices baked in.

    264 GitHub starsUsed in 1 repo~3.6k tokens
    Data & AnalyticsAuto-check passed
  • Apify Audience Analysis

    majiayu000/claude-skill-registry

    Understand audience demographics, preferences, behavior patterns, and engagement quality across Facebook, Instagram, YouTube, and TikTok.

    666 GitHub starsUsed in 3 repos~1.2k tokens
    Data & AnalyticsAuto-check: notes
  • Apify Brand Reputation Monitoring

    majiayu000/claude-skill-registry

    Scrape reviews, ratings, and brand mentions from multiple platforms using Apify Actors.

    666 GitHub starsUsed in 3 repos~1.1k tokens
    Data & AnalyticsAuto-check: notes

More from nicepkg/ai-workflow

All 61 skills in this repo
  • Capture Triage

    nicepkg/ai-workflow

    Processes Drafts Pro captures from the Inbox folder. An agent skill from nicepkg/ai-workflow.

    285 GitHub stars~3k tokensUpdated 8 mo ago
    Auto-check passed
  • Legacy To AI Ready

    nicepkg/ai-workflow

    Transform legacy codebases into AI-ready projects with Claude Code configurations.

    285 GitHub stars~2.2k tokensUpdated 8 mo ago
    Auto-check: notes
  • Newsletter Coach

    nicepkg/ai-workflow

    Writing coach that extracts educational content from your daily experiences and turns it into publish-ready newsletter drafts.

    285 GitHub stars~3.7k tokensUpdated 8 mo ago
    Auto-check passed
  • Webfluence

    nicepkg/ai-workflow

    Content web architecture framework. An agent skill from nicepkg/ai-workflow.

    285 GitHub stars~1.4k tokensUpdated 8 mo ago
    Auto-check passed
  • Workflow Creator

    nicepkg/ai-workflow

    Create complete Claude Code workflow directories with curated skills.

    285 GitHub stars~2.6k tokensUpdated 8 mo ago
    Auto-check passed
  • Media Processing

    nicepkg/ai-workflow

    Video/audio/image processing with FFmpeg and ImageMagick. An agent skill from nicepkg/ai-workflow.

    285 GitHub stars~2.4k tokensUpdated 8 mo ago
    Auto-check: notes

Questions about Serpapi

What does Serpapi do?

SerpApi search engine results API via curl. An agent skill from nicepkg/ai-workflow. Serpapi is an agent skill from nicepkg/ai-workflow. SerpApi search engine results API via curl.

When should I use Serpapi?

Serpapi fits situations like: other search engines; tasks that involve Web scraping; tasks that involve Web search.

How do I install Serpapi in Claude Code?

Run `npx skills add nicepkg/ai-workflow --skill serpapi -a claude-code`. Or copy the skill folder (workflows/video-creator-workflow/.claude/skills/serpapi in nicepkg/ai-workflow) into .claude/skills/serpapi in your project. Claude Code loads it when a task matches its description.

How do I install Serpapi in Codex?

Run `npx skills add nicepkg/ai-workflow --skill serpapi -a codex`. Or copy the skill folder (workflows/video-creator-workflow/.claude/skills/serpapi in nicepkg/ai-workflow) into .agents/skills/serpapi in your project. Codex loads it when a task matches its description.

Can I use Serpapi in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add nicepkg/ai-workflow --skill serpapi -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/serpapi, .gemini/skills/serpapi, .github/skills/serpapi and .opencode/skills/serpapi in your project.

What does Serpapi need to run?

Going by SKILL.md and its folder, Serpapi needs the command-line tools its instructions call (bash and jq) and credentials named SERPAPI_API_KEY and API_KEY. Our summary lists: A credential in SERPAPI_API_KEY; A credential in API_KEY.

Does Serpapi access the network?

SKILL.md names 1 domain. In commands or code: serpapi.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Serpapi safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Serpapi use?

Serpapi is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Serpapi use?

About 1.4k tokens (SKILL.md is roughly 5.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Serpapi?

Skills that share tags, products or a category with Serpapi: Apify Competitor Intelligence (majiayu000/claude-skill-registry, 666 stars), Google Maps Scraper (Mahanaicoach/google-maps-scraper-kit, 1.3k stars), Deepapi (davidondrej/skills, 4.1k stars) and Bright Data Best Practices (brightdata/skills, 264 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Serpapi?

nicepkg (a GitHub organization) maintains it in nicepkg/ai-workflow, which has 285 GitHub stars. The repository holds 61 skills in this directory. The repository was last updated on January 20, 2026.

Source: nicepkg/ai-workflow on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.