Filtering a satnogs database query

Hi,
I just wanted to know whether there is an easy way to get a list of all the scheduled observations for a specific satellite that will be processed in the future?

The following URL gives me all observations for a specific satellite but how to filter by something like
‘start >= 2018-11-28:00:00:00’ ??

https://network-dev.satnogs.org/api/observations/?format=json&satellite__norad_cat_id=28654

Hi!

You can filter for

  • start time greater or equal to a specified time
  • end time smaller or equal to a specified time

example: https://network-dev.satnogs.org/api/observations/?format=json&satellite__norad_cat_id=28654&start=2018-11-29T00:00:00

no documentation yet. The server-side implementation can be found here: https://gitlab.com/librespacefoundation/satnogs/satnogs-network/blob/dev/network/api/filters.py#L7

Sincerely, Fabian

Hi @kerel ,
I searched for this in the source code but could not find it.

Thanks for your help, it works :+1:

Hello,
is there a limit for API requests?
I found out that I get only 25 future observations for any satellite using the API. When I check the observations website there are more than 25 future observations.

Example right now: Unisat-6 https://network.satnogs.org/api/observations/?format=json&satellite__norad_cat_id=40012&start=2019-01-02T15:09:22Z

38 observations vs 25 observations :frowning:

Is there an explanation for this and a way to get all observations using the API?

Thanks for any help!

look for page 2:
https://network.satnogs.org/api/observations/?format=json&page=2&satellite__norad_cat_id=40012&start=2019-01-02T15:09:22Z

1 Like

Ah, cool. Thanks.
Is there a way to determine the total number of pages with a simple request?

Ok, there is a “next” and “previous”.
I will continue with the requests library in my python project.