List available catalogs
Retrieve a list of all available data catalogs in the system.Query parameters
Whether to include detailed collection statistics for each catalog
Response
Returns an array of catalog objects. Ifget_details=true, each catalog includes MongoDB collection statistics.
Name of the catalog (MongoDB collection name)
Collection statistics (only when
get_details=true). Includes document count, size, indexes, and other MongoDB collection metadata.Catalogs cannot have names that start with
system. or match protected collection names used internally by BOOM (e.g., users, filters, babamul_users).Get catalog indexes
Retrieve index information for a specific catalog. Indexes improve query performance for frequently accessed fields.Path parameters
Name of the catalog (case insensitive), e.g.,
ztf, gaia, panstarrsResponse
Returns an array of index objects with MongoDB index information.Name of the index
Index key specification (fields and sort order)
Index version
Whether the index enforces uniqueness
Whether the index is sparse (only indexes documents with the indexed field)
Error responses
404 Not Found - Catalog doesn’t exist:Get sample documents
Retrieve random sample documents from a catalog to explore its schema and data structure.Path parameters
Name of the catalog (case insensitive), e.g.,
ztf, gaia, panstarrsQuery parameters
Number of random sample documents to return. Must be between 1 and 1000.
Response
Returns an array of random documents from the catalog. The exact structure depends on the catalog schema.Error responses
404 Not Found - Catalog doesn’t exist:Use cases
Explore available data
Before querying a catalog, list all available catalogs to see what data sources are loaded:Understand catalog schema
Retrieve sample documents to understand the structure and fields available for querying:Check query optimization
Inspect indexes to understand which fields are optimized for querying:Best practices
- Use details sparingly - Only request detailed catalog information when needed, as it requires additional database queries
- Check indexes - Before building complex queries, check which fields are indexed for optimal performance
- Sample before querying - Review sample documents to understand the catalog schema before writing queries
- Case insensitive - Catalog names are case insensitive, but use consistent casing for clarity
- Reasonable sample sizes - Keep sample sizes small (10-100 documents) to avoid unnecessary data transfer