2017-08-05 18:17:15 +00:00
{
2018-01-23 18:40:42 +00:00
"title" : "Knowledge Graph Search API" ,
2017-10-01 08:13:39 +00:00
"ownerName" : "Google" ,
2018-01-23 18:40:42 +00:00
"discoveryVersion" : "v1" ,
2017-10-01 08:13:39 +00:00
"version_module" : true ,
2017-08-05 18:17:15 +00:00
"resources" : {
"entities" : {
"methods" : {
"search" : {
2017-10-22 08:07:36 +00:00
"description" : "Searches Knowledge Graph for entities that match the constraints.\nA list of matched entities will be returned in response, which will be in\nJSON-LD format and compatible with http://schema.org" ,
2017-08-05 18:17:15 +00:00
"response" : {
"$ref" : "SearchResponse"
} ,
2018-01-23 18:40:42 +00:00
"parameterOrder" : [ ] ,
"httpMethod" : "GET" ,
2017-08-05 18:17:15 +00:00
"parameters" : {
2018-01-23 18:40:42 +00:00
"types" : {
"description" : "Restricts returned entities with these types, e.g. Person\n(as defined in http://schema.org/Person). If multiple types are specified,\nreturned entities will contain one or more of these types." ,
2017-12-03 20:01:25 +00:00
"type" : "string" ,
"repeated" : true ,
"location" : "query"
2017-10-22 08:07:36 +00:00
} ,
2018-01-23 18:40:42 +00:00
"indent" : {
"location" : "query" ,
"description" : "Enables indenting of json results." ,
"type" : "boolean"
} ,
"languages" : {
"location" : "query" ,
"description" : "The list of language codes (defined in ISO 693) to run the query with,\ne.g. 'en'." ,
"type" : "string" ,
"repeated" : true
} ,
"ids" : {
2017-12-03 20:01:25 +00:00
"location" : "query" ,
2018-01-23 18:40:42 +00:00
"description" : "The list of entity id to be used for search instead of query string.\nTo specify multiple ids in the HTTP request, repeat the parameter in the\nURL as in ...?ids=A&ids=B" ,
"type" : "string" ,
"repeated" : true
} ,
"limit" : {
2017-10-22 08:07:36 +00:00
"description" : "Limits the number of entities to be returned." ,
2017-12-03 20:01:25 +00:00
"format" : "int32" ,
2018-01-23 18:40:42 +00:00
"type" : "integer" ,
"location" : "query"
2017-10-22 08:07:36 +00:00
} ,
"prefix" : {
"description" : "Enables prefix match against names and aliases of entities" ,
"type" : "boolean" ,
"location" : "query"
} ,
"query" : {
"description" : "The literal query string for search." ,
2017-12-03 20:01:25 +00:00
"type" : "string" ,
"location" : "query"
2017-08-05 18:17:15 +00:00
}
} ,
2018-01-23 18:40:42 +00:00
"flatPath" : "v1/entities:search" ,
"path" : "v1/entities:search" ,
"id" : "kgsearch.entities.search"
2017-08-05 18:17:15 +00:00
}
}
}
} ,
"parameters" : {
2018-01-23 18:40:42 +00:00
"uploadType" : {
"description" : "Legacy upload protocol for media (e.g. \"media\", \"multipart\")." ,
2017-12-03 20:01:25 +00:00
"type" : "string" ,
"location" : "query"
2017-10-01 08:13:39 +00:00
} ,
2018-01-23 18:40:42 +00:00
"fields" : {
2017-10-01 08:13:39 +00:00
"location" : "query" ,
2018-01-23 18:40:42 +00:00
"description" : "Selector specifying which fields to include in a partial response." ,
2017-10-22 08:07:36 +00:00
"type" : "string"
2017-10-01 08:13:39 +00:00
} ,
"$.xgafv" : {
2018-01-23 18:40:42 +00:00
"enumDescriptions" : [
"v1 error format" ,
"v2 error format"
] ,
"location" : "query" ,
2017-12-03 20:01:25 +00:00
"enum" : [
"1" ,
"2"
] ,
2017-10-22 08:07:36 +00:00
"description" : "V1 error format." ,
2018-01-23 18:40:42 +00:00
"type" : "string"
} ,
"callback" : {
"description" : "JSONP" ,
2017-10-01 08:13:39 +00:00
"type" : "string" ,
2017-12-03 20:01:25 +00:00
"location" : "query"
2017-10-22 08:07:36 +00:00
} ,
"alt" : {
"enumDescriptions" : [
"Responses with Content-Type of application/json" ,
"Media download with context-dependent Content-Type" ,
"Responses with Content-Type of application/x-protobuf"
2017-10-01 08:13:39 +00:00
] ,
2017-10-22 08:07:36 +00:00
"location" : "query" ,
"description" : "Data format for response." ,
"default" : "json" ,
"enum" : [
"json" ,
"media" ,
"proto"
] ,
"type" : "string"
} ,
2018-01-23 18:40:42 +00:00
"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." ,
2017-10-22 08:07:36 +00:00
"type" : "string" ,
"location" : "query"
} ,
2018-01-23 18:40:42 +00:00
"access_token" : {
"description" : "OAuth access token." ,
2017-10-22 08:07:36 +00:00
"type" : "string" ,
"location" : "query"
} ,
"quotaUser" : {
2018-01-23 18:40:42 +00:00
"location" : "query" ,
2017-10-22 08:07:36 +00:00
"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." ,
2018-01-23 18:40:42 +00:00
"type" : "string"
2017-10-22 08:07:36 +00:00
} ,
"pp" : {
2018-01-23 18:40:42 +00:00
"location" : "query" ,
2017-10-22 08:07:36 +00:00
"description" : "Pretty-print response." ,
"type" : "boolean" ,
2018-01-23 18:40:42 +00:00
"default" : "true"
} ,
"oauth_token" : {
"description" : "OAuth 2.0 token for the current user." ,
"type" : "string" ,
2017-10-22 08:07:36 +00:00
"location" : "query"
2017-12-03 20:01:25 +00:00
} ,
"bearer_token" : {
"location" : "query" ,
"description" : "OAuth bearer token." ,
"type" : "string"
} ,
"upload_protocol" : {
"location" : "query" ,
"description" : "Upload protocol for media (e.g. \"raw\", \"multipart\")." ,
"type" : "string"
} ,
"prettyPrint" : {
"description" : "Returns response with indentations and line breaks." ,
"type" : "boolean" ,
2018-01-23 18:40:42 +00:00
"default" : "true" ,
"location" : "query"
2017-08-05 18:17:15 +00:00
}
} ,
"schemas" : {
"SearchResponse" : {
"description" : "Response message includes the context and a list of matching results\nwhich contain the detail of associated entities." ,
"type" : "object" ,
"properties" : {
"@context" : {
"description" : "The local context applicable for the response. See more details at\nhttp://www.w3.org/TR/json-ld/#context-definitions." ,
"type" : "any"
2017-10-01 08:13:39 +00:00
} ,
2017-12-03 20:01:25 +00:00
"itemListElement" : {
"description" : "The item list of search results." ,
"type" : "array" ,
"items" : {
"type" : "any"
}
2018-01-23 18:40:42 +00:00
} ,
"@type" : {
"description" : "The schema type of top-level JSON-LD object, e.g. ItemList." ,
"type" : "any"
2017-08-05 18:17:15 +00:00
}
2017-09-21 15:48:45 +00:00
} ,
"id" : "SearchResponse"
2017-08-05 18:17:15 +00:00
}
2017-10-01 08:13:39 +00:00
} ,
2018-01-23 18:40:42 +00:00
"protocol" : "rest" ,
2017-10-01 08:13:39 +00:00
"icons" : {
2018-01-23 18:40:42 +00:00
"x32" : "http://www.google.com/images/icons/product/search-32.gif" ,
"x16" : "http://www.google.com/images/icons/product/search-16.gif"
2017-10-01 08:13:39 +00:00
} ,
"version" : "v1" ,
"baseUrl" : "https://kgsearch.googleapis.com/" ,
2017-12-03 20:01:25 +00:00
"kind" : "discovery#restDescription" ,
2018-01-23 18:40:42 +00:00
"description" : "Searches the Google Knowledge Graph for entities." ,
"servicePath" : "" ,
2017-12-03 20:01:25 +00:00
"rootUrl" : "https://kgsearch.googleapis.com/" ,
"basePath" : "" ,
"ownerDomain" : "google.com" ,
"name" : "kgsearch" ,
"batchPath" : "batch" ,
2018-01-23 18:40:42 +00:00
"revision" : "20180104" ,
2017-12-03 20:01:25 +00:00
"documentationLink" : "https://developers.google.com/knowledge-graph/" ,
2018-01-23 18:40:42 +00:00
"id" : "kgsearch:v1"
2017-08-05 18:17:15 +00:00
}