This page documents the OgmAPI V2 (currently in deployment). For the current OgmAPI V1 access, check https://ogmapi.fr/docs/api.html.
Note that all endpoints are documented through the swagger interface.
Accessing the API requires a verified free account. If you do not have an account, you can signup here.
First, you need to create an API token in the account page. Save this token somewhere safe as you won't be able to access it anymore.
With that token, you can query all endpoints by adding the following HTTP header:
Authorization: Token <token_value>
Python example using the requests library:
import requests
url = 'https://api.ogmapi.fr/ogmapi/dataset/'
headers = {'Authorization': 'Token <token_value>'}
print(requests.get(url, headers=headers))
# Returns: <Response [200]>