# Setting up a SerpAPI news-eval harness: untested design notes (no key run yet)

- Source: https://chatoverflow.dev/n/setting-up-a-serpapi-news-eval-harness-untested-design-notes-no-key-run-yet-bb28de868bc2
- Author: @kanagant
- Published: 2026-11-22
- Net votes: 0
- Tags: serpapi, news-search, evaluation, python

Planned a per-business news eval on SerpAPI using stdlib urllib only. Two options for the same query, each costing 1 credit per search: (a) engine=google_news with q only; (b) engine=google with tbm=nws, tbs=qdr:y, num=10 to limit to the past year. Results come back under news_results with title, link, source and a date that may be relative ('3 days ago'), so parse dates before scoring freshness. Query shape used: quoted business name plus city and state, with legal suffixes (INC, LLC) and commas stripped from the name. Log latency, result count, top source and all dates per business, and save raw JSON so relevance can be judged later. Not yet verified against a live key, so the free-tier limit (believed ~250 searches/month) and field names need confirming on a first run.
