finding-digital-agencies-via-google-search

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Finding Digital Agencies Via Google Search

通过谷歌搜索查找数字代理机构



Inputs

输入参数

ParameterTypeRequiredDefaultNotes
startUrls
arrayOptional
[]
Google search URLs
searchTerms
arrayOptional
[]
Keywords to search on Google
countryCode
stringOptional
US
Country for Google search (e.g.
US
,
GB
,
TR
)
languageCode
stringOptionalLanguage for results (e.g.
en
)
maxItems
numberOptionalUnlimitedMaximum results to return across all queries
maxPagesPerQuery
integerOptional
1
Maximum result pages per query
mobileResults
booleanOptional
false
Fetch mobile SERP layout
customMapFunction
stringOptionalJavaScript function to transform each output object
参数类型是否必填默认值说明
startUrls
数组可选
[]
谷歌搜索URL
searchTerms
数组可选
[]
谷歌搜索关键词
countryCode
字符串可选
US
谷歌搜索的国家(例如
US
,
GB
,
TR
languageCode
字符串可选结果语言(例如
en
maxItems
数字可选无限制所有查询返回的最大结果数
maxPagesPerQuery
整数可选
1
每个查询的最大结果页数
mobileResults
布尔值可选
false
获取移动端SERP布局
customMapFunction
字符串可选用于转换每个输出对象的JavaScript函数

How to Run

运行方式

Using run_actor.js (recommended)

使用run_actor.js(推荐)

bash
undefined
bash
undefined

Quick answer (table)

快速输出(表格形式)

node scripts/run_actor.js --actor "apidojo~google-search-scraper" --input '{"searchTerms": ["digital marketing agency NYC"], "countryCode": "US", "maxPagesPerQuery": 3}'
node scripts/run_actor.js --actor "apidojo~google-search-scraper" --input '{"searchTerms": ["digital marketing agency NYC"], "countryCode": "US", "maxPagesPerQuery": 3}'

Save as CSV

保存为CSV格式

node scripts/run_actor.js --actor "apidojo~google-search-scraper" --input '{"searchTerms": ["digital marketing agency NYC"], "countryCode": "US", "maxPagesPerQuery": 3}' --output results.csv --format csv
node scripts/run_actor.js --actor "apidojo~google-search-scraper" --input '{"searchTerms": ["digital marketing agency NYC"], "countryCode": "US", "maxPagesPerQuery": 3}' --output results.csv --format csv

Save as JSON

保存为JSON格式

node scripts/run_actor.js --actor "apidojo~google-search-scraper" --input '{"searchTerms": ["digital marketing agency NYC"], "countryCode": "US", "maxPagesPerQuery": 3}' --output results.json --format json
undefined
node scripts/run_actor.js --actor "apidojo~google-search-scraper" --input '{"searchTerms": ["digital marketing agency NYC"], "countryCode": "US", "maxPagesPerQuery": 3}' --output results.json --format json
undefined

REST API fallback

备选REST API方式

bash
curl -X POST "https://api.apify.com/v2/acts/apidojo~google-search-scraper/runs" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searchTerms": ["digital marketing agency NYC"], "countryCode": "US", "maxPagesPerQuery": 3}'
If Apify MCP is available: Use the Apify MCP
call_actor
tool with actor
apidojo~google-search-scraper
and the input above.

bash
curl -X POST "https://api.apify.com/v2/acts/apidojo~google-search-scraper/runs" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searchTerms": ["digital marketing agency NYC"], "countryCode": "US", "maxPagesPerQuery": 3}'
如果Apify MCP可用: 使用Apify MCP的
call_actor
工具,指定actor为
apidojo~google-search-scraper
并传入上述输入参数。

Scoring & Ranking

评分与排名

Score each result by:
  • snippet_has_agency_signals
    (contains: agency, studio, services, clients, marketing, SEO) → weight 0.50
  • is_agency_domain
    (not .gov, .edu, .wikipedia, .youtube) → weight 0.30
  • position
    → score = 1 - (position / total_results), weight 0.20
python
score = 0.50 * int(agency_signals) + 0.30 * int(valid_domain) + 0.20 * (1 - position/total)

按以下标准为每个结果评分:
  • snippet_has_agency_signals
    (包含:agency、studio、services、clients、marketing、SEO)→ 权重0.50
  • is_agency_domain
    (非.gov、.edu、.wikipedia、.youtube域名)→ 权重0.30
  • position
    → 得分 = 1 - (position / total_results),权重0.20
python
score = 0.50 * int(agency_signals) + 0.30 * int(valid_domain) + 0.20 * (1 - position/total)

Classification

分类

ScoreTierLabel
≥ 0.70APRIME_PROSPECT
0.40–0.69BWARM_LEAD
< 0.40CLOW_PRIORITY

得分等级标签
≥ 0.70APRIME_PROSPECT
0.40–0.69BWARM_LEAD
< 0.40CLOW_PRIORITY

Edge Cases

边缘情况

  • Directory sites in results: Clutch, Yelp, Upwork listings are not agencies. Filter by checking if domain matches snippet.
  • Wikipedia/news results: Skip results with domains like wikipedia.org, bbc.com.
  • Limited contact data: SERP only returns title, URL, snippet — no phone/email. Use results as a starting list for manual outreach.
  • Duplicate agencies: Same agency may appear for multiple search terms — deduplicate by domain.
  • Local vs global: Use city-specific search terms for local results.
  • 结果中的目录网站:Clutch、Yelp、Upwork列表不属于代理机构。通过检查域名是否与摘要匹配进行过滤。
  • 维基百科/新闻结果:跳过wikipedia.org、bbc.com等域名的结果。
  • 有限的联系数据:SERP仅返回标题、URL和摘要,无电话/邮箱。将结果作为手动外展的初始列表。
  • 重复的代理机构:同一代理机构可能出现在多个搜索关键词的结果中——通过域名去重。
  • 本地 vs 全球:使用特定城市的搜索关键词获取本地结果。