intelligence_src_6dc544294b7f21f98a
- Source-provided label
- Publisher RSS metadata
- Evidence class
- mentioned in report
- Confidence
- Not reported
- Observed
- Dec 04, 2026 06:19 UTC
- Retrieved
- Dec 04, 2026 06:27 UTC
When you just want to spot-check rankings, pull related searches, or turn a list of keywords into a CSV, spinning up a Python project is overkill. Pairing curl with jq gives you a fast google search command line workflow straight in your shell. The recipes below were verified on December 4, 2026 against /google/search using "trail running shoes" (8 organic results). 1. Export your key once and print TSV Keep the API key in an environment variable so it stays out of shell scripts: export SERPBASE_API_KEY='YOUR_API_KEY' curl -s -X POST 'https://api.serpbase.dev/google/search' \ -H 'Content-Type: application/json' \ -H "X-API-Key: $SERPBASE_API_KEY" \ -d '{"q":"trail running shoes","gl":"us","hl":"en","device":"desktop"}' \ | jq -r '.organic[] | "\(.rank)\t\(.title)\t\(.link)"' 2. Fail loudly in scripts with jq -e The endpoint returns HTTP 200 even when a search fails; the real result sits in .status (0 = ok). Use jq -e with error(...) so failed queries return a non-zero exit code (5): curl -s -X POST 'https://api.serpbase.dev/google/search' \ -H 'Content-Type: application/json' \ -H "X-API-Key: $SERPBASE_API_KEY" \ -d '{"q":"trail running shoes"}' \ | jq -e 'if .status == 0 then "ok, \(.organic | length) results" else error("failed: \(.status) \(.error)") end' 3. Safe shell helper + keywords.txt to CSV Avoid hand-escaping quotes or non-ASCII characters in bash by building the JSON payload with jq -n --arg and piping it into curl -d @-: gs() { jq -n --arg q "$1" '{q: $q, gl: "us", hl: "en", device: "desktop"}' \ | curl -s -X POST 'https://api.serpbase.dev/google/search' \ -H 'Content-Type: application/json' \ -H "X-API-Key: $SERPBASE_API_KEY" \ -d @- } # Related searches for a single query gs "trail running shoes" | jq -r '.related_searches[]' # Batch keywords.txt -> results.csv while IFS= read -r kw; do gs "$kw" | jq -r --arg kw "$kw" \ 'select(.status == 0) | .organic[] | [$kw, .rank, .title, .link] | @csv' sleep 1 done < keywords.txt > results.csv 4. Handy jq one-liners jq -r '.organic[].link' # URLs only jq -r '.organic[].link | split("/")[2]' # Ranking domains jq -r '.people_also_ask[]?.question' # PAA questions (safe if missing) jq -r '.ai_overview.summary // empty' # AI Overview text (safe if missing) Four quick shell gotchas Always pass -s to curl so progress meters do not corrupt piped JSON. Guard optional sections (people_also_ask, ai_overview) with []? or // empty. Add sleep 1 in loops to stay comfortably under rate limits. Some link values come back as google.com/goto?... redirects (5 of 8 in this run); read display_link if you only need the domain. Full command examples and output notes: Google Search from the command line with curl and jq.
19421d0ef1323b421bf841f9eb922966621730e0ce0c7a98d20d9cac88869e98Network indicators are visibly defanged. This page does not make them clickable or send them to another service.
No validated file hashes or network indicators are stored for this record.
This record contains metadata and attribution only. It does not host, download, unpack, render, or execute malware samples.
Sources represented on this page. Publication and observation dates describe the content; successful batch dates describe local collection. A recent batch does not certify complete coverage or current provider availability.
1 sources: 0 stale, 0 needing attention, 0 paused, 0 unverified.
Stale means older than twice the recorded collection interval, with a minimum of one hour; without an interval, the threshold is 24 hours. Cached content remains available while a feed is stale, paused, or unverified.