Resolve entities (POST)
POST /v2/resolve
Resolve external IDs, names, or coordinates to Data Commons DCIDs.
Request Body required
Section titled “Request Body required ”-
ID to ID: nodes = [“wikidataId/CA”, “wikidataId/MA”] property = ”<-wikidataId->nutsCode”
-
Coordinate (latitude#longitude) to DCID: nodes = [“34.56#-23.12”, “-22.11#44.55”] property = ”<-geoCoordinate->dcid”
-
Description (name) to DCID: nodes = [“Mountain View”, “New York”] property = ”<-description->dcid” or ”<-description{typeOf:City}->dcid”
-
ID to ID: nodes = [“wikidataId/CA”, “wikidataId/MA”] property = ”<-wikidataId->nutsCode”
-
Coordinate (latitude#longitude) to DCID: nodes = [“34.56#-23.12”, “-22.11#44.55”] property = ”<-geoCoordinate->dcid”
-
Description (name) to DCID: nodes = [“Mountain View”, “New York”] property = ”<-description->dcid” or ”<-description{typeOf:City}->dcid”
object
Optional name of a specific custom resolver to use. If not provided, defaults to place resolution using the property param. Supported Values:
- “indicator”: Resolves Statistical Variables and Topics.
Optional target for the resolution request. This parameter controls which Data Commons instances are used for resolution. Supported Values:
- “base_only”: Uses only the base Data Commons instance (remote).
- “custom_only”: Uses only the custom Data Commons instance (local).
- “base_and_custom”: Uses both base and custom instances.
Responses
Section titled “ Responses ”A successful response.
object
object
object
The DCID of the resolved entity.
The dominant type of the entity (e.g. “Place”, “StatisticalVariable”).
Auxiliary information describing the match quality or context. Flexible key-value pairs depending on the resolver used.
For resolver=“indicator”:
- “score”: The cosine similarity score of the match (e.g. “0.98”).
- “sentence”: The specific description sentence that matched the query.
object
All types associated with this entity.
default
Section titled “default ”An unexpected error response.