Documentation
Documentation
https://www.inaturalist.org/pages/api+reference
RateLimits
https://raw.githubusercontent.com/api-evangelist/inaturalist/main/rate-limits/rate-limits.yml
swagger: '2.0'
info:
title: iNaturalist Annotations Taxa API
description: '# https://api.inaturalist.org/v1/
[iNaturalist](https://www.inaturalist.org/) is a global community of
naturalists, scientists, and members of the public sharing over a million
wildlife sightings to teach one another about the natural world while
creating high quality citizen science data for science and conservation.
These API methods return data in JSON/JSONP and PNG response formats. They
are meant to supplement the existing [iNaturalist
API](https://www.inaturalist.org/pages/api+reference), implemented in Ruby
on Rails, which has more functionality and supports more write operations,
but tends to be slower and have less consistent response formats. Visit our
[developers page](https://www.inaturalist.org/pages/developers) for more
information. Write operations that expect and return JSON describe a single
`body` parameter that represents the request body, which should be specified
as JSON. See the "Model" of each body parameter for attributes that we
accept in these JSON objects.
Multiple values for a single URL parameter should be separated by commas,
e.g. `taxon_id=1,2,3`.
Map tiles are generated using the
[node-mapnik](https://github.com/mapnik/node-mapnik) library, following the
XYZ map tiling scheme. The "Observation Tile" methods accept nearly all the
parameters of the observation search APIs, and will generate map tiles
reflecting the same observations returned by searches. These
"Observation Tile" methods have corresponding
[UTFGrid](https://github.com/mapbox/utfgrid-spec) JSON
responses which return information needed to make interactive maps.
Authentication in the Node API is handled via JSON Web Tokens (JWT). To
obtain one, make an [OAuth-authenticated
request](http://www.inaturalist.org/pages/api+reference#auth) to
https://www.inaturalist.org/users/api_token. Each JWT will expire after 24
hours. Authentication required for all PUT and POST requests. Some GET
requests will also include private information like hidden coordinates if
the authenticated user has permission to view them.
Photos served from https://static.inaturalist.org and
https://inaturalist-open-data.s3.amazonaws.com have multiple size
variants and not all size variants are returned in responses. To access
other sizes, the photo URL can be modified to replace only the size
qualifier (each variant shares the exact same extension). The domain a photo
is hosted under reflects the license under which the photo is being shared,
and the domain may change over time if the license changes. Photos in
the `inaturalist-open-data` domain are shared under open licenses. These can
be accessed in bulk in the [iNaturalist AWS Open Dataset](
https://registry.opendata.aws/inaturalist-open-data/). Photos in the
`static.inaturalist.org` domain do not have open licenses.
The available photo sizes are:
* original (max 2048px in either dimension)
* large (max 1024px in either dimension)
* medium (max 500px in either dimension)
* small (max 240px in either dimension)
* thumb (max 100px in either dimension)
* square (75px square)
iNaturalist Website: https://www.inaturalist.org/
Open Source Software: https://github.com/inaturalist/
## Terms of Use
Use of this API is subject to the iNaturalist
[Terms of Service](https://www.inaturalist.org/terms) and
[Privacy Policy](https://www.inaturalist.org/privacy). We will block any
use of our API that violates our Terms or Privacy Policy without notice.
The API is intended to support application development, not data scraping.
For pre- generated data exports, see
https://www.inaturalist.org/pages/developers.
Please note that we throttle API usage to a max of 100 requests per minute,
though we ask that you try to keep it to 60 requests per minute or lower,
and to keep under 10,000 requests per day. If we notice usage that has
serious impact on our performance we may institute blocks without
notification.
Terms of Service: https://www.inaturalist.org/terms
Privacy Policy: https://www.inaturalist.org/privacy
'
version: 1.3.0
basePath: /v1
schemes:
- http
- https
produces:
- application/json
tags:
- name: Taxa
description: Search and fetch
paths:
/taxa/{id}:
get:
summary: Taxon Details
description: 'Given an ID, or an array of IDs in comma-delimited format, returns
corresponding taxa. A maximum of 30 results will be returned
'
parameters:
- $ref: '#/parameters/path_multi_id'
- $ref: '#/parameters/rank_level'
tags:
- Taxa
responses:
'200':
description: 'Returns an object with metadata and a results array of taxa
'
schema:
$ref: '#/definitions/TaxaShowResponse'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
/taxa:
get:
summary: Taxon Search
description: 'Given zero to many of following parameters, returns taxa matching the search criteria
'
parameters:
- $ref: '#/parameters/autocomplete_q_not_required'
- name: is_active
type: boolean
in: query
description: Taxon is `active`
- name: id
type: array
items:
type: integer
in: query
description: Comma-separated list of taxon IDs
- $ref: '#/parameters/parent_id'
- $ref: '#/parameters/rank'
- $ref: '#/parameters/rank_level'
- $ref: '#/parameters/id_above'
- $ref: '#/parameters/id_below'
- $ref: '#/parameters/per_page'
- $ref: '#/parameters/locale'
- $ref: '#/parameters/preferred_place_id'
- $ref: '#/parameters/only_id'
- $ref: '#/parameters/all_names'
- $ref: '#/parameters/order'
- $ref: '#/parameters/taxa_order_by'
tags:
- Taxa
responses:
'200':
description: 'Returns an object with search metadata and a results array of taxa
'
schema:
$ref: '#/definitions/TaxaShowResponse'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
/taxa/autocomplete:
get:
summary: Taxon Autocomplete
description: 'Given an string, returns taxa with names starting with the search term
'
parameters:
- $ref: '#/parameters/autocomplete_q'
- name: is_active
type: boolean
in: query
description: Taxon is `active`
- $ref: '#/parameters/taxa_taxon_id'
- $ref: '#/parameters/rank'
- $ref: '#/parameters/rank_level'
- name: per_page
type: string
in: query
description: Number of results to return in a `page`. The maximum value is 30 for this endpoint
- $ref: '#/parameters/locale'
- $ref: '#/parameters/preferred_place_id'
- $ref: '#/parameters/all_names'
tags:
- Taxa
responses:
'200':
description: 'Returns an object with search metadata and a results array of taxa
'
schema:
$ref: '#/definitions/TaxaAutocompleteResponse'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
definitions:
Error:
type: object
properties:
code:
type: integer
message:
type: string
Photo:
type: object
properties:
id:
type: integer
attribution:
type: string
license_code:
type: string
url:
type: string
ShowTaxon:
allOf:
- $ref: '#/definitions/CoreTaxon'
- type: object
properties:
ancestor_ids:
type: array
items:
type: integer
colors:
type: array
items:
$ref: '#/definitions/Color'
conservation_status:
$ref: '#/definitions/ConservationStatus'
conservation_statuses:
type: array
items:
$ref: '#/definitions/TaxonConservationStatus'
default_photo:
$ref: '#/definitions/TaxonPhoto'
establishment_means:
$ref: '#/definitions/EstablishmentMeans'
observations_count:
type: integer
preferred_establishment_means:
type: string
TaxonConservationStatus:
allOf:
- $ref: '#/definitions/RawConservationStatus'
- type: object
properties:
place:
$ref: '#/definitions/CorePlace'
Color:
type: object
properties:
id:
type: integer
value:
type: string
EstablishmentMeans:
type: object
properties:
establishment_means:
type: string
place:
$ref: '#/definitions/CorePlace'
AutocompleteTaxon:
allOf:
- $ref: '#/definitions/CoreTaxon'
- type: object
properties:
default_photo:
$ref: '#/definitions/TaxonPhoto'
matched_term:
type: string
observations_count:
type: integer
ConservationStatus:
type: object
properties:
place_id:
type: integer
place:
$ref: '#/definitions/CorePlace'
status:
type: string
TaxonPhoto:
allOf:
- $ref: '#/definitions/Photo'
- type: object
properties:
medium_url:
type: string
square_url:
type: string
CorePlace:
type: object
properties:
id:
type: integer
name:
type: string
display_name:
type: string
CoreTaxon:
type: object
properties:
id:
type: integer
iconic_taxon_id:
type: integer
iconic_taxon_name:
type: string
is_active:
type: boolean
name:
type: string
preferred_common_name:
type: string
rank:
type: string
rank_level:
type: number
RawConservationStatus:
type: object
properties:
source_id:
type: integer
description: 'Identifier for the iNat source record associated with this status,
retrievable via https://www.inaturalist.org/sources/:id.json
(this endpoint is not a part of our public API and is thus subject to
change or removal)
'
authority:
type: string
description: 'Organization that declared this status
'
status:
type: string
description: 'Body of the status, often coded, particularly when the status comes
from the IUCN or NatureServe. Consult the authority and/or the
status URL for details about the meanings of codes.
'
status_name:
type: string
description: 'Human-readable name of the status if it was coded.
'
iucn:
type: integer
description: 'Coded value representing the equivalent IUCN status. Mappings:
NOT_EVALUATED = 0, DATA_DEFICIENT = 5, LEAST_CONCERN = 10,
NEAR_THREATENED = 20, VULNERABLE = 30, ENDANGERED = 40,
CRITICALLY_ENDANGERED = 50, EXTINCT_IN_THE_WILD = 60, EXTINCT = 70
'
geoprivacy:
type: string
description: 'Default geoprivacy for observations of this taxon in the status''s place.
'
BaseResponse:
type: object
properties:
total_results:
type: integer
page:
type: integer
per_page:
type: integer
TaxaShowResponse:
allOf:
- $ref: '#/definitions/BaseResponse'
- required:
- results
properties:
results:
type: array
items:
$ref: '#/definitions/ShowTaxon'
TaxaAutocompleteResponse:
allOf:
- $ref: '#/definitions/BaseResponse'
- required:
- results
properties:
results:
type: array
items:
$ref: '#/definitions/AutocompleteTaxon'
parameters:
taxa_order_by:
name: order_by
type: string
in: query
description: Sort field
default: observations_count
enum:
- id
- created_at
- observations_count
autocomplete_q:
name: q
type: string
in: query
required: true
description: Search by name (must start with this value) or by ID (exact match).
taxa_taxon_id:
name: taxon_id
type: array
items:
type: string
in: query
minimum: 1
description: Only show taxa with this ID, or its descendants
all_names:
name: all_names
type: boolean
in: query
description: Include all taxon names in the response
path_multi_id:
name: id
in: path
required: true
type: array
items:
type: integer
description: Must have this ID
preferred_place_id:
name: preferred_place_id
type: integer
in: query
description: 'Place preference for regional taxon common names
'
rank_level:
name: rank_level
type: number
in: query
description: 'Taxon must have this rank level. Some example values are 70 (kingdom),
60 (phylum), 50 (class), 40 (order), 30 (family), 20 (genus),
10 (species), 5 (subspecies)
'
parent_id:
name: parent_id
type: integer
in: query
description: Taxon's parent must have this ID
locale:
name: locale
type: string
in: query
description: 'Locale preference for taxon common names
'
order:
name: order
type: string
in: query
description: Sort order
default: desc
enum:
- desc
- asc
id_above:
name: id_above
type: string
in: query
description: Must have an ID above this value
autocomplete_q_not_required:
name: q
type: string
in: query
description: Search by name (must start with this value) or by ID (exact match).
id_below:
name: id_below
type: string
in: query
description: Must have an ID below this value
only_id:
name: only_id
type: boolean
in: query
description: Return only the record IDs
per_page:
name: per_page
type: string
in: query
description: 'Number of results to return in a `page`. The maximum value is generally
200 unless otherwise noted
'
rank:
name: rank
type: array
items:
type: string
in: query
description: Taxon must have this rank
enum:
- stateofmatter
- kingdom
- phylum
- subphylum
- superclass
- class
- subclass
- superorder
- order
- suborder
- infraorder
- superfamily
- epifamily
- family
- subfamily
- supertribe
- tribe
- subtribe
- genus
- genushybrid
- species
- hybrid
- subspecies
- variety
- form
securityDefinitions:
api_token:
type: apiKey
name: Authorization
in: header