Published
Edited
May 20, 2022
2 forks
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
endpoint = ({
description:'v1 Observations Search',
method:'GET',
baseURL:'https://api.inaturalist.org/v1/observations',
docURL:'https://api.inaturalist.org/v1/docs/#!/Observations/get_observations',
})
Insert cell
// iNaturalist will return no more than 10000 records for a set of requests with the same base parameters.
// Most endpoints will return a maximum of 200 records per page, though this limit may vary by endpoint.
maxRecs = ({total:10000, perPage:200})
Insert cell
// Target a 1 sec (1000 ms) delay between requests, to remain below iNaturalist's API request limits.
// For more info, see API Recommended Practices
apiRequestDelay = 1000
Insert cell
// These are example parameter strings.
// You could also save your own set of strings here for easy future reference.
exampleParams = [
{string:'user_id=kueda,loarie&taxon_id=3',description:'birds observed by @kueda or @loarie'},
{string:'taxon_id=47157&term_id=1&term_value_id=6',description:'Lepidopteran larvae (caterpillars)'},
{string:'threatened=true&field:Eating=',description:'threatened organisms eating things'},
{string:'d1=2020-01-01&d2=2020-03-31&sounds=true',description:'observations with sounds from Q1 2020'},
{string:'not_in_place=6,11&place_id=1&iconic_taxa=Actinopterygii',description:'ray-finned fish in the US excl. HI/AK'},
{string:'lat=37.423056&lng=141.033056&radius=50',description:'obs within 50km of Fukushima Daiichi'},
]
Insert cell
// Normally, actions would be triggered with each keystroke in a standard input box.
// This provides a way for the entire set of parameters to be typed in before taking any action.
// An alternative to using an input box like this would be to just set the string as a cell value.
import {formWithSubmit} from "@forresto/form-input-with-submit"
Insert cell
// used for displaying data in a table
import {table} from "@tmcw/tables/2"
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more