{
  "protocol": "rest",
  "basePath": "",
  "id": "kgsearch:v1",
  "ownerDomain": "google.com",
  "revision": "20260424",
  "resources": {
    "entities": {
      "methods": {
        "search": {
          "description": "Searches Knowledge Graph for entities that match the constraints. A list of matched entities will be returned in response, which will be in JSON-LD format and compatible with http://schema.org",
          "httpMethod": "GET",
          "parameterOrder": [],
          "flatPath": "v1/entities:search",
          "response": {
            "$ref": "SearchResponse"
          },
          "id": "kgsearch.entities.search",
          "path": "v1/entities:search",
          "parameters": {
            "query": {
              "location": "query",
              "description": "The literal query string for search.",
              "type": "string"
            },
            "languages": {
              "repeated": true,
              "type": "string",
              "description": "The list of language codes (defined in ISO 693) to run the query with, e.g. 'en'.",
              "location": "query"
            },
            "types": {
              "repeated": true,
              "type": "string",
              "description": "Restricts returned entities with these types, e.g. Person (as defined in http://schema.org/Person). If multiple types are specified, returned entities will contain one or more of these types.",
              "location": "query"
            },
            "prefix": {
              "location": "query",
              "type": "boolean",
              "description": "Enables prefix match against names and aliases of entities"
            },
            "ids": {
              "repeated": true,
              "type": "string",
              "description": "The list of entity id to be used for search instead of query string. To specify multiple ids in the HTTP request, repeat the parameter in the URL as in ...?ids=A&ids=B",
              "location": "query"
            },
            "indent": {
              "type": "boolean",
              "description": "Enables indenting of json results.",
              "location": "query"
            },
            "limit": {
              "type": "integer",
              "description": "Limits the number of entities to be returned.",
              "location": "query",
              "format": "int32"
            }
          }
        }
      }
    }
  },
  "mtlsRootUrl": "https://kgsearch.mtls.googleapis.com/",
  "batchPath": "batch",
  "discoveryVersion": "v1",
  "documentationLink": "https://developers.google.com/knowledge-graph/",
  "parameters": {
    "access_token": {
      "type": "string",
      "description": "OAuth access token.",
      "location": "query"
    },
    "callback": {
      "type": "string",
      "description": "JSONP",
      "location": "query"
    },
    "fields": {
      "type": "string",
      "description": "Selector specifying which fields to include in a partial response.",
      "location": "query"
    },
    "key": {
      "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
      "type": "string",
      "location": "query"
    },
    "prettyPrint": {
      "description": "Returns response with indentations and line breaks.",
      "type": "boolean",
      "default": "true",
      "location": "query"
    },
    "quotaUser": {
      "location": "query",
      "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
      "type": "string"
    },
    "$.xgafv": {
      "enum": [
        "1",
        "2"
      ],
      "location": "query",
      "type": "string",
      "description": "V1 error format.",
      "enumDescriptions": [
        "v1 error format",
        "v2 error format"
      ]
    },
    "alt": {
      "location": "query",
      "enum": [
        "json",
        "media",
        "proto"
      ],
      "default": "json",
      "enumDescriptions": [
        "Responses with Content-Type of application/json",
        "Media download with context-dependent Content-Type",
        "Responses with Content-Type of application/x-protobuf"
      ],
      "description": "Data format for response.",
      "type": "string"
    },
    "upload_protocol": {
      "location": "query",
      "type": "string",
      "description": "Upload protocol for media (e.g. \"raw\", \"multipart\")."
    },
    "oauth_token": {
      "type": "string",
      "description": "OAuth 2.0 token for the current user.",
      "location": "query"
    },
    "uploadType": {
      "type": "string",
      "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
      "location": "query"
    }
  },
  "icons": {
    "x32": "http://www.google.com/images/icons/product/search-32.gif",
    "x16": "http://www.google.com/images/icons/product/search-16.gif"
  },
  "ownerName": "Google",
  "baseUrl": "https://kgsearch.googleapis.com/",
  "kind": "discovery#restDescription",
  "description": "Searches the Google Knowledge Graph for entities.",
  "version": "v1",
  "schemas": {
    "SearchResponse": {
      "properties": {
        "itemListElement": {
          "items": {
            "type": "any"
          },
          "type": "array",
          "description": "The item list of search results."
        },
        "@context": {
          "type": "any",
          "description": "The local context applicable for the response. See more details at http://www.w3.org/TR/json-ld/#context-definitions."
        },
        "@type": {
          "type": "any",
          "description": "The schema type of top-level JSON-LD object, e.g. ItemList."
        }
      },
      "id": "SearchResponse",
      "type": "object",
      "description": "Response message includes the context and a list of matching results which contain the detail of associated entities."
    }
  },
  "version_module": true,
  "name": "kgsearch",
  "servicePath": "",
  "rootUrl": "https://kgsearch.googleapis.com/",
  "title": "Knowledge Graph Search API"
}
