Catalog API#
Served by: GeoNeMo Toolkit API. Schemas are on the schemas page.
Method |
Path |
Summary |
|---|---|---|
|
|
List catalog collections |
|
|
List catalog metadata fields |
|
|
Get catalog record |
|
|
Get catalog collection stats |
|
|
Count catalog facets |
|
|
Upsert catalog records |
|
|
Ingest a media directory |
|
|
Browse catalog records |
|
|
Get catalog records by ID |
|
|
Scan catalog records |
|
|
Search catalog records |
|
|
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:
listCatalogCollectionsAccess: 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 |
|---|---|---|---|---|
|
query |
string or null |
List the collections whose names sort after this one: the previous page’s next_after. |
|
|
query |
integer or null |
Page size; 64 when omitted. |
|
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
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:
listCatalogMetadataFieldsAccess: 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 |
|---|---|---|---|---|
|
path |
string |
yes |
The catalog collection name. |
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
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:
getCatalogRecordAccess: 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 |
|---|---|---|---|---|
|
path |
string |
yes |
The catalog collection name. |
|
path |
string |
yes |
The catalog record ID within the collection. |
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
GET /v1/catalog/collections/{collection}/stats#
Get catalog collection stats
Returns a collection’s record count, spatial bounds and acquisition time range.
Operation:
getCatalogCollectionStatsAccess: 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 |
|---|---|---|---|---|
|
path |
string |
yes |
The catalog collection name. |
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
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:
facetCatalogAccess: 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 |
|---|---|---|---|---|
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Request body
Content type |
Schema |
Required |
|---|---|---|
|
yes |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
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:
ingestCatalogRecordsAccess: 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 |
|---|---|---|---|---|
|
header |
string or null |
||
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Request body
Content type |
Schema |
Required |
|---|---|---|
|
yes |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
POST /v1/catalog/ingest-directory#
Ingest a media directory
Stream bounded ingestion from a directory under a configured media root.
Operation:
ingestCatalogDirectoryAccess: 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 |
|---|---|---|---|---|
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Request body
Content type |
Schema |
Required |
|---|---|---|
|
yes |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
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:
browseCatalogRecordsAccess: 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 |
|---|---|---|---|---|
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Request body
Content type |
Schema |
Required |
|---|---|---|
|
yes |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
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:
getCatalogRecordsAccess: 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 |
|---|---|---|---|---|
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Request body
Content type |
Schema |
Required |
|---|---|---|
|
yes |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
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:
scanCatalogRecordsAccess: 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 |
|---|---|---|---|---|
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Request body
Content type |
Schema |
Required |
|---|---|---|
|
yes |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
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:
searchCatalogAccess: 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 |
|---|---|---|---|---|
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Request body
Content type |
Schema |
Required |
|---|---|---|
|
yes |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |
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:
searchCatalogPageAccess: 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 |
|---|---|---|---|---|
|
header |
string |
Organizational project metadata only; not an authorization or tenant boundary. |
Request body
Content type |
Schema |
Required |
|---|---|---|
|
yes |
Responses
Status |
Meaning |
Body |
|---|---|---|
|
OK |
|
|
Validation Error |