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