2017-05-11 16:39:54 +02:00
{
2018-01-16 14:20:59 +01:00
"protocol" : "rest" ,
"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" ,
"baseUrl" : "https://kgsearch.googleapis.com/" ,
"servicePath" : "" ,
"description" : "Searches the Google Knowledge Graph for entities." ,
"kind" : "discovery#restDescription" ,
"rootUrl" : "https://kgsearch.googleapis.com/" ,
"basePath" : "" ,
"ownerDomain" : "google.com" ,
2017-09-30 16:27:27 +02:00
"name" : "kgsearch" ,
"batchPath" : "batch" ,
2018-01-16 14:20:59 +01:00
"revision" : "20180104" ,
2017-09-30 16:27:27 +02:00
"documentationLink" : "https://developers.google.com/knowledge-graph/" ,
2018-01-16 14:20:59 +01:00
"id" : "kgsearch:v1" ,
2017-09-30 16:27:27 +02:00
"title" : "Knowledge Graph Search API" ,
"discoveryVersion" : "v1" ,
"ownerName" : "Google" ,
"version_module" : true ,
2017-05-11 16:39:54 +02:00
"resources" : {
"entities" : {
"methods" : {
"search" : {
2018-01-16 14:20:59 +01:00
"flatPath" : "v1/entities:search" ,
"id" : "kgsearch.entities.search" ,
"path" : "v1/entities:search" ,
"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" ,
"httpMethod" : "GET" ,
"parameterOrder" : [ ] ,
2017-05-11 16:39:54 +02:00
"response" : {
"$ref" : "SearchResponse"
} ,
"parameters" : {
2018-01-16 14:20:59 +01:00
"indent" : {
"location" : "query" ,
"description" : "Enables indenting of json results." ,
"type" : "boolean"
} ,
"languages" : {
"type" : "string" ,
"repeated" : true ,
"location" : "query" ,
"description" : "The list of language codes (defined in ISO 693) to run the query with,\ne.g. 'en'."
} ,
"ids" : {
"type" : "string" ,
"repeated" : true ,
"location" : "query" ,
"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"
} ,
2017-05-11 16:39:54 +02:00
"limit" : {
2018-01-16 14:20:59 +01:00
"location" : "query" ,
2017-07-23 09:51:42 +02:00
"description" : "Limits the number of entities to be returned." ,
2018-01-16 14:20:59 +01:00
"format" : "int32" ,
"type" : "integer"
2017-05-11 16:39:54 +02:00
} ,
"prefix" : {
2018-01-16 14:20:59 +01:00
"type" : "boolean" ,
2017-09-30 16:27:27 +02:00
"location" : "query" ,
2018-01-16 14:20:59 +01:00
"description" : "Enables prefix match against names and aliases of entities"
2017-05-11 16:39:54 +02:00
} ,
"query" : {
2017-07-23 09:51:42 +02:00
"location" : "query" ,
2017-09-30 16:27:27 +02:00
"description" : "The literal query string for search." ,
"type" : "string"
2017-07-23 09:51:42 +02:00
} ,
"types" : {
2017-09-30 16:27:27 +02:00
"type" : "string" ,
"repeated" : true ,
"location" : "query" ,
2018-01-16 14:20:59 +01:00
"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-05-11 16:39:54 +02:00
}
2018-01-16 14:20:59 +01:00
}
2017-05-11 16:39:54 +02:00
}
}
}
} ,
"parameters" : {
2017-09-30 16:27:27 +02:00
"access_token" : {
2018-01-16 14:20:59 +01:00
"location" : "query" ,
2017-09-30 16:27:27 +02:00
"description" : "OAuth access token." ,
2018-01-16 14:20:59 +01:00
"type" : "string"
2017-05-11 16:39:54 +02:00
} ,
2017-09-30 16:27:27 +02:00
"key" : {
2018-01-16 14:20:59 +01:00
"type" : "string" ,
2017-07-23 09:51:42 +02:00
"location" : "query" ,
2018-01-16 14:20:59 +01:00
"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-07-23 09:51:42 +02:00
} ,
"quotaUser" : {
2018-01-16 14:20:59 +01:00
"type" : "string" ,
2017-07-23 09:51:42 +02:00
"location" : "query" ,
2018-01-16 14:20:59 +01: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."
2017-07-23 09:51:42 +02:00
} ,
"pp" : {
"location" : "query" ,
"description" : "Pretty-print response." ,
2018-01-16 14:20:59 +01:00
"type" : "boolean" ,
"default" : "true"
2017-07-23 09:51:42 +02:00
} ,
"oauth_token" : {
2018-01-16 14:20:59 +01:00
"type" : "string" ,
2017-07-23 09:51:42 +02:00
"location" : "query" ,
2018-01-16 14:20:59 +01:00
"description" : "OAuth 2.0 token for the current user."
2017-07-23 09:51:42 +02:00
} ,
"bearer_token" : {
2018-01-16 14:20:59 +01:00
"type" : "string" ,
2017-07-23 09:51:42 +02:00
"location" : "query" ,
2018-01-16 14:20:59 +01:00
"description" : "OAuth bearer token."
2017-07-23 09:51:42 +02:00
} ,
"upload_protocol" : {
"location" : "query" ,
2018-01-16 14:20:59 +01:00
"description" : "Upload protocol for media (e.g. \"raw\", \"multipart\")." ,
"type" : "string"
2017-07-23 09:51:42 +02:00
} ,
"prettyPrint" : {
2018-01-16 14:20:59 +01:00
"type" : "boolean" ,
2017-09-30 16:27:27 +02:00
"default" : "true" ,
2018-01-16 14:20:59 +01:00
"location" : "query" ,
"description" : "Returns response with indentations and line breaks."
2017-07-23 09:51:42 +02:00
} ,
"uploadType" : {
"location" : "query" ,
"description" : "Legacy upload protocol for media (e.g. \"media\", \"multipart\")." ,
"type" : "string"
} ,
"fields" : {
2017-09-30 16:27:27 +02:00
"type" : "string" ,
2017-07-23 09:51:42 +02:00
"location" : "query" ,
2017-09-30 16:27:27 +02:00
"description" : "Selector specifying which fields to include in a partial response."
} ,
"$.xgafv" : {
"type" : "string" ,
"enumDescriptions" : [
"v1 error format" ,
"v2 error format"
] ,
"location" : "query" ,
"enum" : [
"1" ,
"2"
] ,
"description" : "V1 error format."
2018-01-16 14:20:59 +01:00
} ,
"callback" : {
"location" : "query" ,
"description" : "JSONP" ,
"type" : "string"
} ,
"alt" : {
"type" : "string" ,
"enumDescriptions" : [
"Responses with Content-Type of application/json" ,
"Media download with context-dependent Content-Type" ,
"Responses with Content-Type of application/x-protobuf"
] ,
"location" : "query" ,
"description" : "Data format for response." ,
"default" : "json" ,
"enum" : [
"json" ,
"media" ,
"proto"
]
2017-05-11 16:39:54 +02:00
}
} ,
"schemas" : {
"SearchResponse" : {
2017-07-23 09:51:42 +02:00
"description" : "Response message includes the context and a list of matching results\nwhich contain the detail of associated entities." ,
2017-05-11 16:39:54 +02:00
"type" : "object" ,
"properties" : {
2018-01-16 14:20:59 +01:00
"@type" : {
"description" : "The schema type of top-level JSON-LD object, e.g. ItemList." ,
"type" : "any"
2017-07-23 09:51:42 +02:00
} ,
"@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-05-11 16:39:54 +02:00
} ,
2018-01-16 14:20:59 +01:00
"itemListElement" : {
"type" : "array" ,
"items" : {
"type" : "any"
} ,
"description" : "The item list of search results."
2017-05-11 16:39:54 +02:00
}
} ,
2017-07-23 09:51:42 +02:00
"id" : "SearchResponse"
2017-05-11 16:39:54 +02:00
}
2018-01-16 14:20:59 +01:00
}
2017-05-11 16:39:54 +02:00
}