UnifyAPI
← Back to catalog

opencontext.facets

mock data$0.001 / call

Get 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.

Science & Researchprovider: Opencontext#opencontext#science

Input schema

queryrequired

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.

string
item_type

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.

string

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>"}'

Try it

Paste a UnifyAPI key (create one in the dashboard) and run a real call.