WAMO API (Where Are My Observations)¶
The WAMO API helps investigate individual observations. It can be used to check the status of submitted observations.
The Original WAMO Tool leverages this API behind the scenes.
Endpoint¶
Method: GET
Input Formats¶
You can query the API with up to ~50k identifiers. Each identifier may return up to 100k observations.
Note
Astrometry will be suppressed for unpublished observations.
The following identifier formats are accepted (can be mixed):
1. Tracklet Submission ID (trksub) and Station Code (stn)¶
If you submitted with ADES, or don't have a unique observation ID, specify your trkSub and stn code, separated by a space:
2. Observation ID (obsid)¶
If you received an acknowledgement message with unique observation IDs:
3. MPC 1992 80- or 160-column Observation String (obs80)¶
If you submitted in the MPC 1992 80- or 160-column format, paste the observation exactly as originally submitted:
4. Submission Block ID¶
If you have submission block identifiers available:
Query Payload Formats¶
You can query the API in two ways:
1. List of observations (returns JSON):
2. With a "string" element:
Including this "magic" element returns the same text as the Original WAMO Tool.
The "string" item can be in any position of the list.
Examples¶
cURL¶
curl -X GET -H "Accept: application/json" \
https://data.minorplanetcenter.net/api/wamo \
-H "Content-type: application/json" \
-d '["5T0D452 703", "L4eBVG000000CfiO010000A9a"]'
Python¶
import requests
url = "https://data.minorplanetcenter.net/api/wamo"
obs_list = ['P11JuVG F51']
response = requests.get(url, json=obs_list)
response.raise_for_status()
wamo_response = response.json()
# To get the original WAMO string format:
response = requests.get(url, json=['string'] + obs_list)
response.raise_for_status()
wamo_response = response.text