NAVER Search OKbot

NAVER Search OKbot · GPT アクション

SerpAPI Search

SerpAPI를 이용한 검색 API.

  • GET /searchsearch

    SerpAPI를 이용하여 특정 쿼리에 대한 검색 결과를 가져옵니다.

元の API スキーマ
{
  "openapi": "3.1.0",
  "info": {
    "title": "SerpAPI Search",
    "description": "SerpAPI를 이용한 검색 API.",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://serpapi.com"
    }
  ],
  "paths": {
    "/search": {
      "get": {
        "description": "SerpAPI를 이용하여 특정 쿼리에 대한 검색 결과를 가져옵니다.",
        "operationId": "search",
        "parameters": [
          {
            "name": "engine",
            "in": "query",
            "description": "사용할 검색 엔진",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "naver"
              ]
            }
          },
          {
            "name": "query",
            "in": "query",
            "description": "검색어",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "where",
            "in": "query",
            "description": "검색 위치",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "nexearch"
              ]
            }
          },
          {
            "name": "api_key",
            "in": "query",
            "description": "API 키",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "93c091b5385bdf0911d8c52b791f4da2622f0957f020f20edc77e09e47a60013"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "성공적인 검색 결과",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string"
                          },
                          "link": {
                            "type": "string"
                          },
                          "snippet": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "status": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "잘못된 요청",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "권한 없음",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "서버 오류",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {}
  }
}