The Virtual Observatory
Solar system Open Database Network

You will find in this page some scripts and programs written in various languages that you can download to help you to implement the methods of the SsODnet Web service into your own application. If you develop a client or improve the code of a client, we would be grateful to you to send it to us to share it with the community of the SsODnet users. For that, please document your code so that it is comprehensible, and send it to us by email with all information which you will consider useful.

Python client

The better way to query and explore asteroid data from SsODNet is to use the rocks package, originally written and developed by Max Mahlke (OCA). This is a command-line software which requires the Python 3 programming language to be executed.

Application: rocks allows to resolve asteroid names, to explore available asteroid data via the command-line, to retrieve and compare measurements, and to retrieve parameters for thousands of asteroids in a batch-job.

Usage: Read the doc

Download and install:

# Install rocks python package
$> pip install space-rocks

# Check out the documentation in your browser
$> rocks docs

PHP client

The proposed PHP clients allow to invoke, via the HTTP protocol, the Web services SsODNet.resolver and SsODNet.datacloud. They are written for PHP7 and use the native PHP SOAP protocol.

Application: the scripts can be used standalone, or easily transformed into functions or classes to call the SsODNet resolver and datacloud methods from a service or a Web form.


$> php client_<method>.php

Available methods:

  • resolver
  • datacloud
  • getAvailability


Bash client

This simple BASH script allows to search by name a solar system object or an extrasolar planet by invoking the SsODNet.quaero API. It is written in Unix shell script language (bash), and use the external data transfert command line tool wget or curl.

Application: the scripts can easily be modified into more complexe shell scripts to fit your requirements.


$> ./ <target name>