Construction Projects GO

Construction Projects GO · GPT 작업

SerpApi Search Service

  • GET /searchPerform a search using SerpApi
원본 API 스키마
{
  "openapi": "3.1.0",
  "info": {
    "title": "SerpApi Search Service",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://serpapi.com"
    }
  ],
  "paths": {
    "/search": {
      "get": {
        "summary": "Perform a search using SerpApi",
        "operationId": "seachGoogle",
        "parameters": [
          {
            "name": "api_key",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "e9e94247f1171ae1909304f729ac7a7378b8409686d13937d66f09bd8c0dfc33"
              ]
            }
          },
          {
            "in": "query",
            "name": "engine",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The search engine to use, e.g., 'google'."
          },
          {
            "in": "query",
            "name": "q",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The query string for the search."
          },
          {
            "in": "query",
            "name": "location",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "The geographical location for the search."
          },
          {
            "in": "query",
            "name": "google_domain",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "The specific Google domain to use for the search."
          },
          {
            "in": "query",
            "name": "gl",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "The country to use for the search."
          },
          {
            "in": "query",
            "name": "hl",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "The language setting for the search."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    }
  }
}