Guide
Knowledge Graph
Retrieve information about an entity
This example shows how to retrieve information about an entity.
GET /kg/entities/<entity_uuid>
Query parameters
entity_uuid
: The unique identifier of the entity.
example_request.py
import json
import requests
# Functions found in the section 'Quick start' under 'Getting started'
from connect_v2 import read_config, get_token
config = read_config()
host = config['api']['host']
entity_uuid = '7063d087-96b8-2cc1-ee88-c221288acc2a'
token = get_token(config)
endpoint = f'{host}/api/2.0/kg/entities/{entity_uuid}'
headers = {
'Content-Type': 'application/json',
'Authorization': f'Bearer {token}'
}
response = requests.get(endpoint, headers=headers)
print(response.json())
Result
result.json
{
"aliases": [
"Apple Computer"
],
"company_name": "Apple",
"company_type": "for_profit",
"country": "United States",
"description": "Apple is a multinational corporation that designs, manufactures, and markets mobile communication and media devices, personal computers, portable digital music players, and sells a variety of related software, services, peripherals, networking solutions, and third-party digital content and applications.\n\n\nApple provides many products and services, including iPhone; iPad; iPod; Mac; Apple TV; a portfolio of consumer and professional software applications; the iOS and OS X operating systems; iCloud; and accessories, service, and support offerings. \n\n\nIt sells its products worldwide through its retail stores, online stores, direct sales force and third-party cellular network carriers, wholesalers, retailers, and value-added resellers to the consumer and also sells third-party iPhone, iPad, Mac and iPod compatible products, including application software and accessories through its online and retail stores.\n\n\nIntroduced in 1984, the Macintosh was the first widely sold personal computer with a graphical user interface (GUI). That feature and others such as an improved floppy drive design and a low-cost hard drive that made data retrieval faster helped Apple cultivate a reputation for innovation.\n\n\nApple was named as the most admired company in the United States in 2008 and in the world from 2008 to 2012 by the Fortune magazine.\n\n\nThe company was founded by Steven Paul Jobs, Steve Wozniak, and Ronald Gerald Wayne on April 1, 1976, and is headquartered in Cupertino, California.",
"employee_count": "10000+",
"founded_on": "1976-04-01T00:00:00.000Z",
"funding_total": 6180230000,
"ipo_status": "public",
"last_funding_type": "post_ipo_equity",
"legal_name": "Apple Inc.",
"operating_status": "active",
"revenue_range": "10B+",
"sectors": [
"Consumer Electronics",
"Hardware",
"Mobile",
"Platforms",
"Software"
],
"status": "ipo",
"sub_sectors": [
"Consumer Electronics",
"Hardware",
"Mobile Devices",
"Operating Systems",
"Wearables"
]
}