Newsphere Insights

Newsphere Insights · GPT Actions

SerpApi Google News Search

API for performing Google News searches via SerpApi

  • GET /searchPerform Google News Search
原始 API 定义
{
    "openapi": "3.0.0",
    "info": {
        "title": "SerpApi Google News Search",
        "description": "API for performing Google News searches via SerpApi",
        "version": "1.0.0"
    },
    "servers": [
        {
            "url": "https://serpapi.com"
        }
    ],
    "paths": {
        "/search": {
            "get": {
                "operationId": "googleNewsSearch",
                "summary": "Perform Google News Search",
                "parameters": [
                    {
                        "name": "engine",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "example": "google_news"
                        }
                    },
                    {
                        "name": "q",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "example": "pizza"
                        }
                    },
                    {
                        "name": "api_key",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "enum": ["f51f40452afc0153d584de4c3d929c6a05cb65c6354a95d129887a90632b2d11"]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "results": {
                                            "type": "array",
                                            "items": {
                                                "type": "object"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}