Knowledge Graph Search API
Searches the Google Knowledge Graph for entities.
Data & analytics#openapi#analytics#media
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
Searches the Google Knowledge Graph for entities.
Endpoints 1
entities
- GETSearches Knowledge Graph for entities that match the constraints
/v1/entities:search?ids=string&indent=true&languages=string&limit=0&prefix=true&query=string&types=stringSearches 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…
API details
- Base URL
https://kgsearch.googleapis.com- Authentication
- OAuth 2.0 (authorization code flow)
An API key in the key query parameter - Operations
- 1 operation on 1 pathGET 1
- Main resources
- entities 1
- Response formats
application/json- Description format
- Google API Discovery, API version
v1 - Links
- Documentation · OpenAPI document
- Listed from
- Google API Discovery document (googleapis/discovery-artifact-manager) (Apache-2.0)
How to test the Knowledge Graph Search API in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the Knowledge Graph Search API collection, without the publisher's secrets.
- Add your credentialsThis API uses OAuth 2.0 (authorization code flow). Add yours in the collection's variables or an environment; the requests already reference it.
- Send a requestPick an endpoint, for example “Searches Knowledge Graph for entities that match the constraints” (GET /v1/entities:search?ids=string&indent=true&languages=string&limit=0&prefix=true&query=string&types=string), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Knowledge Graph Search API?
Searches the Google Knowledge Graph for entities. It is listed under Data & analytics and has 1 endpoint.
Who publishes the Knowledge Graph Search API?
It is listed from Google's public API description (an OpenAPI document), not published by Google on Swastik Codes. Anyone who controls googleapis.com can claim the profile by adding a DNS TXT record.
What is the base URL of the Knowledge Graph Search API?
Requests go to https://kgsearch.googleapis.com. Endpoint paths are added to this base URL.
How do I authenticate with the Knowledge Graph Search API?
It accepts 2 methods: OAuth 2.0 (authorization code flow); an API key in the key query parameter.
How many endpoints does the Knowledge Graph Search API have?
1 operation on 1 path (1 GET). The largest groups are entities.
Is forking the Knowledge Graph Search API free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.