{
  "version": "v1",
  "id": "kgsearch:v1",
  "discoveryVersion": "v1",
  "basePath": "",
  "kind": "discovery#restDescription",
  "version_module": true,
  "mtlsRootUrl": "https://kgsearch.mtls.googleapis.com/",
  "documentationLink": "https://developers.google.com/knowledge-graph/",
  "ownerDomain": "google.com",
  "ownerName": "Google",
  "title": "Knowledge Graph Search API",
  "description": "Searches the Google Knowledge Graph for entities.",
  "servicePath": "",
  "schemas": {
    "SearchResponse": {
      "type": "object",
      "description": "Response message includes the context and a list of matching results which contain the detail of associated entities.",
      "id": "SearchResponse",
      "properties": {
        "@context": {
          "type": "any",
          "description": "The local context applicable for the response. See more details at http://www.w3.org/TR/json-ld/#context-definitions."
        },
        "itemListElement": {
          "description": "The item list of search results.",
          "type": "array",
          "items": {
            "type": "any"
          }
        },
        "@type": {
          "type": "any",
          "description": "The schema type of top-level JSON-LD object, e.g. ItemList."
        }
      }
    }
  },
  "name": "kgsearch",
  "baseUrl": "https://kgsearch.googleapis.com/",
  "resources": {
    "entities": {
      "methods": {
        "search": {
          "httpMethod": "GET",
          "parameters": {
            "prefix": {
              "description": "Enables prefix match against names and aliases of entities",
              "location": "query",
              "type": "boolean"
            },
            "ids": {
              "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",
              "type": "string",
              "repeated": true
            },
            "query": {
              "type": "string",
              "description": "The literal query string for search.",
              "location": "query"
            },
            "indent": {
              "description": "Enables indenting of json results.",
              "location": "query",
              "type": "boolean"
            },
            "languages": {
              "description": "The list of language codes (defined in ISO 693) to run the query with, e.g. 'en'.",
              "location": "query",
              "type": "string",
              "repeated": true
            },
            "types": {
              "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",
              "type": "string",
              "repeated": true
            },
            "limit": {
              "format": "int32",
              "description": "Limits the number of entities to be returned.",
              "location": "query",
              "type": "integer"
            }
          },
          "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",
          "parameterOrder": [],
          "response": {
            "$ref": "SearchResponse"
          },
          "id": "kgsearch.entities.search",
          "path": "v1/entities:search",
          "flatPath": "v1/entities:search"
        }
      }
    }
  },
  "batchPath": "batch",
  "revision": "20260424",
  "icons": {
    "x16": "http://www.google.com/images/icons/product/search-16.gif",
    "x32": "http://www.google.com/images/icons/product/search-32.gif"
  },
  "protocol": "rest",
  "rootUrl": "https://kgsearch.googleapis.com/",
  "parameters": {
    "prettyPrint": {
      "type": "boolean",
      "description": "Returns response with indentations and line breaks.",
      "default": "true",
      "location": "query"
    },
    "upload_protocol": {
      "type": "string",
      "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
      "location": "query"
    },
    "oauth_token": {
      "description": "OAuth 2.0 token for the current user.",
      "location": "query",
      "type": "string"
    },
    "alt": {
      "description": "Data format for response.",
      "location": "query",
      "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"
      ],
      "type": "string",
      "enum": [
        "json",
        "media",
        "proto"
      ]
    },
    "fields": {
      "description": "Selector specifying which fields to include in a partial response.",
      "location": "query",
      "type": "string"
    },
    "quotaUser": {
      "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.",
      "location": "query",
      "type": "string"
    },
    "access_token": {
      "type": "string",
      "description": "OAuth access token.",
      "location": "query"
    },
    "uploadType": {
      "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
      "location": "query",
      "type": "string"
    },
    "$.xgafv": {
      "description": "V1 error format.",
      "location": "query",
      "type": "string",
      "enum": [
        "1",
        "2"
      ],
      "enumDescriptions": [
        "v1 error format",
        "v2 error format"
      ]
    },
    "callback": {
      "description": "JSONP",
      "location": "query",
      "type": "string"
    },
    "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.",
      "location": "query",
      "type": "string"
    }
  }
}
