Querying Data
The GSM query endpoints use a shared filtering syntax based on query parameters.
This applies to:
/catalogue-metadatafor catalogue metadata rows./local-sky-modelfor sky component rows (after cone search and catalogue selection).
Supported operators
Operator |
Description |
Example |
|---|---|---|
|
Equality comparison (default) |
|
|
Not equal |
|
|
Greater than |
|
|
Greater than or equal to |
|
|
Less than |
|
|
Less than or equal to |
|
|
Case-insensitive substring search |
|
|
Case-insensitive prefix search |
|
|
Case-insensitive suffix search |
|
|
Match any value in a comma-separated list |
|
Range queries
Combine minimum and maximum bounds using gte and lte.
Metadata example:
GET /catalogue-metadata?version__gte=2.0&version__lte=3.0
Flux example:
GET /local-sky-model?ra_deg=70&dec_deg=4&fov_deg=1&catalogue_name=example&version=1.0.0&i_pol_jy__gte=0.5&i_pol_jy__lte=1.0
Sorting, field selection, and limits
The shared query parser also supports:
sort: Order results by one or more fields. Prefix a field with-for descending order. Example:sort=-i_pol_jy,ra_degsorts byi_pol_jydescending, thenra_degascending.fields: Select which columns to include in the response. Provide a comma-separated list of field names. Example:fields=ra_deg,dec_deg,i_pol_jyreturns only those columns in each result.limit: Restrict the maximum number of rows returned. Example:limit=100returns at most 100 results.
Full example combining these options:
GET /local-sky-model?sort=-i_pol_jy&fields=ra_deg,dec_deg,i_pol_jy&limit=50