Skip to content

Instantly share code, notes, and snippets.

@fance2552
Created May 25, 2025 00:27
Show Gist options
  • Save fance2552/c2d59fcab7c63976c165aa82f998b75a to your computer and use it in GitHub Desktop.
Save fance2552/c2d59fcab7c63976c165aa82f998b75a to your computer and use it in GitHub Desktop.
openapi: 3.1.0
info:
title: SerpApi Google News
version: 1.0.0
description: Search Google News via SerpApi for stock-related keywords.
servers:
- url: https://serpapi.com
paths:
/search:
get:
operationId: searchNews
summary: Search Google News for stock news
parameters:
- in: query
name: engine
required: true
schema:
type: string
example: google_news
- in: query
name: q
required: true
schema:
type: string
example: premarket stock news OR earnings OR FDA approval
- in: query
name: api_key
required: true
schema:
type: string
example: 4e43b9c4c424dce525c7ca9a804ec1b6427a2535dab7322474d0a876604d99ad
- in: query
name: hl
required: false
schema:
type: string
example: en
- in: query
name: gl
required: false
schema:
type: string
example: us
responses:
'200':
description: Successful news search results
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment