Access millions of museum specimens from organizations around the world
Access millions of museum specimens from organizations around the world via the iDigBio API.
import requests
# Note: Actual API endpoint and authentication details are not available in the provided content.
# This is a generic placeholder for a GET request.
url = "https://api.idigbio.org/v2/records/summary" # Hypothetical endpoint, replace with actual API endpoint
headers = {
"Accept": "application/json"
# "Authorization": "Bearer YOUR_API_KEY" # Uncomment and replace if API key is required
}
try:
response = requests.get(url, headers=headers)
response.raise_for_status() # Raise an exception for HTTP errors
print(response.json())
except requests.exceptions.RequestException as e:
print(f"An error occurred: {e}")Last 50 checks (10 min intervals)