Geojson request not providing valid geojson

Hello - I am trying to use the API to get a geojson response. I am using this URL structure: api.inaturalist.org/v1/observations?project_id=[public_project_ID]&format=geojson

It provides a response, but I think it is just json, not geojson. Putting it through a geojson tester I get an error saying the “type” member is not present. Is it possible to get a valid geojson using the API?

where did you even get the idea that this would return a geojson file? why do you want a geojson output?

Ah, well, guilty, I’ve let myself be led astray by chat-gpt.

I have been trying to bring some project data into ArcGIS Online, and gpt suggested that I could access a geojson via the API. However, after giving the API docs a good read, I have seen that I can call for a csv using https://www.inaturalist.org/observations.csv?project_id=[public_project_ID], which I can then pull into ArcGIS Online.

Thanks for the response :slightly_smiling_face:

Edit: I spoke too soon, that does not work to filter by the project. I am quite inexperienced using an API, and must be misunderstanding some fundamental stuff. Also I noticed that I did not use the API url, and that when I do I am getting no response.

which of the following describes what you’re trying to do?

  1. just visualizing the observations on a map
  2. #1 + want to be able to click on each marker to see details
  3. trying to do some other analysis