APIHub
Back to Explore

Knowledge Graph Search API

The Knowledge Graph Search API offers a GET /v1/entities:search endpoint that lets you query Google’s Knowledge Graph for entities using parameters such as a literal query string, specific IDs, language codes, type filters, prefix matching, result limits, and formatting options, and returns the matched entities in JSON‑LD format compatible with schema.org.

Analytics
none
HTTPS
CORS: Unknown
Description enriched
Visit official documentation

Latency

1452ms p95

Uptime

100.0% 30d

Playground

Verified

live

Endpoints

REST · JSON
GET

/v1/entities:search

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

  • ids (query) — 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
  • indent (query) — Enables indenting of json results.
  • languages (query) — The list of language codes (defined in ISO 693) to run the query with, e.g. 'en'.
  • limit (query, limit) — Limits the number of entities to be returned.
  • prefix (query) — Enables prefix match against names and aliases of entities
  • query (query) — The literal query string for search.
  • types (query) — 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.

1 endpoint auto-detected

curl -X GET \
  "https://kgsearch.googleapis.com/v1/entities:search"

kgsearch.googleapis.com · HTTPS only