How to apply for an API App ID

Hi, I want to download my observations from the API, but I also want to see the actual locations, not the obscured versions. The Doc say I must apply for permission to create an API so I can validate via oauth.

QUESTION: How do I apply? When I click the button to apply, I get to the screen that says I must apply, but then cannot go any further.

Thanks
Peter

1 Like

Welcome to the forum!

You don’t actually need an app to get your observations with true locations from the API.

Here’s an example for how to do it with python:

import requests

# authorization token comes from https://www.inaturalist.org/users/api_token
# must be logged in to get it, expires after 24 hrs

response = requests.get(
    'https://api.inaturalist.org/v1/observations?user_id=peterswart', 
    headers={'Authorization': 'eyJhXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXABC'}    
)

The true coordinates are in a field called private_location.

If you do still want to apply for app ownership, it looks like your account doesn’t meet the requirement for 10 improving IDs in the last month. Once you meet that requirement, you can access the form.

3 Likes

the basic iNaturalist observation CSV export does provide actual locations. is there a particular reason you want to use the API instead?

1 Like

Adding the Authorization key to the headers works!
I can now see my private locations.
Thanks for the help.

1 Like

I am lazy, and do not want to have to download the data each time I need a new data set. I am analyzing the data in Qlik Sense. Using the above solution, I can use the REST connector in Qlik to get my obsured locations.
Thanks all.
Problem solved.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.