Catalog API#

Served by: GeoNeMo Toolkit API. Schemas are on the schemas page.

Method

Path

Summary

GET

/v1/catalog/collections

List catalog collections

GET

/v1/catalog/collections/{collection}/metadata-fields

List catalog metadata fields

GET

/v1/catalog/collections/{collection}/records/{record_id}

Get catalog record

GET

/v1/catalog/collections/{collection}/stats

Get catalog collection stats

POST

/v1/catalog/facets

Count catalog facets

POST

/v1/catalog/ingest

Upsert catalog records

POST

/v1/catalog/ingest-directory

Ingest a media directory

POST

/v1/catalog/records

Browse catalog records

POST

/v1/catalog/records/batch

Get catalog records by ID

POST

/v1/catalog/scan

Scan catalog records

POST

/v1/catalog/search

Search catalog records

POST

/v1/catalog/search-page

Search catalog records with total

GET /v1/catalog/collections#

List catalog collections

Lists the collections the caller can browse, by name, 64 at a time, with record counts for those that hold catalog records. Collections that only hold layers are included.

A request that passes after or limit gets next_after when more collections follow; pass it as after for the next page. A request with neither gets the first 64 and no next_after.

  • Operation: listCatalogCollections

  • Access: bearer token or console session cookie

curl -X GET "https://geonemo.example.com/v1/catalog/collections" \
  -H "Authorization: Bearer $TOKEN"

Parameters

Name

In

Type

Required

Description

after

query

string or null

List the collections whose names sort after this one: the previous page’s next_after.

limit

query

integer or null

Page size; 64 when omitted.

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

OK

CollectionList

422

Validation Error

HTTPValidationError

GET /v1/catalog/collections/{collection}/metadata-fields#

List catalog metadata fields

Describes the metadata fields found in a collection, derived from a bounded scan of its records, for building filters.

  • Operation: listCatalogMetadataFields

  • Access: bearer token or console session cookie

curl -X GET "https://geonemo.example.com/v1/catalog/collections/<collection>/metadata-fields" \
  -H "Authorization: Bearer $TOKEN"

Parameters

Name

In

Type

Required

Description

collection

path

string

yes

The catalog collection name.

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

OK

MetadataFieldList

422

Validation Error

HTTPValidationError

GET /v1/catalog/collections/{collection}/records/{record_id}#

Get catalog record

Returns one record by ID. Returns 404 when it is missing, 409 when the ID token matches more than one record and 422 when the token is invalid.

  • Operation: getCatalogRecord

  • Access: bearer token or console session cookie

curl -X GET "https://geonemo.example.com/v1/catalog/collections/<collection>/records/<record_id>" \
  -H "Authorization: Bearer $TOKEN"

Parameters

Name

In

Type

Required

Description

collection

path

string

yes

The catalog collection name.

record_id

path

string

yes

The catalog record ID within the collection.

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

OK

CatalogRecord

422

Validation Error

HTTPValidationError

GET /v1/catalog/collections/{collection}/stats#

Get catalog collection stats

Returns a collection’s record count, spatial bounds and acquisition time range.

  • Operation: getCatalogCollectionStats

  • Access: bearer token or console session cookie

curl -X GET "https://geonemo.example.com/v1/catalog/collections/<collection>/stats" \
  -H "Authorization: Bearer $TOKEN"

Parameters

Name

In

Type

Required

Description

collection

path

string

yes

The catalog collection name.

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Responses

Status

Meaning

Body

200

OK

CatalogCollectionStats

422

Validation Error

HTTPValidationError

POST /v1/catalog/facets#

Count catalog facets

Counts the values of the requested fields among records that match the filters, and reports how much of the matched set each field covers. Use it to build filter choices.

  • Operation: facetCatalog

  • Access: bearer token or console session cookie

curl -X POST "https://geonemo.example.com/v1/catalog/facets" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d @body.json

Parameters

Name

In

Type

Required

Description

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Request body

Content type

Schema

Required

application/json

CatalogFacetRequest

yes

Responses

Status

Meaning

Body

200

OK

CatalogFacetResponse

422

Validation Error

HTTPValidationError

POST /v1/catalog/ingest#

Upsert catalog records

Inserts or updates catalog records in a collection. The Idempotency-Key header is required (400 when missing or invalid). Repeating a key with the same body returns the original receipt with duplicate set, and with a different body returns 409.

  • Operation: ingestCatalogRecords

  • Access: bearer token or console session cookie

curl -X POST "https://geonemo.example.com/v1/catalog/ingest" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d @body.json

Parameters

Name

In

Type

Required

Description

Idempotency-Key

header

string or null

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Request body

Content type

Schema

Required

application/json

CatalogIngestRequest

yes

Responses

Status

Meaning

Body

200

OK

CatalogIngestReceipt

422

Validation Error

HTTPValidationError

POST /v1/catalog/ingest-directory#

Ingest a media directory

Stream bounded ingestion from a directory under a configured media root.

  • Operation: ingestCatalogDirectory

  • Access: bearer token or console session cookie

curl -X POST "https://geonemo.example.com/v1/catalog/ingest-directory" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d @body.json

Parameters

Name

In

Type

Required

Description

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Request body

Content type

Schema

Required

application/json

CatalogDirectoryIngestRequest

yes

Responses

Status

Meaning

Body

200

OK

422

Validation Error

HTTPValidationError

POST /v1/catalog/records#

Browse catalog records

Pages through a collection’s records in sorted order, filtered by metadata and an optional text match. Returns total and a next_cursor for the next page. Returns 422 for an invalid request.

  • Operation: browseCatalogRecords

  • Access: bearer token or console session cookie

curl -X POST "https://geonemo.example.com/v1/catalog/records" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d @body.json

Parameters

Name

In

Type

Required

Description

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Request body

Content type

Schema

Required

application/json

CatalogBrowseRequest

yes

Responses

Status

Meaning

Body

200

OK

CatalogBrowseResponse

422

Validation Error

HTTPValidationError

POST /v1/catalog/records/batch#

Get catalog records by ID

Fetches records by ID in one call. Returns the records found and, in missing_ids, the IDs that were not found.

  • Operation: getCatalogRecords

  • Access: bearer token or console session cookie

curl -X POST "https://geonemo.example.com/v1/catalog/records/batch" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d @body.json

Parameters

Name

In

Type

Required

Description

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Request body

Content type

Schema

Required

application/json

CatalogRecordBatchRequest

yes

Responses

Status

Meaning

Body

200

OK

CatalogRecordBatchResponse

422

Validation Error

HTTPValidationError

POST /v1/catalog/scan#

Scan catalog records

Walks a collection in stable record-ID order with a keyset cursor, for complete enumeration rather than ranking. A retried durable agent task (x-geonemo-task-id) receives the page it was first given. Returns 422 for an invalid scan.

  • Operation: scanCatalogRecords

  • Access: bearer token or console session cookie

curl -X POST "https://geonemo.example.com/v1/catalog/scan" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d @body.json

Parameters

Name

In

Type

Required

Description

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Request body

Content type

Schema

Required

application/json

CatalogScanRequest

yes

Responses

Status

Meaning

Body

200

OK

CatalogScanResponse

422

Validation Error

HTTPValidationError

POST /v1/catalog/search#

Search catalog records

Searches one collection by text, bounding box, acquisition time range and exact filters, best match first. Results come in pages of limit; pass next_cursor back as cursor for the next page. The /search-page form also returns total. Returns 422 for an invalid query and 503 when the catalog is unavailable.

  • Operation: searchCatalog

  • Access: bearer token or console session cookie

curl -X POST "https://geonemo.example.com/v1/catalog/search" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d @body.json

Parameters

Name

In

Type

Required

Description

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Request body

Content type

Schema

Required

application/json

CatalogSearchRequest

yes

Responses

Status

Meaning

Body

200

OK

CatalogSearchResponse

422

Validation Error

HTTPValidationError

POST /v1/catalog/search-page#

Search catalog records with total

Searches one collection by text, bounding box, acquisition time range and exact filters, best match first. Results come in pages of limit; pass next_cursor back as cursor for the next page. The /search-page form also returns total. Returns 422 for an invalid query and 503 when the catalog is unavailable.

  • Operation: searchCatalogPage

  • Access: bearer token or console session cookie

curl -X POST "https://geonemo.example.com/v1/catalog/search-page" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d @body.json

Parameters

Name

In

Type

Required

Description

X-GeoNemo-Project-ID

header

string

Organizational project metadata only; not an authorization or tenant boundary.

Request body

Content type

Schema

Required

application/json

CatalogSearchRequest

yes

Responses

Status

Meaning

Body

200

OK

CatalogSearchPageResponse

422

Validation Error

HTTPValidationError