78trust / 100

Google News

by agdata in News & content

x402 APIPassing, checked 29 min ago

Google News search API for AI agents: send a keyword or phrase and get up to 30 current news articles as JSON: headline, publisher, publish time, a short description and the article's link. Choose the language and country edition. Articles you paid for but did not get are refunded.

POST https://agdata.shveik.dev/x402/google-news

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
92 ms typical, 109 ms slowest 5%
Last check
29 min ago
Next check
in 2 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agdata.shveik.dev/x402/google-news" \
  -H "content-type: application/json" \
  -d '{"limit":10,"query":"openai"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagdata.shveik.dev%2Fx402%2Fgoogle-news
const res = await pay("https://agdata.shveik.dev/x402/google-news", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"limit":10,"query":"openai"}),
});
console.log(await res.json());

Example input

{
  "limit": 10,
  "query": "openai"
}

Example output

{
  "description": "Q3 2026 Lith…",
  "publishedAt": "2026-10-02T1…",
  "source": "Benchmark Mi…",
  "title": "Q3 2026 Lith…",
  "url": "https://news…"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
29 min agoPassed40288 ms$0.065
4 h agoPassed40287 ms$0.065
7 h agoPassed40292 ms$0.065
11 h agoPassed40289 ms$0.065
15 h agoPassed402102 ms$0.065
18 h agoPassed40295 ms$0.065
23 h agoPassed40230 ms$0.065
26 h agoPassed402109 ms$0.065
31 h agoPassed402142 ms$0.065

History

11 Oct 2026Price changed from $0.061 to $0.065