SatNOGS DB API documentation

Hi all,

Is there anywhere some examples using the python library satnogsdbapiclient ?
I want to write a python script which for example extracts all the transmitters at a given frequency and modulation mode.
I have installed the library Python (https://pypi.org/project/satnogs-db-api-client/) but there is no explanation. The documentation is pointed to
satnogs-db API and SDK Documentation
(https://gitlab.com/librespacefoundation/satnogs/satnogs-db/-/jobs/artifacts/b44b618c048713ae97d1f22de9f94fae7a0c8471/file/satnogs-db-api-client/html2/index.html?job=api)
but the link is not valid.
Thks,
Nicolas

1 Like

I’ve opened an issue to fix the broken link. Until then I’m attaching here an html file that you can open on your browser and see details on how to use DB API Client.

index.html (895.3 KB)

2 Likes

Thank a lot fredy, your are very reactive as usual. Best regards.

1 Like

I found a problem following the provided examples when I configure API key authorization with Python3 :

satnogsdbapiclient.configuration.api_key[‘Authorization’] = ‘YOUR_API_KEY’
#I replace of course YOUR_API_KEY with my API Key
return an error
AttributeError: module ‘satnogsdbapiclient.configuration’ has no attribute ‘api_key’

So I use another solution :

configuration = satnogsdbapiclient.Configuration()
configuration.api_key[‘authorization’] = ‘YOUR_API_KEY’

And it works … It can help somebody …

4 Likes

Hi, this was useful in solving the same problem with the network api client, thanks!

However, we are still stuck with a very basic question, which I am hoping you have solved. Using the Open API functionality, how do you pass the base url of the network (or db) server to the client?

Setting configuration.host to the base url would seem to be the right answer, but it doesn’t work. How did you deal with this when accessing the DB server?

Regards

Brian