Skip to main content

VSP API for fetching photometry by Chart ID

2 posts / 0 new
Last post
MMU
MMU's picture
VSP API for fetching photometry by Chart ID

I've been using the VSP API for fetching CCD photometry tables using the variable star's name just fine. I've got a project underway to detect photometry changes by comparing the current photometry table to a previously-fetched table. To do that, I tried using the version of the VSP API that allows fetching photometry using chart ID, e.g.:

https://www.aavso.org/cgi-bin/vsp.pl?chartid=16940AU&fov=30&maglimit=16.5&ccdtable=on&delimited=yes

What is provided back in the response includes only one star, and that star has an incorrect RA of 00:00:00.

But if I do a query using the starname, everything seems okay:

https://www.aavso.org/cgi-bin/vsp.pl?name=AX%20And&charttitle=AX%20And&fov=30&maglimit=16.5&ccdtable=on&delimited=yes

Have I stumbled on a bug? Or am I mis-using the API? Is this how fetching by chart ID is supposed to work? (And, is there an easier way to know when the photometry for a given star is changed?)

- Mark Munkacsy, MMU

Portsmouth, RI (USA)

SGEO
SGEO's picture
VSP API for fetching photometry by Chart ID

The API to use to fetch photometry is:
https://www.aavso.org/apps/vsp/api/chart/16940AU/?format=xml

The old API using vsp.pl is deprecated. This kind of dodges your question of "is there a bug" here.

We are trying to keep the https://www.aavso.org/apis-aavso-resources page up to date. And if you have questions, please do ask. And yes, I see that this reply to your question is a year old. Sigh.

The second question you ask is pretty interesting: Is there an easier way to know when the photometry for a given star is changed? There should be a way to query the VSD (the db holding the comp star references) or one could be made. So, please do ask that question again.

George

 

 

Log in to post comments
AAVSO 49 Bay State Rd. Cambridge, MA 02138 aavso@aavso.org 617-354-0484