Query the JFK files with an API
// text search
await jfk.search.text({
query: "oswald",
});
// or vector search
await jfk.search.vector({
query: "foreign actors",
metadata: { // filter results by document metadata
originator: { operator: "eq", value: "CIA" },
}
});
// or search by metadata
await jfk.search.metadata({
metadata: {
document_date: { operator: "lt", value: "1963-11-22" },
comments: { operator: "contains", value: "TOP SECRET" }
},
limit: 10,
});
- Pay as You Go
- No subscription required. Only pay for what you use.
- Millisecond Speeds
- Experience ultra-fast API responses in just milliseconds.
- Advanced Filtering
- Support for advanced filtering to refine your searches.
- TypeScript client
- Robust and type-safe client for seamless integration into your stack.