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