Search the catalog#

Find and read records of imagery and other collections: list collections, search, scan, and read one record.

Prerequisites#

  • A connected client (Use the Python client) with services:read.

  • MCP tools: catalog_list_collections, catalog_search, catalog_scan, catalog_get_record.

Steps#

  1. List collections:

    for item in client.catalog.list_collections():
        print(item.name, item.record_count)
    

    REST: GET /v1/catalog/collections.

  2. Search one collection by text, metadata, box and time:

    from datetime import datetime, timezone
    from geonemo.client import CatalogSearchRequest
    
    page = client.catalog.search(
        CatalogSearchRequest(
            collection="preview-imagery",
            text="harbor",
            filters={"platform": "sentinel-2"},
            bbox=(4.0, 51.5, 4.8, 52.0),
            when_from=datetime(2026, 1, 1, tzinfo=timezone.utc),
            limit=20,
        )
    )
    for hit in page.items:
        print(hit.id, hit.score)
    

    REST: POST /v1/catalog/search with the same fields as JSON. Use POST /v1/catalog/search-page and search_page for paging with cursor. Search filters match exact values. For a condition object (exists, gte, lte, gt, lt, contains or one_of), list records with browse (POST /v1/catalog/records), for example {"cloud_cover": {"lte": 5}}.

  3. Scan a collection completely, in stable order:

    from geonemo.client.catalog_scan import CatalogScanRequest
    
    cursor = None
    while True:
        result = client.catalog.scan(
            CatalogScanRequest(collection="preview-imagery", cursor=cursor)
        )
        for record in result.items:
            print(record.id)
        cursor = result.next_cursor
        if cursor is None:
            break
    

    REST: POST /v1/catalog/scan. Filters are limited to sensor, platform, instrument, product and modality.

  4. Read one record:

    record = client.catalog.get_record("preview-imagery", "preview-coast-001")
    

    REST: GET /v1/catalog/collections/{collection}/records/{record_id}. The client returns None for an unknown record.

Result#

Search returns ranked hits that are only discovery: read the exact record before acting on it. More calls: collection_stats, metadata_fields, get_records (up to 500 IDs), facets. See Catalog API.