Fashion & Style Advisor | Outfits, Beauty, Budget

Fashion & Style Advisor | Outfits, Beauty, Budget · GPT-Aktionen

Google Custom Search API

Interact with Google's Custom Search JSON API to retrieve search results.

  • GET /Perform a search query

    Retrieves search results using Google's Custom Search JSON API.

Ursprüngliches API-Schema
{
  "openapi": "3.1.0",
  "info": {
    "title": "Google Custom Search API",
    "description": "Interact with Google's Custom Search JSON API to retrieve search results.",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://www.googleapis.com/customsearch/v1"
    }
  ],
  "paths": {
    "/": {
      "get": {
        "operationId": "performSearchQuery",
        "summary": "Perform a search query",
        "description": "Retrieves search results using Google's Custom Search JSON API.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "The search query string.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cx",
            "in": "query",
            "required": true,
            "description": "The custom search engine ID, fixed to '26009ee33094a451f'.",
            "schema": {
              "type": "string",
              "enum": [
                "26009ee33094a451f"
              ]
            }
          },
          {
            "name": "key",
            "in": "query",
            "required": true,
            "description": "API key for authenticating requests, fixed to 'AIzaSyB7viZUJptWJHZO1vqc92TVlhM6h-tJ2Og'.",
            "schema": {
              "type": "string",
              "enum": [
                "AIzaSyB7viZUJptWJHZO1vqc92TVlhM6h-tJ2Og"
              ]
            }
          },
          {
            "name": "num",
            "in": "query",
            "required": true,
            "description": "Number of search results to return, fixed to 5.",
            "schema": {
              "type": "integer",
              "enum": [
                5
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response with search results.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "description": "The search results.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string",
                            "description": "Title of the search result."
                          },
                          "link": {
                            "type": "string",
                            "description": "URL of the search result."
                          },
                          "snippet": {
                            "type": "string",
                            "description": "Summary of the search result."
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request."
          },
          "401": {
            "description": "Unauthorized. API key may be missing or invalid."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {}
  }
}