COBS API help

Comet Planner API

Version: 1.3 (2024 Sep)

Comet Planner API provides a method of requesting a list of observable comets in a machine-readable data.

HTTP Request


GET https://cobs.si/api/planner.api

Example Queries

https://cobs.si/api/planner.api?date=2024-09-24&loc=106
https://cobs.si/api/planner.api?date=2024-09-24&lat=46.234&long=16.543&alt=520
https://cobs.si/api/planner.api?date=2024-09-24&loc=106&lim_mag=14&min_alt=0&min_sol=0&min_moon=0
https://cobs.si/api/planner.api?date=2024-09-24&loc=106&filter=1

Query Parameters


Parameters should be used to limit the number of observations returned by the query.

Parameter Type Default Description
loc string   MPC observatory code
lat float   Location latitude in decimal degrees, positive north of equator e.g. 34.984 and NOT 34°59'2"
long float   Location longitude in decimal degrees, positive east of Greenwich e.g. -110.392 and NOT -110°23'31".  
alt float   Location elevation in meters.
date date   Session date for which you want to calculate the observable comet list.
sun_alt float -12 Sun altitude at which the the sesstion should start.
0 - Sunset
-6 - Civil twilight end (Sun altitude -6 deg)
-12 - Nautical twilight end (Sun altitude -12 deg)
-15 - Amateur astronomical twilight end (Sun altitude -15 deg)
-18 - Astronomical twilight end (Sun altitude -18 deg)
lim_mag float 15 Limiting object magnitude.
min_alt float 10 Minimum object altitude above horizon in degrees.
min_sol float 10 Minimum solar elongation in degrees.
min_moon float 10 Minimum moon elongation in degrees.
filter integer 0 Filter comets that were observed
1 - Observed in last 30 days
2 - Observed in last 1 year
3 - Observed
4 - Not observed

Data Output


Please always check the JSON payload “signature” object for the API “version”. If the version does not match the version in this document (at the top), there is no guarantee that the format has not changed.
Example "signature" object with "version" value "1.1": "signature":{"version":"1.3","source":"COBS ... API"}

Normal Data Payload


This output is the result of specifying a MPC observatory code location.
The following example query https://cobs.si/api/planner.api?loc=106 returns the following payload containing data sections objects.

{
  "location": {
    "name": "Crni Vrh",
    "lat": 45.945908,
    "long": 14.0711,
    "tz": "Europe/Ljubljana"
  },
  "sun events": {
    "Day ends": "2024-09-06 19:31 CEST",
    "Civil twilight ends": "2024-09-06 20:02 CEST",
    "Nautical twilight ends": "2024-09-06 20:38 CEST",
    "Astronomical twilight ends": "2024-09-06 21:16 CEST",
    "Astronomical twilight starts": "2024-09-07 04:47 CEST",
    "Nautical twilight starts": "2024-09-07 05:25 CEST",
    "Civil twilight starts": "2024-09-07 06:01 CEST",
    "Day starts": "2024-09-07 06:32 CEST"
  },
  "moon events": {
    "Set": "2024-09-06 20:38 CEST",
    "Rise": "2024-09-07 10:53 CEST",
    "Moon phase": 23.6
  },
  "session events": {
    "start_at": -12,
    "start_time": "2024-09-06 20:40 CEST",
    "end_time": "2024-09-07 05:23 CEST"
  },
  "limits": {
    "mag": 15,
    "alt": 10,
    "sun_elong": 10,
    "moon_elong": 10
  },
  "comet_list": [
    {
      "comet_type": "P",
      "comet_name": "13P",
      "comet_fullname": "13P/Olbers",
      "mpc_name": "13P",
      "best_time": "2024-09-06 20:40",
      "orbit_calc_source": 0,
      "magnitude": 8.2,
      "best_ra": "13:37:06.00",
      "best_dec": "15:44:30.4",
      "best_alt": 20.8,
      "sun_elongation": 39,
      "moon_elongation": 28,
      "constelation": "Coma Berenices",
      "rise_time": "2024-09-06 20:40",
      "set_time": "2024-09-06 22:46",
      "motion": 2.19,
      "pa": 125,
      "trend": "fade"
    },
    {
      "comet_type": "C",
      "comet_name": "C/2021 S3",
      "comet_fullname": "C/2021 S3 (PANSTARRS)",
      "mpc_name": "K21S030",
      "best_time": "2024-09-06 21:19",
      "orbit_calc_source": 0,
      "magnitude": 14.2,
      "best_ra": "19:21:39.20",
      "best_dec": "52:53:29.4",
      "best_alt": 83.1,
      "sun_elongation": 105,
      "moon_elongation": 99,
      "constelation": "Cygnus",
      "rise_time": "2024-09-06 20:40",
      "set_time": "2024-09-07 05:23",
      "motion": 0.69,
      "pa": 172,
      "trend": "fade"
    },
	...
  ],
  "signature": {
    "source": "COBS Query API",
    "version": "1.3",
    "date": "2024 Sep"
  }
}
Sections Output

The following sections are available for output. The detailed structure of the contents within each section are described in corresponding document sections below.

Section Description
location Information about the given location the comet list is calculated for.
sun events Twilight events calculated for the given location.
moon events Moon rise and set times calculated for the given location.
session events Session start and end times calculated for the given location.
limits Limit values used to filter the observable comets list.
comet_list List of observable comets.
signature JSON payload “signature” object with the API “version”
Structure of Sections

The following shows the JSON structure of a normal data payload containing all possible sections. The detailed structure of the contents within each section are described in corresponding document sections below.

{
  "location": {
    location info fields ...
  },
  "sun events": {
    twilight events fields ...
  },
  "moon events": {
    moon events fields ...
  },  
  "session events": {
    session events fields ...
  },  
    "limits": {
    limits fields ...
  },  
  "comet_list": {
    comet list fields ...
  },  
  "signature": {
    signature fields ...
  },
Query Location Section

The following fields are provided in the location section:

Field Name Description
location_lat Location latitide in degrees, positive north of equator e.g. 34.984 and NOT 34°59'2" or 34.984N.
location_long Location longitude in degrees, positive east of Greenwich e.g. -110.392 and NOT -110°23'31" or 110.392W.
location_elev Location altitude in meters, set to zero if you don't know.
tz Time zone for the calculated output times. By default set to local timezone calculated from the location latitude and logitude.
location_code Location MPC observatory code if given in the query.
location_name Location MPC observatory name if location was given as a MPC code.
Sun Events Section

The following fields are provided in the sun events section:

Field Name Description
Sunset Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is 0 degrees altitude.
Civil twilight ends Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is -6 degrees altitude.
Nautical twilight ends Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is -12 degrees altitude.
Astronomical twilight ends Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is -18 degrees altitude.
Astronomical twilight starts Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is -18 degrees altitude.
Nautical twilight starts Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is -12 degrees altitude.
Civil twilight starts Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is -6 degrees altitude.
Sunrise Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is 0 degrees altitude.
Moon Events Section

The following fields are provided in the moon events section:

Field Name Description
Rise Date and time YYYY-MM-DD hh:mm UTC the Moon rises during the night.
Set Date and time YYYY-MM-DD hh:mm UTC the Moon sets during the night.
Moon phase Percentage of the moon's illuminated surface visible from Earth, ranging from 0% (New Moon) to 100% (Full Moon).
Session Events Section

The following fields are provided in the session events section:

Field Name Description
start_at Sun altitude (degrees) at which the the sesstion should start.
start_time Session start date and time YYYY-MM-DD hh:mm UTC.
end_time Session end date and time YYYY-MM-DD hh:mm UTC.
Limits Section

The following fields are provided in the limits section:

Field Name Description
mag Limiting object magnitude.
alt Minimum object altitude above horizon in degrees.
sun_elong Minimum solar elongation in degrees.
moon_elong Minimum moon elongation in degrees.
Comet List Section

The following fields are provided in the comet_list section:

Field Name Description
comet_type Comet type (e.g. P, N, C, I, A or M)
comet_name Comet ICQ designation name
comet_fullname Comet full name
mpc_name Comet MPC compacted designation name
best_time Calculated comet best observation time (Date and time YYYY-MM-DD hh:mm UTC) during the observation session
orbit_calc_source Source of magnitude parameters:
1 - Current magnitude calculated using magnitude parameters derived from COBS observations from the last 30 days.
2 - Current magnitude calculated based on magnitude parameters derived from COBS observations from the last year.
3 - Current magnitude calculated based on magnitude parameters derived from all COBS observations.
4 - Too few observations have been reported to COBS during the last year. Current magnitude is calculated from MPC magnitude parameters.
magnitude Comet magnitude at the calculated best observation time
best_ra Comet Right Ascension (RA) at the best observation time
best_dec Comet Declination (DEC) at the best observation time(
best_alt Comet Altitude above horizon (Alt) at the best observation time
sun_elongation Comet elongation from the Sun in the sky in degrees.
moon_elongation Comet elongation from the Moon in the sky in degrees.
constelation Constelation name in which the comet is currently possitioned.
rise_time Calculated comet rise time (Date and time YYYY-MM-DD hh:mm UTC) during the observation session
set_time Calculated comet set time (Date and time YYYY-MM-DD hh:mm UTC) during the observation session
motion Comet motion speed in the sky in arcsec/min.
pa Comet motion position angle in the sky (0 = north, 90 = east, 180 = south, 270 = west, etc.).
trend Comet brightness trend
"bright" - comet brightness is brightening
"fade" - comet brightness is fading
"steady" - comet brightness is steady

HTTP Response Codes


All errors are returned via appropriate HTTP response codes.

HTTP Code Description Typical Usage
200 OK normal successful result for a query: object data returned (an error message is returned if the object was not found)
300 Multiple Choices the specified parameters matched more than one object
400 Bad Request the request contained invalid keywords and/or content: details returned
500 Internal Server Error the database is not available at the time of the request

Change Log


Version 1.3 (2024 Sep)

Added filter parameter to the query to enable filtering of the comets


Version 1.2 (2024 Sep)

Added mpc_name to the api response


Version 1.1 (2024 May)

Version 1.0 (2023 November)

Initial release

Comet Planner API

Version: 1.3 (2024 Sep)

Comet Planner API provides a method of requesting a list of observable comets in a machine-readable data.

HTTP Request


GET https://cobs.si/api/planner.api

Example Queries

https://cobs.si/api/planner.api?date=2024-09-24&loc=106
https://cobs.si/api/planner.api?date=2024-09-24&lat=46.234&long=16.543&alt=520
https://cobs.si/api/planner.api?date=2024-09-24&loc=106&lim_mag=14&min_alt=0&min_sol=0&min_moon=0
https://cobs.si/api/planner.api?date=2024-09-24&loc=106&filter=1

Query Parameters


Parameters should be used to limit the number of observations returned by the query.

Parameter Type Default Description
loc string   MPC observatory code
lat float   Location latitude in decimal degrees, positive north of equator e.g. 34.984 and NOT 34°59'2"
long float   Location longitude in decimal degrees, positive east of Greenwich e.g. -110.392 and NOT -110°23'31".  
alt float   Location elevation in meters.
date date   Session date for which you want to calculate the observable comet list.
sun_alt float -12 Sun altitude at which the the sesstion should start.
0 - Sunset
-6 - Civil twilight end (Sun altitude -6 deg)
-12 - Nautical twilight end (Sun altitude -12 deg)
-15 - Amateur astronomical twilight end (Sun altitude -15 deg)
-18 - Astronomical twilight end (Sun altitude -18 deg)
lim_mag float 15 Limiting object magnitude.
min_alt float 10 Minimum object altitude above horizon in degrees.
min_sol float 10 Minimum solar elongation in degrees.
min_moon float 10 Minimum moon elongation in degrees.
filter integer 0 Filter comets that were observed
1 - Observed in last 30 days
2 - Observed in last 1 year
3 - Observed
4 - Not observed

Data Output


Please always check the JSON payload “signature” object for the API “version”. If the version does not match the version in this document (at the top), there is no guarantee that the format has not changed.
Example "signature" object with "version" value "1.1": "signature":{"version":"1.3","source":"COBS ... API"}

Normal Data Payload


This output is the result of specifying a MPC observatory code location.
The following example query https://cobs.si/api/planner.api?loc=106 returns the following payload containing data sections objects.

{
  "location": {
    "name": "Crni Vrh",
    "lat": 45.945908,
    "long": 14.0711,
    "tz": "Europe/Ljubljana"
  },
  "sun events": {
    "Day ends": "2024-09-06 19:31 CEST",
    "Civil twilight ends": "2024-09-06 20:02 CEST",
    "Nautical twilight ends": "2024-09-06 20:38 CEST",
    "Astronomical twilight ends": "2024-09-06 21:16 CEST",
    "Astronomical twilight starts": "2024-09-07 04:47 CEST",
    "Nautical twilight starts": "2024-09-07 05:25 CEST",
    "Civil twilight starts": "2024-09-07 06:01 CEST",
    "Day starts": "2024-09-07 06:32 CEST"
  },
  "moon events": {
    "Set": "2024-09-06 20:38 CEST",
    "Rise": "2024-09-07 10:53 CEST",
    "Moon phase": 23.6
  },
  "session events": {
    "start_at": -12,
    "start_time": "2024-09-06 20:40 CEST",
    "end_time": "2024-09-07 05:23 CEST"
  },
  "limits": {
    "mag": 15,
    "alt": 10,
    "sun_elong": 10,
    "moon_elong": 10
  },
  "comet_list": [
    {
      "comet_type": "P",
      "comet_name": "13P",
      "comet_fullname": "13P/Olbers",
      "mpc_name": "13P",
      "best_time": "2024-09-06 20:40",
      "orbit_calc_source": 0,
      "magnitude": 8.2,
      "best_ra": "13:37:06.00",
      "best_dec": "15:44:30.4",
      "best_alt": 20.8,
      "sun_elongation": 39,
      "moon_elongation": 28,
      "constelation": "Coma Berenices",
      "rise_time": "2024-09-06 20:40",
      "set_time": "2024-09-06 22:46",
      "motion": 2.19,
      "pa": 125,
      "trend": "fade"
    },
    {
      "comet_type": "C",
      "comet_name": "C/2021 S3",
      "comet_fullname": "C/2021 S3 (PANSTARRS)",
      "mpc_name": "K21S030",
      "best_time": "2024-09-06 21:19",
      "orbit_calc_source": 0,
      "magnitude": 14.2,
      "best_ra": "19:21:39.20",
      "best_dec": "52:53:29.4",
      "best_alt": 83.1,
      "sun_elongation": 105,
      "moon_elongation": 99,
      "constelation": "Cygnus",
      "rise_time": "2024-09-06 20:40",
      "set_time": "2024-09-07 05:23",
      "motion": 0.69,
      "pa": 172,
      "trend": "fade"
    },
	...
  ],
  "signature": {
    "source": "COBS Query API",
    "version": "1.3",
    "date": "2024 Sep"
  }
}
Sections Output

The following sections are available for output. The detailed structure of the contents within each section are described in corresponding document sections below.

Section Description
location Information about the given location the comet list is calculated for.
sun events Twilight events calculated for the given location.
moon events Moon rise and set times calculated for the given location.
session events Session start and end times calculated for the given location.
limits Limit values used to filter the observable comets list.
comet_list List of observable comets.
signature JSON payload “signature” object with the API “version”
Structure of Sections

The following shows the JSON structure of a normal data payload containing all possible sections. The detailed structure of the contents within each section are described in corresponding document sections below.

{
  "location": {
    location info fields ...
  },
  "sun events": {
    twilight events fields ...
  },
  "moon events": {
    moon events fields ...
  },  
  "session events": {
    session events fields ...
  },  
    "limits": {
    limits fields ...
  },  
  "comet_list": {
    comet list fields ...
  },  
  "signature": {
    signature fields ...
  },
Query Location Section

The following fields are provided in the location section:

Field Name Description
location_lat Location latitide in degrees, positive north of equator e.g. 34.984 and NOT 34°59'2" or 34.984N.
location_long Location longitude in degrees, positive east of Greenwich e.g. -110.392 and NOT -110°23'31" or 110.392W.
location_elev Location altitude in meters, set to zero if you don't know.
tz Time zone for the calculated output times. By default set to local timezone calculated from the location latitude and logitude.
location_code Location MPC observatory code if given in the query.
location_name Location MPC observatory name if location was given as a MPC code.
Sun Events Section

The following fields are provided in the sun events section:

Field Name Description
Sunset Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is 0 degrees altitude.
Civil twilight ends Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is -6 degrees altitude.
Nautical twilight ends Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is -12 degrees altitude.
Astronomical twilight ends Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is -18 degrees altitude.
Astronomical twilight starts Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is -18 degrees altitude.
Nautical twilight starts Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is -12 degrees altitude.
Civil twilight starts Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is -6 degrees altitude.
Sunrise Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is 0 degrees altitude.
Moon Events Section

The following fields are provided in the moon events section:

Field Name Description
Rise Date and time YYYY-MM-DD hh:mm UTC the Moon rises during the night.
Set Date and time YYYY-MM-DD hh:mm UTC the Moon sets during the night.
Moon phase Percentage of the moon's illuminated surface visible from Earth, ranging from 0% (New Moon) to 100% (Full Moon).
Session Events Section

The following fields are provided in the session events section:

Field Name Description
start_at Sun altitude (degrees) at which the the sesstion should start.
start_time Session start date and time YYYY-MM-DD hh:mm UTC.
end_time Session end date and time YYYY-MM-DD hh:mm UTC.
Limits Section

The following fields are provided in the limits section:

Field Name Description
mag Limiting object magnitude.
alt Minimum object altitude above horizon in degrees.
sun_elong Minimum solar elongation in degrees.
moon_elong Minimum moon elongation in degrees.
Comet List Section

The following fields are provided in the comet_list section:

Field Name Description
comet_type Comet type (e.g. P, N, C, I, A or M)
comet_name Comet ICQ designation name
comet_fullname Comet full name
mpc_name Comet MPC compacted designation name
best_time Calculated comet best observation time (Date and time YYYY-MM-DD hh:mm UTC) during the observation session
orbit_calc_source Source of magnitude parameters:
1 - Current magnitude calculated using magnitude parameters derived from COBS observations from the last 30 days.
2 - Current magnitude calculated based on magnitude parameters derived from COBS observations from the last year.
3 - Current magnitude calculated based on magnitude parameters derived from all COBS observations.
4 - Too few observations have been reported to COBS during the last year. Current magnitude is calculated from MPC magnitude parameters.
magnitude Comet magnitude at the calculated best observation time
best_ra Comet Right Ascension (RA) at the best observation time
best_dec Comet Declination (DEC) at the best observation time(
best_alt Comet Altitude above horizon (Alt) at the best observation time
sun_elongation Comet elongation from the Sun in the sky in degrees.
moon_elongation Comet elongation from the Moon in the sky in degrees.
constelation Constelation name in which the comet is currently possitioned.
rise_time Calculated comet rise time (Date and time YYYY-MM-DD hh:mm UTC) during the observation session
set_time Calculated comet set time (Date and time YYYY-MM-DD hh:mm UTC) during the observation session
motion Comet motion speed in the sky in arcsec/min.
pa Comet motion position angle in the sky (0 = north, 90 = east, 180 = south, 270 = west, etc.).
trend Comet brightness trend
"bright" - comet brightness is brightening
"fade" - comet brightness is fading
"steady" - comet brightness is steady

HTTP Response Codes


All errors are returned via appropriate HTTP response codes.

HTTP Code Description Typical Usage
200 OK normal successful result for a query: object data returned (an error message is returned if the object was not found)
300 Multiple Choices the specified parameters matched more than one object
400 Bad Request the request contained invalid keywords and/or content: details returned
500 Internal Server Error the database is not available at the time of the request

Change Log


Version 1.3 (2024 Sep)

Added filter parameter to the query to enable filtering of the comets


Version 1.2 (2024 Sep)

Added mpc_name to the api response


Version 1.1 (2024 May)

Version 1.0 (2023 November)

Initial release

Comet Planner API

Version: 1.3 (2024 Sep)

Comet Planner API provides a method of requesting a list of observable comets in a machine-readable data.

HTTP Request


GET https://cobs.si/api/planner.api

Example Queries

https://cobs.si/api/planner.api?date=2024-09-24&loc=106
https://cobs.si/api/planner.api?date=2024-09-24&lat=46.234&long=16.543&alt=520
https://cobs.si/api/planner.api?date=2024-09-24&loc=106&lim_mag=14&min_alt=0&min_sol=0&min_moon=0
https://cobs.si/api/planner.api?date=2024-09-24&loc=106&filter=1

Query Parameters


Parameters should be used to limit the number of observations returned by the query.

Parameter Type Default Description
loc string   MPC observatory code
lat float   Location latitude in decimal degrees, positive north of equator e.g. 34.984 and NOT 34°59'2"
long float   Location longitude in decimal degrees, positive east of Greenwich e.g. -110.392 and NOT -110°23'31".  
alt float   Location elevation in meters.
date date   Session date for which you want to calculate the observable comet list.
sun_alt float -12 Sun altitude at which the the sesstion should start.
0 - Sunset
-6 - Civil twilight end (Sun altitude -6 deg)
-12 - Nautical twilight end (Sun altitude -12 deg)
-15 - Amateur astronomical twilight end (Sun altitude -15 deg)
-18 - Astronomical twilight end (Sun altitude -18 deg)
lim_mag float 15 Limiting object magnitude.
min_alt float 10 Minimum object altitude above horizon in degrees.
min_sol float 10 Minimum solar elongation in degrees.
min_moon float 10 Minimum moon elongation in degrees.
filter integer 0 Filter comets that were observed
1 - Observed in last 30 days
2 - Observed in last 1 year
3 - Observed
4 - Not observed

Data Output


Please always check the JSON payload “signature” object for the API “version”. If the version does not match the version in this document (at the top), there is no guarantee that the format has not changed.
Example "signature" object with "version" value "1.1": "signature":{"version":"1.3","source":"COBS ... API"}

Normal Data Payload


This output is the result of specifying a MPC observatory code location.
The following example query https://cobs.si/api/planner.api?loc=106 returns the following payload containing data sections objects.

{
  "location": {
    "name": "Crni Vrh",
    "lat": 45.945908,
    "long": 14.0711,
    "tz": "Europe/Ljubljana"
  },
  "sun events": {
    "Day ends": "2024-09-06 19:31 CEST",
    "Civil twilight ends": "2024-09-06 20:02 CEST",
    "Nautical twilight ends": "2024-09-06 20:38 CEST",
    "Astronomical twilight ends": "2024-09-06 21:16 CEST",
    "Astronomical twilight starts": "2024-09-07 04:47 CEST",
    "Nautical twilight starts": "2024-09-07 05:25 CEST",
    "Civil twilight starts": "2024-09-07 06:01 CEST",
    "Day starts": "2024-09-07 06:32 CEST"
  },
  "moon events": {
    "Set": "2024-09-06 20:38 CEST",
    "Rise": "2024-09-07 10:53 CEST",
    "Moon phase": 23.6
  },
  "session events": {
    "start_at": -12,
    "start_time": "2024-09-06 20:40 CEST",
    "end_time": "2024-09-07 05:23 CEST"
  },
  "limits": {
    "mag": 15,
    "alt": 10,
    "sun_elong": 10,
    "moon_elong": 10
  },
  "comet_list": [
    {
      "comet_type": "P",
      "comet_name": "13P",
      "comet_fullname": "13P/Olbers",
      "mpc_name": "13P",
      "best_time": "2024-09-06 20:40",
      "orbit_calc_source": 0,
      "magnitude": 8.2,
      "best_ra": "13:37:06.00",
      "best_dec": "15:44:30.4",
      "best_alt": 20.8,
      "sun_elongation": 39,
      "moon_elongation": 28,
      "constelation": "Coma Berenices",
      "rise_time": "2024-09-06 20:40",
      "set_time": "2024-09-06 22:46",
      "motion": 2.19,
      "pa": 125,
      "trend": "fade"
    },
    {
      "comet_type": "C",
      "comet_name": "C/2021 S3",
      "comet_fullname": "C/2021 S3 (PANSTARRS)",
      "mpc_name": "K21S030",
      "best_time": "2024-09-06 21:19",
      "orbit_calc_source": 0,
      "magnitude": 14.2,
      "best_ra": "19:21:39.20",
      "best_dec": "52:53:29.4",
      "best_alt": 83.1,
      "sun_elongation": 105,
      "moon_elongation": 99,
      "constelation": "Cygnus",
      "rise_time": "2024-09-06 20:40",
      "set_time": "2024-09-07 05:23",
      "motion": 0.69,
      "pa": 172,
      "trend": "fade"
    },
	...
  ],
  "signature": {
    "source": "COBS Query API",
    "version": "1.3",
    "date": "2024 Sep"
  }
}
Sections Output

The following sections are available for output. The detailed structure of the contents within each section are described in corresponding document sections below.

Section Description
location Information about the given location the comet list is calculated for.
sun events Twilight events calculated for the given location.
moon events Moon rise and set times calculated for the given location.
session events Session start and end times calculated for the given location.
limits Limit values used to filter the observable comets list.
comet_list List of observable comets.
signature JSON payload “signature” object with the API “version”
Structure of Sections

The following shows the JSON structure of a normal data payload containing all possible sections. The detailed structure of the contents within each section are described in corresponding document sections below.

{
  "location": {
    location info fields ...
  },
  "sun events": {
    twilight events fields ...
  },
  "moon events": {
    moon events fields ...
  },  
  "session events": {
    session events fields ...
  },  
    "limits": {
    limits fields ...
  },  
  "comet_list": {
    comet list fields ...
  },  
  "signature": {
    signature fields ...
  },
Query Location Section

The following fields are provided in the location section:

Field Name Description
location_lat Location latitide in degrees, positive north of equator e.g. 34.984 and NOT 34°59'2" or 34.984N.
location_long Location longitude in degrees, positive east of Greenwich e.g. -110.392 and NOT -110°23'31" or 110.392W.
location_elev Location altitude in meters, set to zero if you don't know.
tz Time zone for the calculated output times. By default set to local timezone calculated from the location latitude and logitude.
location_code Location MPC observatory code if given in the query.
location_name Location MPC observatory name if location was given as a MPC code.
Sun Events Section

The following fields are provided in the sun events section:

Field Name Description
Sunset Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is 0 degrees altitude.
Civil twilight ends Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is -6 degrees altitude.
Nautical twilight ends Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is -12 degrees altitude.
Astronomical twilight ends Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is -18 degrees altitude.
Astronomical twilight starts Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is -18 degrees altitude.
Nautical twilight starts Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is -12 degrees altitude.
Civil twilight starts Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is -6 degrees altitude.
Sunrise Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is 0 degrees altitude.
Moon Events Section

The following fields are provided in the moon events section:

Field Name Description
Rise Date and time YYYY-MM-DD hh:mm UTC the Moon rises during the night.
Set Date and time YYYY-MM-DD hh:mm UTC the Moon sets during the night.
Moon phase Percentage of the moon's illuminated surface visible from Earth, ranging from 0% (New Moon) to 100% (Full Moon).
Session Events Section

The following fields are provided in the session events section:

Field Name Description
start_at Sun altitude (degrees) at which the the sesstion should start.
start_time Session start date and time YYYY-MM-DD hh:mm UTC.
end_time Session end date and time YYYY-MM-DD hh:mm UTC.
Limits Section

The following fields are provided in the limits section:

Field Name Description
mag Limiting object magnitude.
alt Minimum object altitude above horizon in degrees.
sun_elong Minimum solar elongation in degrees.
moon_elong Minimum moon elongation in degrees.
Comet List Section

The following fields are provided in the comet_list section:

Field Name Description
comet_type Comet type (e.g. P, N, C, I, A or M)
comet_name Comet ICQ designation name
comet_fullname Comet full name
mpc_name Comet MPC compacted designation name
best_time Calculated comet best observation time (Date and time YYYY-MM-DD hh:mm UTC) during the observation session
orbit_calc_source Source of magnitude parameters:
1 - Current magnitude calculated using magnitude parameters derived from COBS observations from the last 30 days.
2 - Current magnitude calculated based on magnitude parameters derived from COBS observations from the last year.
3 - Current magnitude calculated based on magnitude parameters derived from all COBS observations.
4 - Too few observations have been reported to COBS during the last year. Current magnitude is calculated from MPC magnitude parameters.
magnitude Comet magnitude at the calculated best observation time
best_ra Comet Right Ascension (RA) at the best observation time
best_dec Comet Declination (DEC) at the best observation time(
best_alt Comet Altitude above horizon (Alt) at the best observation time
sun_elongation Comet elongation from the Sun in the sky in degrees.
moon_elongation Comet elongation from the Moon in the sky in degrees.
constelation Constelation name in which the comet is currently possitioned.
rise_time Calculated comet rise time (Date and time YYYY-MM-DD hh:mm UTC) during the observation session
set_time Calculated comet set time (Date and time YYYY-MM-DD hh:mm UTC) during the observation session
motion Comet motion speed in the sky in arcsec/min.
pa Comet motion position angle in the sky (0 = north, 90 = east, 180 = south, 270 = west, etc.).
trend Comet brightness trend
"bright" - comet brightness is brightening
"fade" - comet brightness is fading
"steady" - comet brightness is steady

HTTP Response Codes


All errors are returned via appropriate HTTP response codes.

HTTP Code Description Typical Usage
200 OK normal successful result for a query: object data returned (an error message is returned if the object was not found)
300 Multiple Choices the specified parameters matched more than one object
400 Bad Request the request contained invalid keywords and/or content: details returned
500 Internal Server Error the database is not available at the time of the request

Change Log


Version 1.3 (2024 Sep)

Added filter parameter to the query to enable filtering of the comets


Version 1.2 (2024 Sep)

Added mpc_name to the api response


Version 1.1 (2024 May)

Version 1.0 (2023 November)

Initial release

Comet Planner API

Version: 1.3 (2024 Sep)

Comet Planner API provides a method of requesting a list of observable comets in a machine-readable data.

HTTP Request


GET https://cobs.si/api/planner.api

Example Queries

https://cobs.si/api/planner.api?date=2024-09-24&loc=106
https://cobs.si/api/planner.api?date=2024-09-24&lat=46.234&long=16.543&alt=520
https://cobs.si/api/planner.api?date=2024-09-24&loc=106&lim_mag=14&min_alt=0&min_sol=0&min_moon=0
https://cobs.si/api/planner.api?date=2024-09-24&loc=106&filter=1

Query Parameters


Parameters should be used to limit the number of observations returned by the query.

Parameter Type Default Description
loc string   MPC observatory code
lat float   Location latitude in decimal degrees, positive north of equator e.g. 34.984 and NOT 34°59'2"
long float   Location longitude in decimal degrees, positive east of Greenwich e.g. -110.392 and NOT -110°23'31".  
alt float   Location elevation in meters.
date date   Session date for which you want to calculate the observable comet list.
sun_alt float -12 Sun altitude at which the the sesstion should start.
0 - Sunset
-6 - Civil twilight end (Sun altitude -6 deg)
-12 - Nautical twilight end (Sun altitude -12 deg)
-15 - Amateur astronomical twilight end (Sun altitude -15 deg)
-18 - Astronomical twilight end (Sun altitude -18 deg)
lim_mag float 15 Limiting object magnitude.
min_alt float 10 Minimum object altitude above horizon in degrees.
min_sol float 10 Minimum solar elongation in degrees.
min_moon float 10 Minimum moon elongation in degrees.
filter integer 0 Filter comets that were observed
1 - Observed in last 30 days
2 - Observed in last 1 year
3 - Observed
4 - Not observed

Data Output


Please always check the JSON payload “signature” object for the API “version”. If the version does not match the version in this document (at the top), there is no guarantee that the format has not changed.
Example "signature" object with "version" value "1.1": "signature":{"version":"1.3","source":"COBS ... API"}

Normal Data Payload


This output is the result of specifying a MPC observatory code location.
The following example query https://cobs.si/api/planner.api?loc=106 returns the following payload containing data sections objects.

{
  "location": {
    "name": "Crni Vrh",
    "lat": 45.945908,
    "long": 14.0711,
    "tz": "Europe/Ljubljana"
  },
  "sun events": {
    "Day ends": "2024-09-06 19:31 CEST",
    "Civil twilight ends": "2024-09-06 20:02 CEST",
    "Nautical twilight ends": "2024-09-06 20:38 CEST",
    "Astronomical twilight ends": "2024-09-06 21:16 CEST",
    "Astronomical twilight starts": "2024-09-07 04:47 CEST",
    "Nautical twilight starts": "2024-09-07 05:25 CEST",
    "Civil twilight starts": "2024-09-07 06:01 CEST",
    "Day starts": "2024-09-07 06:32 CEST"
  },
  "moon events": {
    "Set": "2024-09-06 20:38 CEST",
    "Rise": "2024-09-07 10:53 CEST",
    "Moon phase": 23.6
  },
  "session events": {
    "start_at": -12,
    "start_time": "2024-09-06 20:40 CEST",
    "end_time": "2024-09-07 05:23 CEST"
  },
  "limits": {
    "mag": 15,
    "alt": 10,
    "sun_elong": 10,
    "moon_elong": 10
  },
  "comet_list": [
    {
      "comet_type": "P",
      "comet_name": "13P",
      "comet_fullname": "13P/Olbers",
      "mpc_name": "13P",
      "best_time": "2024-09-06 20:40",
      "orbit_calc_source": 0,
      "magnitude": 8.2,
      "best_ra": "13:37:06.00",
      "best_dec": "15:44:30.4",
      "best_alt": 20.8,
      "sun_elongation": 39,
      "moon_elongation": 28,
      "constelation": "Coma Berenices",
      "rise_time": "2024-09-06 20:40",
      "set_time": "2024-09-06 22:46",
      "motion": 2.19,
      "pa": 125,
      "trend": "fade"
    },
    {
      "comet_type": "C",
      "comet_name": "C/2021 S3",
      "comet_fullname": "C/2021 S3 (PANSTARRS)",
      "mpc_name": "K21S030",
      "best_time": "2024-09-06 21:19",
      "orbit_calc_source": 0,
      "magnitude": 14.2,
      "best_ra": "19:21:39.20",
      "best_dec": "52:53:29.4",
      "best_alt": 83.1,
      "sun_elongation": 105,
      "moon_elongation": 99,
      "constelation": "Cygnus",
      "rise_time": "2024-09-06 20:40",
      "set_time": "2024-09-07 05:23",
      "motion": 0.69,
      "pa": 172,
      "trend": "fade"
    },
	...
  ],
  "signature": {
    "source": "COBS Query API",
    "version": "1.3",
    "date": "2024 Sep"
  }
}
Sections Output

The following sections are available for output. The detailed structure of the contents within each section are described in corresponding document sections below.

Section Description
location Information about the given location the comet list is calculated for.
sun events Twilight events calculated for the given location.
moon events Moon rise and set times calculated for the given location.
session events Session start and end times calculated for the given location.
limits Limit values used to filter the observable comets list.
comet_list List of observable comets.
signature JSON payload “signature” object with the API “version”
Structure of Sections

The following shows the JSON structure of a normal data payload containing all possible sections. The detailed structure of the contents within each section are described in corresponding document sections below.

{
  "location": {
    location info fields ...
  },
  "sun events": {
    twilight events fields ...
  },
  "moon events": {
    moon events fields ...
  },  
  "session events": {
    session events fields ...
  },  
    "limits": {
    limits fields ...
  },  
  "comet_list": {
    comet list fields ...
  },  
  "signature": {
    signature fields ...
  },
Query Location Section

The following fields are provided in the location section:

Field Name Description
location_lat Location latitide in degrees, positive north of equator e.g. 34.984 and NOT 34°59'2" or 34.984N.
location_long Location longitude in degrees, positive east of Greenwich e.g. -110.392 and NOT -110°23'31" or 110.392W.
location_elev Location altitude in meters, set to zero if you don't know.
tz Time zone for the calculated output times. By default set to local timezone calculated from the location latitude and logitude.
location_code Location MPC observatory code if given in the query.
location_name Location MPC observatory name if location was given as a MPC code.
Sun Events Section

The following fields are provided in the sun events section:

Field Name Description
Sunset Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is 0 degrees altitude.
Civil twilight ends Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is -6 degrees altitude.
Nautical twilight ends Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is -12 degrees altitude.
Astronomical twilight ends Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is -18 degrees altitude.
Astronomical twilight starts Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is -18 degrees altitude.
Nautical twilight starts Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is -12 degrees altitude.
Civil twilight starts Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is -6 degrees altitude.
Sunrise Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is 0 degrees altitude.
Moon Events Section

The following fields are provided in the moon events section:

Field Name Description
Rise Date and time YYYY-MM-DD hh:mm UTC the Moon rises during the night.
Set Date and time YYYY-MM-DD hh:mm UTC the Moon sets during the night.
Moon phase Percentage of the moon's illuminated surface visible from Earth, ranging from 0% (New Moon) to 100% (Full Moon).
Session Events Section

The following fields are provided in the session events section:

Field Name Description
start_at Sun altitude (degrees) at which the the sesstion should start.
start_time Session start date and time YYYY-MM-DD hh:mm UTC.
end_time Session end date and time YYYY-MM-DD hh:mm UTC.
Limits Section

The following fields are provided in the limits section:

Field Name Description
mag Limiting object magnitude.
alt Minimum object altitude above horizon in degrees.
sun_elong Minimum solar elongation in degrees.
moon_elong Minimum moon elongation in degrees.
Comet List Section

The following fields are provided in the comet_list section:

Field Name Description
comet_type Comet type (e.g. P, N, C, I, A or M)
comet_name Comet ICQ designation name
comet_fullname Comet full name
mpc_name Comet MPC compacted designation name
best_time Calculated comet best observation time (Date and time YYYY-MM-DD hh:mm UTC) during the observation session
orbit_calc_source Source of magnitude parameters:
1 - Current magnitude calculated using magnitude parameters derived from COBS observations from the last 30 days.
2 - Current magnitude calculated based on magnitude parameters derived from COBS observations from the last year.
3 - Current magnitude calculated based on magnitude parameters derived from all COBS observations.
4 - Too few observations have been reported to COBS during the last year. Current magnitude is calculated from MPC magnitude parameters.
magnitude Comet magnitude at the calculated best observation time
best_ra Comet Right Ascension (RA) at the best observation time
best_dec Comet Declination (DEC) at the best observation time(
best_alt Comet Altitude above horizon (Alt) at the best observation time
sun_elongation Comet elongation from the Sun in the sky in degrees.
moon_elongation Comet elongation from the Moon in the sky in degrees.
constelation Constelation name in which the comet is currently possitioned.
rise_time Calculated comet rise time (Date and time YYYY-MM-DD hh:mm UTC) during the observation session
set_time Calculated comet set time (Date and time YYYY-MM-DD hh:mm UTC) during the observation session
motion Comet motion speed in the sky in arcsec/min.
pa Comet motion position angle in the sky (0 = north, 90 = east, 180 = south, 270 = west, etc.).
trend Comet brightness trend
"bright" - comet brightness is brightening
"fade" - comet brightness is fading
"steady" - comet brightness is steady

HTTP Response Codes


All errors are returned via appropriate HTTP response codes.

HTTP Code Description Typical Usage
200 OK normal successful result for a query: object data returned (an error message is returned if the object was not found)
300 Multiple Choices the specified parameters matched more than one object
400 Bad Request the request contained invalid keywords and/or content: details returned
500 Internal Server Error the database is not available at the time of the request

Change Log


Version 1.3 (2024 Sep)

Added filter parameter to the query to enable filtering of the comets


Version 1.2 (2024 Sep)

Added mpc_name to the api response


Version 1.1 (2024 May)

Version 1.0 (2023 November)

Initial release

Comet Planner API

Version: 1.3 (2024 Sep)

Comet Planner API provides a method of requesting a list of observable comets in a machine-readable data.

HTTP Request


GET https://cobs.si/api/planner.api

Example Queries

https://cobs.si/api/planner.api?date=2024-09-24&loc=106
https://cobs.si/api/planner.api?date=2024-09-24&lat=46.234&long=16.543&alt=520
https://cobs.si/api/planner.api?date=2024-09-24&loc=106&lim_mag=14&min_alt=0&min_sol=0&min_moon=0
https://cobs.si/api/planner.api?date=2024-09-24&loc=106&filter=1

Query Parameters


Parameters should be used to limit the number of observations returned by the query.

Parameter Type Default Description
loc string   MPC observatory code
lat float   Location latitude in decimal degrees, positive north of equator e.g. 34.984 and NOT 34°59'2"
long float   Location longitude in decimal degrees, positive east of Greenwich e.g. -110.392 and NOT -110°23'31".  
alt float   Location elevation in meters.
date date   Session date for which you want to calculate the observable comet list.
sun_alt float -12 Sun altitude at which the the sesstion should start.
0 - Sunset
-6 - Civil twilight end (Sun altitude -6 deg)
-12 - Nautical twilight end (Sun altitude -12 deg)
-15 - Amateur astronomical twilight end (Sun altitude -15 deg)
-18 - Astronomical twilight end (Sun altitude -18 deg)
lim_mag float 15 Limiting object magnitude.
min_alt float 10 Minimum object altitude above horizon in degrees.
min_sol float 10 Minimum solar elongation in degrees.
min_moon float 10 Minimum moon elongation in degrees.
filter integer 0 Filter comets that were observed
1 - Observed in last 30 days
2 - Observed in last 1 year
3 - Observed
4 - Not observed

Data Output


Please always check the JSON payload “signature” object for the API “version”. If the version does not match the version in this document (at the top), there is no guarantee that the format has not changed.
Example "signature" object with "version" value "1.1": "signature":{"version":"1.3","source":"COBS ... API"}

Normal Data Payload


This output is the result of specifying a MPC observatory code location.
The following example query https://cobs.si/api/planner.api?loc=106 returns the following payload containing data sections objects.

{
  "location": {
    "name": "Crni Vrh",
    "lat": 45.945908,
    "long": 14.0711,
    "tz": "Europe/Ljubljana"
  },
  "sun events": {
    "Day ends": "2024-09-06 19:31 CEST",
    "Civil twilight ends": "2024-09-06 20:02 CEST",
    "Nautical twilight ends": "2024-09-06 20:38 CEST",
    "Astronomical twilight ends": "2024-09-06 21:16 CEST",
    "Astronomical twilight starts": "2024-09-07 04:47 CEST",
    "Nautical twilight starts": "2024-09-07 05:25 CEST",
    "Civil twilight starts": "2024-09-07 06:01 CEST",
    "Day starts": "2024-09-07 06:32 CEST"
  },
  "moon events": {
    "Set": "2024-09-06 20:38 CEST",
    "Rise": "2024-09-07 10:53 CEST",
    "Moon phase": 23.6
  },
  "session events": {
    "start_at": -12,
    "start_time": "2024-09-06 20:40 CEST",
    "end_time": "2024-09-07 05:23 CEST"
  },
  "limits": {
    "mag": 15,
    "alt": 10,
    "sun_elong": 10,
    "moon_elong": 10
  },
  "comet_list": [
    {
      "comet_type": "P",
      "comet_name": "13P",
      "comet_fullname": "13P/Olbers",
      "mpc_name": "13P",
      "best_time": "2024-09-06 20:40",
      "orbit_calc_source": 0,
      "magnitude": 8.2,
      "best_ra": "13:37:06.00",
      "best_dec": "15:44:30.4",
      "best_alt": 20.8,
      "sun_elongation": 39,
      "moon_elongation": 28,
      "constelation": "Coma Berenices",
      "rise_time": "2024-09-06 20:40",
      "set_time": "2024-09-06 22:46",
      "motion": 2.19,
      "pa": 125,
      "trend": "fade"
    },
    {
      "comet_type": "C",
      "comet_name": "C/2021 S3",
      "comet_fullname": "C/2021 S3 (PANSTARRS)",
      "mpc_name": "K21S030",
      "best_time": "2024-09-06 21:19",
      "orbit_calc_source": 0,
      "magnitude": 14.2,
      "best_ra": "19:21:39.20",
      "best_dec": "52:53:29.4",
      "best_alt": 83.1,
      "sun_elongation": 105,
      "moon_elongation": 99,
      "constelation": "Cygnus",
      "rise_time": "2024-09-06 20:40",
      "set_time": "2024-09-07 05:23",
      "motion": 0.69,
      "pa": 172,
      "trend": "fade"
    },
	...
  ],
  "signature": {
    "source": "COBS Query API",
    "version": "1.3",
    "date": "2024 Sep"
  }
}
Sections Output

The following sections are available for output. The detailed structure of the contents within each section are described in corresponding document sections below.

Section Description
location Information about the given location the comet list is calculated for.
sun events Twilight events calculated for the given location.
moon events Moon rise and set times calculated for the given location.
session events Session start and end times calculated for the given location.
limits Limit values used to filter the observable comets list.
comet_list List of observable comets.
signature JSON payload “signature” object with the API “version”
Structure of Sections

The following shows the JSON structure of a normal data payload containing all possible sections. The detailed structure of the contents within each section are described in corresponding document sections below.

{
  "location": {
    location info fields ...
  },
  "sun events": {
    twilight events fields ...
  },
  "moon events": {
    moon events fields ...
  },  
  "session events": {
    session events fields ...
  },  
    "limits": {
    limits fields ...
  },  
  "comet_list": {
    comet list fields ...
  },  
  "signature": {
    signature fields ...
  },
Query Location Section

The following fields are provided in the location section:

Field Name Description
location_lat Location latitide in degrees, positive north of equator e.g. 34.984 and NOT 34°59'2" or 34.984N.
location_long Location longitude in degrees, positive east of Greenwich e.g. -110.392 and NOT -110°23'31" or 110.392W.
location_elev Location altitude in meters, set to zero if you don't know.
tz Time zone for the calculated output times. By default set to local timezone calculated from the location latitude and logitude.
location_code Location MPC observatory code if given in the query.
location_name Location MPC observatory name if location was given as a MPC code.
Sun Events Section

The following fields are provided in the sun events section:

Field Name Description
Sunset Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is 0 degrees altitude.
Civil twilight ends Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is -6 degrees altitude.
Nautical twilight ends Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is -12 degrees altitude.
Astronomical twilight ends Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is -18 degrees altitude.
Astronomical twilight starts Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is -18 degrees altitude.
Nautical twilight starts Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is -12 degrees altitude.
Civil twilight starts Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is -6 degrees altitude.
Sunrise Date and time YYYY-MM-DD hh:mm UTC when sun eleavtion is 0 degrees altitude.
Moon Events Section

The following fields are provided in the moon events section:

Field Name Description
Rise Date and time YYYY-MM-DD hh:mm UTC the Moon rises during the night.
Set Date and time YYYY-MM-DD hh:mm UTC the Moon sets during the night.
Moon phase Percentage of the moon's illuminated surface visible from Earth, ranging from 0% (New Moon) to 100% (Full Moon).
Session Events Section

The following fields are provided in the session events section:

Field Name Description
start_at Sun altitude (degrees) at which the the sesstion should start.
start_time Session start date and time YYYY-MM-DD hh:mm UTC.
end_time Session end date and time YYYY-MM-DD hh:mm UTC.
Limits Section

The following fields are provided in the limits section:

Field Name Description
mag Limiting object magnitude.
alt Minimum object altitude above horizon in degrees.
sun_elong Minimum solar elongation in degrees.
moon_elong Minimum moon elongation in degrees.
Comet List Section

The following fields are provided in the comet_list section:

Field Name Description
comet_type Comet type (e.g. P, N, C, I, A or M)
comet_name Comet ICQ designation name
comet_fullname Comet full name
mpc_name Comet MPC compacted designation name
best_time Calculated comet best observation time (Date and time YYYY-MM-DD hh:mm UTC) during the observation session
orbit_calc_source Source of magnitude parameters:
1 - Current magnitude calculated using magnitude parameters derived from COBS observations from the last 30 days.
2 - Current magnitude calculated based on magnitude parameters derived from COBS observations from the last year.
3 - Current magnitude calculated based on magnitude parameters derived from all COBS observations.
4 - Too few observations have been reported to COBS during the last year. Current magnitude is calculated from MPC magnitude parameters.
magnitude Comet magnitude at the calculated best observation time
best_ra Comet Right Ascension (RA) at the best observation time
best_dec Comet Declination (DEC) at the best observation time(
best_alt Comet Altitude above horizon (Alt) at the best observation time
sun_elongation Comet elongation from the Sun in the sky in degrees.
moon_elongation Comet elongation from the Moon in the sky in degrees.
constelation Constelation name in which the comet is currently possitioned.
rise_time Calculated comet rise time (Date and time YYYY-MM-DD hh:mm UTC) during the observation session
set_time Calculated comet set time (Date and time YYYY-MM-DD hh:mm UTC) during the observation session
motion Comet motion speed in the sky in arcsec/min.
pa Comet motion position angle in the sky (0 = north, 90 = east, 180 = south, 270 = west, etc.).
trend Comet brightness trend
"bright" - comet brightness is brightening
"fade" - comet brightness is fading
"steady" - comet brightness is steady

HTTP Response Codes


All errors are returned via appropriate HTTP response codes.

HTTP Code Description Typical Usage
200 OK normal successful result for a query: object data returned (an error message is returned if the object was not found)
300 Multiple Choices the specified parameters matched more than one object
400 Bad Request the request contained invalid keywords and/or content: details returned
500 Internal Server Error the database is not available at the time of the request

Change Log


Version 1.3 (2024 Sep)

Added filter parameter to the query to enable filtering of the comets


Version 1.2 (2024 Sep)

Added mpc_name to the api response


Version 1.1 (2024 May)

Version 1.0 (2023 November)

Initial release