opencontext.facets
mock data$0.001 / callGet Open Context Search Facets
Retrieve aggregated facet statistics for a search query across Open Context without downloading individual records. Returns: total matched record count, query time, earliest and latest date range in BCE/CE across all matches, geographic distribution (continent-level facets with counts, e.g. Asia 99K, Europe 89K), item type breakdown (Subjects of Observation, Media, Documents, Projects), top matching excavation projects with counts, and linked-data description facets (Creator, License, Subject, etc.). Use this tool to quickly understand the scope and geographic/temporal distribution of archaeological records matching a query before retrieving individual items with opencontext.archaeology.search. Pass an empty string to get global database statistics.
Input schema
Search query to compute facets for (e.g. "Roman pottery", "Bronze Age"). Use an empty string "" to get facets across the entire Open Context database.
Optional filter to restrict facet computation to a specific item type. "subjects" for excavated objects; "media" for images/3D; "documents" for field notes; "all" or omit to aggregate across all types.
Call via REST
curl -X POST https://unifyapi.pro/api/call/opencontext.facets \
-H "Authorization: Bearer uak_live_..." \
-H "Content-Type: application/json" \
-d '{"query":"<query>","item_type":"<item_type>"}'