GET data
30 minute read
- The OpenDataBio R package is a client for this API.
- Examples of using the R package here
- No authentication required to access data with a public access policy
- Authentication token required only to get data with a non-public access policy
Shared GET parameters
All endpoints share these GET parameters:
idreturn only the specified resource. May be number or a comma delimited list, such asapi/v0/locations?id=1,50,124limit: the number of items that should be returned (must be greater than 0). Example:api/v0/taxons?limit=10offset: the initial record to extract, to be used with limit when trying to download a large amount of data. Example:api/v0/taxons?offset=10000&limit=10000returns 10K records starting from the 10K position of the current query.fields: the field or fields that should be returned. Each endpoint has its own fields but there are two special words, simple (default) and all, which return different collection of fields.fields=allmay return sub-objects for each object.fields ='raw'will return the raw table, speeding up the search, although values may be more difficult to understand. Example:api/v0/taxons?fields=id,scientificName,validsave_job: for large data retrieval, if you addsave_job=1to the params list a job will be created for your search, and the data can then be obtained using the userjobs api.
Download large datasets?
Thelimit and offset parameters can be used to divide your search into parts. Alternatively, use the save_job=T option and then download the data with the get_file=T parameter from the userjobs API.wildcards
Some parameters accept an asterisk as wildcard, soapi/v0/taxons?name=Euterpe will return taxons with name exactly as “Euterpe”, while api/v0/taxons?name=Eut* will return names starting with “Eut”.BibReferences Endpoint
The
bibreferencesendpoint interact with the bibreference table. Their basic usage is getting the registered Bibliographic References.
GET request-parameters
id=listreturn only references having the id or ids provided (exid=1,2,3,10)bibkey=listreturn only references having the bibkey or bibkeys (exbibkey=ducke1953,mayr1992)taxon=list of idsreturn only references linked to the taxon informed.limitandoffsetlimit query. see Common parameters.
Response fields
id- the id of the BibReference in the bibreferences table (a local database id)bibkey- the bibkey used to search and use of the reference in the web systemyear- the publication yearauthor- the publication authorstitle- the publication titledoi- the publication DOI if presenturl- an external url for the publication if presentbibtex- the reference citation record in BibTex format
Biocollections Endpoint
The
biocollectionsendpoint interact with the biocollections table. Their basic usage is getting the list of the Biological Collections registered in the database. Using for gettingbiocollection_idor validating your codes for importing data with the Vouchers or Individuals endpoints.
GET request-parameters
id=listreturn only ‘biocollections’ having the id or ids provided (exid=1,2,3,10)acronymreturn only ‘biocollections’ having the acronym or acronym provided (exacronym=INPA,SP,NY)
Response fields
id- the id of the repository or museum in the biocollections table (a local database id)name- the name of the repository or museumacronym- the repository or museum acronymirn- only for Herbaria, the number of the herbarium in the Index Herbariorum
Datasets Endpoint
The
datasetsendpoint interacts with the Datasets table and with static versions of Datasets. Useful for getting dataset_ids to import measurements, individuals, vouchers and media. You can also download files of static versions of the data, if any were generated by dataset administrators. This allows access to data from datasets in a faster way. Access to the data will depend on whether the version has a public license, or whether the user is a contributor, administrator or viewer of the dataset.
GET request-parameters
id=listreturn only datasets having the id or ids provided (exid=1,2,3,10)list_versions = booleanreturns the list of files and versions for one or moreiddatasets (egid='1,2,3,4',list_versions=1)file_name = stringreturns the data of a single file indicated by this parameter, as indicated in the list of versions returned (egid='1',file_name='2_Organisms.csv')
Response fields
With list_versions=1
dataset_id- the id of the dataset in the dataset table (a local database id)dataset- the name of the datasetversion- the name of the static version of the datasetlicense- the CreativeCommons license of the data versionaccess- indicating if it is OpenAccess or if the user has accessget_params- how to inform theparamsargument in the odb_get_datasets() function of the R package to get the data in files
With file_name
- Returns data from the given file
Just id or nothing
id- the id of the Dataset in the datasets table (a local database id)name- the name of the datasetprivacyLevel- the access level for the datasetcontactEmail- the dataset administrator emaildescription- a description of the datasetpolicy- the data policy if specifiedmeasurements_count- the number of measurements in the datasettaggedWidth- the list of tags applied to the dataset
Individuals Endpoint
The
individualsendpoints interact with the Individual table. Their basic usage is getting a list of individuals.
GET request-parameters
id=number or list- return individuals that have id or ids ex:id=2345,345location=mixed- return by location id or name or ids or names ex:location=24,25,26location=Parcela 25haof the locations where the individualslocation_root- same as location but return also from the descendants of the locations informedtaxon=mixed- the id or ids, or canonicalName taxon names (fullnames) ex:taxon=Aniba,Ocotea guianensis,Licaria cannela tenuicarpaortaxon=456,789,3,4taxon_root- same as taxon but return also all the individuals identified as any of the descendants of the taxons informedproject=mixed- the id or ids or names of the project, ex:project=3orproject=OpenDataBiotag=list- one or more individual tag number/code, ex:tag=individuala1,2345,2345Adataset=mixed- the id or ids or names of the datasets, return individuals having measurements in the datasets informedlimitandoffsetare SQL statements to limit the amount of data when trying to download a large number of individuals, as the request may fail due to memory constraints. See Common parameters.
Note
Notice that all search fields (taxon, location and dataset) may be specified as names (eg, “taxon=Euterpe edulis”) or as database ids. If a list is specified for one of these fields, all items of the list must be of the same type, i.e. you cannot search for ’taxon=Euterpe,24’. Also, location and taxon have priority over location_root and taxon_root if both informed.Response fields
id- the ODB id of the Individual in the individuals table (a local database id)basisOfRecordDWC - will be always ‘organism’ [dwc organism](DWCorganismIDDWC - a local unique combination of record info, composed of recordNumber,recordedByMain,locationNamerecordedByDWC - pipe “|” separated list of registered Persons abbreviationsrecordedByMain- the first person in recordedBy, the main collectorsrecordNumberDWC - an identifier for the individual, may be the code in a tree aluminum tag, a bird band code, a collector numberrecordedDateDWC - the record datescientificNameDWC - the current taxonomic identification of the individual (no authors) or “unidentified”scientificNameAuthorshipDWC - the taxon authorship. For taxonomicStatus unpublished: will be a ODB registered Person namefamilyDWCgenusDWCidentificationQualifierDWC - identification name modifiers cf. aff. s.l., etc.identifiedByDWC - the Person identifying the scientificName of this recorddateIdentifiedDWC - when the identification was made (may be incomplete, with 00 in the month and or day position)identificationRemarksDWC - any notes associated with the identificationlocationName- the location name (if plot the plot name, if point the point name, …)locationParentName- the immediate parent locationName, to facilitate use when location is subplothigherGeographyDWC - the parent LocationName ‘|’ separated (e.g. Brasil | Amazonas | Rio Preto da Eva | Fazenda Esteio | Reserva km37 | Manaus ForestGeo-PDBFF Plot | Quadrat 100x100 );decimalLatitudeDWC - depends on the location adm_level and the individual X and Y, or Angle and Distance attributes, which are used to calculate these global coordinates for the record; if individual has multiple locations (a monitored bird), the last location is obtained with this get APIdecimalLongitudeDWC - same as for decimalLatitudex- the individual X position in a Plot locationy- the individual Y position in a Plot locationgx- the individual global X position in a Parent Plot location, when location is subplot (ForestGeo standards)gy- the individual global Y position in a Parent Plot location, when location is subplot (ForestGeo standards)angle- the individual azimuth direction in relation to a POINT reference, either when adm_level is POINT or when X and Y are also provided for a Plot location this is calculated from X and Y positionsdistance- the individual distance direction in relation to a POINT reference, either when adm_level is POINT or when X and Y are also provided for a Plot location this is calculated from X and Y positionsorganismRemarksDWC - any note associated with the Individual recordassociatedMediaDWC - urls to ODB media files associated with the recorddatasetName- the name of the ODB Dataset to which the record belongs to DWCaccessRights- the ODB Dataset access privacy setting - DWCbibliographicCitation- the ODB Dataset citation - DWClicense- the ODB Dataset license - DWC
Individual-locations Endpoint
The
individual-locationsendpoint interact with the individual_location table. Their basic usage is getting location data for individuals, i.e. occurrence data for organisms. Designed for occurrences of organisms that move and have multiple locations, else the same info is retrieved with the Individuals endpoint.
GET request-parameters
individual_id=number or list- return locations for individuals that have id or ids ex:id=2345,345location=mixed- return by location id or name or ids or names ex:location=24,25,26location=Parcela 25haof the locations where the individualslocation_root- same as location but return also from the descendants of the locations informedtaxon=mixed- the id or ids, or canonicalName taxon names (fullnames) ex:taxon=Aniba,Ocotea guianensis,Licaria cannela tenuicarpaortaxon=456,789,3,4taxon_root- same as taxon but return also all the the locations for individuals identified as any of the descendants of the taxons informeddataset=mixed- the id or ids or names of the datasets, return individuals belonging to the datasets informedlimitandoffsetare SQL statements to limit the amount of data when trying to download a large number of individuals, as the request may fail due to memory constraints. See Common parameters.
Note
Notice that all search fields (taxon, location and dataset) may be specified as names (eg, “taxon=Euterpe edulis”) or as database ids. If a list is specified for one of these fields, all items of the list must be of the same type, i.e. you cannot search for ’taxon=Euterpe,24’. Also, location and taxon have priority over location_root and taxon_root if both informed.Response fields
individual_id- the ODB id of the Individual in the individuals table (a local database id)location_id- the ODB id of the Location in the locations table (a local database id)basisOfRecord- will be always ‘occurrence’ - DWC and [dwc occurrence](DWC;occurrenceID- the unique identifier for this record, the individual+location+date_time - DWCorganismID- the unique identifier for the Individual DWCrecordedDate- the occurrence date+time observation - DWClocationName- the location name (if plot the plot name, if point the point name, …)higherGeography- the parent LocationName ‘|’ separated (e.g. Brasil | Amazonas | Rio Preto da Eva | Fazenda Esteio | Reserva km37 | Manaus ForestGeo-PDBFF Plot | Quadrat 100x100 ) - DWCdecimalLatitude- depends on the location adm_level and the individual X and Y, or Angle and Distance attributes, which are used to calculate these global coordinates for the record - DWCdecimalLongitude- same as for decimalLatitude - DWCgeoreferenceRemarks- will contain the explanation of the type of decimalLatitude - DWCx- the individual X position in a Plot locationy- the individual Y position in a Plot locationangle- the individual azimuth direction in relation to a POINT reference, either when adm_level is POINT or when X and Y are also provided for a Plot location this is calculated from X and Y positionsdistance- the individual distance direction in relation to a POINT reference, either when adm_level is POINT or when X and Y are also provided for a Plot location this is calculated from X and Y positionsminimumElevation- the altitude for this occurrence record if any - DWCoccurrenceRemarks- any note associated with this record - DWCscientificName- the current taxonomic identification of the individual (no authors) or “unidentified” - DWCfamily- the current taxonomic family name, if apply - DWCdatasetName- the name of the ODB Dataset to which the record belongs to - DWCaccessRights- the ODB Dataset access privacy setting - DWCbibliographicCitation- the ODB Dataset citation - DWClicense- the ODB Dataset license DWC
Measurements Endpoint
The
measurementsendpoint interact with the measurements table. Their basic usage is getting Data linked to Individuals, Taxons, Locations or Vouchers, regardless of datasets, so it is useful when you want particular measurements from different datasets that you have access for. If you want a full dataset, you may just use the web interface, as it prepares a complete set of the dataset measurements and their associated data tables for you.
GET request-parameters
id=list of idsreturn only the measurement or measurements having the id or ids provided (exid=1,2,3,10)taxon=list of ids or namesreturn only the measurements related to the Taxons, both direct taxon measurements and indirect taxon measurements from their individuals and vouchers (extaxon=Aniba,Licaria). Does not consider descendants taxons for this usetaxon_rootinstead. In the example only measurements directly linked to the genus and genus level identified vouchers and individuals will be retrieved.taxon_root=list of ids or namessimilar totaxon, but get also measurements for descendants taxons of the informed query (extaxon=Lauraceaewill get measurements linked to Lauraceae and any taxon that belongs to it;dataset=list of idsreturn only the measurements belonging to the datasets informed (exdataset=1,2) - allows to get all data from a dataset.trait=list of ids or export_namesreturn only the measurements for the traits informed (extrait=DBH,DBHpomordataset=2?trait=DBH) - allows to get data for a particular traitindividual=list of individual idsreturn only the measurements for the individual ids informed (exindividual=1000,1200)voucher=list of voucher idsreturn only the measurements for the voucher ids informed (exvoucher=345,321)location=list of location idsreturn only measurements for the locations ids informed (exlocation=4,321)- does not retrieve measurements for individuals and vouchers in those locations, only measured locations, like plot soil surveys data.limitandoffsetare SQL statements to limit the amount of data when trying to download a large number of measurements, as the request may fail due to memory constraints. See Common parameters.
Response fields
id- the Measurement ODB id in the measurements table (local database id)basisOfRecordDWC - will be always ‘MeasurementsOrFact’ [dwc measurementorfact](DWCmeasured_type- the measured object, one of ‘Individual’, ‘Location’, ‘Taxon’ or ‘Voucher’measured_id- the id of the measured object in the respective object table (individuals.id, locations.id, taxons.id, vouchers.id)measurementIDDWC - a unique identifier for the Measurement record - combine measured resourceRelationshipID, measurementType and datemeasurementTypeDWC - the export_name for the ODBTrait measuredmeasurementValueDWC - the value for the measurement - will depend on kind of the measurementType (i.e. ODBTrait)measurementUnitDWC - the unit of measurement for quantitative traitsmeasurementDeterminedDateDWC - the Measurement measured datemeasurementDeterminedByDWC - Person responsible for the measurementmeasurementRemarksDWC - text note associated with this Measurement recordresourceRelationshipDWC - the measured object (resource) - one of ’location’,’taxon’,‘organism’,‘preservedSpecimen’resourceRelationshipIDDWC - the id of the resourceRelationshiprelationshipOfResourceDWC - will always be ‘measurement of’scientificNameDWC - the current taxonomic identification (no authors) or ‘unidentified’ if the resourceRelationship object is not ’location’familyDWC - taxonomic family name if appliesdatasetName- the name of the ODB Dataset to which the record belongs to - DWCaccessRights- the ODB Dataset access privacy setting - DWCbibliographicCitation- the ODB Dataset citation - DWClicense- the ODB Dataset license - DWCmeasurementLocationId- the ODB id of the location associated with the measurementmeasurementParentId- the ODB id of another related measurement (the parent measurement to which the current depends upon)decimalLatitudeDWC - a latitude em graus decimais da medição ou do objeto medido.decimalLongitudeDWC - a longitude em graus decimais da medição ou do objeto medido.
Media Endpoint
The
mediaendpoint interact with the media table. Their basic usage is getting the metadata associated with MediaFiles and the files URL, which can be used to download them.
GET request-parameters
individual=number or list- return media associated with the individuals having id or ids ex:id=2345,345voucher=number or list- return media associated with the vouchers having id or ids ex:id=2345,345location=mixed- return media associated with the locations having id or name or ids or names ex:location=24,25,26location=Parcela 25halocation_root- same as location but return also media associated with the descendants of the locations informedtaxon=mixed- the id or ids, or canonicalName taxon names (fullnames) ex:taxon=Aniba,Ocotea guianensis,Licaria cannela tenuicarpaortaxon=456,789,3,4taxon_root- same as taxon but return also all the locations for media related to any of the descendants of the taxons informeddataset=mixed- the id or ids or names of the datasets, return belonging to the datasets informedlimitandoffsetare SQL statements to limit the amount of data when trying to download a large number of individuals, as the request may fail due to memory constraints. See Common parameters.
Note
Notice that all search fields (taxon, location and dataset) may be specified as names (eg, “taxon=Euterpe edulis”) or as database ids. If a list is specified for one of these fields, all items of the list must be of the same type, i.e. you cannot search for ’taxon=Euterpe,24’. Also, location and taxon have priority over location_root and taxon_root if both informed.Response fields
id- the Measurement ODB id in the measurements table (local database id)basisOfRecordDWC - will be always ‘MachineObservation’ DWCmodel_type- the related object, one of ‘Individual’, ‘Location’, ‘Taxon’ or ‘Voucher’model_id- the id of the related object in the respective object table (individuals.id, locations.id, taxons.id, vouchers.id)resourceRelationshipDWC - the related object (resource) - one of ’location’,’taxon’,‘organism’,‘preservedSpecimen’resourceRelationshipIDDWC - the id of the resourceRelationshiprelationshipOfResourceDWC - will be the dwcTyperecordedByDWC - pipe “|” separated list of registered Persons abbreviationsrecordedDateDWC - the media file datescientificNameDWC - the current taxonomic identification of the individual (no authors) or “unidentified”familyDWCdwcTypeDWC - one of StillImage, MovingImage, SounddatasetName- the name of the ODB Dataset to which the record belongs to DWCaccessRights- the ODB Dataset access privacy setting - DWCbibliographicCitation- the ODB Dataset citation - DWClicense- the ODB Dataset license - DWCfile_name- the file namefile_url- the url to the filecitation- how to cite the image.bibtex- the bibtex citation for the imageuuid- a unique identifier for the image
Languages EndPoint
The
languagesendpoint interact with the Language table. Their basic usage is getting a list of registered Languages to import User Translations like Trait and TraitCategories names and descriptions.
Response fields
id- the id of the language in the languages table (a local database id)code- the language string code;name- the language name;
Locations Endpoint
The
locationsendpoints interact with the locations table. Their basic usage is getting a list of registered countries, cities, plots, etc, or importing new locations.
GET request-parameters
id=listreturn only locations having the id or ids provided (exid=1,2,3,10)adm_level=numberreturn only locations for the specified level or type:- 2 for country; 3 for first division within country (province, state); 4 for second division (e.g. municipality)… up to adm_level 10 as administrative areas (Geometry: polygon, MultiPolygon);
- 97 is the code for Environmental Layers (Geometry: polygon, multipolygon);
- 98 is the code for Indigenous Areas (Geometry: polygon, multipolygon);
- 99 is the code for Conservation Units (Geometry: polygon, multipolygon);
- 100 is the code for plots and subplots (Geometry: polygon or point);
- 101 for transects (Geometry: point or linestring)
- 999 for any ‘POINT’ locations like GPS waypoints (Geometry: point);
name=stringreturn only locations whose name matches the search string. You may use asterisk as a wildcard. Example:name=Manausorname=*Ducke*to find name that has the word Ducke;parent_id=listreturn the locations for which the direct parent is in the list (ex: parent_id=2,3)root=numbernumber is the locationidto search, returns the location for the specified id along with all of its descendants locations; example: find the id for Brazil and use its id as root to get all the locations belonging to Brazil;querytypeone of “exact”, “parent” or “closest” and must be provided withlatandlong:- when
querytype=exactwill find a point location that has the exact match of thelatandlong; - when
querytype=parentwill find the most inclusive parent location within which the coordinates given bylatandlongfall; - when
querytype=closestwill find the closest location to the coordinates given bylatandlong; It will only search for closest locations havingadm_level > 99, see above. latandlongmust be valid coordinates in decimal degrees (negative for South and West);
- when
fields=listspecify which fields you want to get with your query (see below for field names), or use options ‘all’ or ‘simple’, to get full set and the most important columns, respectivelyproject=mixed- id or name of project (may be a list) return the locations belonging to one or more Projectsdataset=mixed- id or name of a dataset (may be a list) return the locations belonging to one or more Datasets
Notice that id, search, parent and root should probably not be combined in the same query.
Response fields
id- the ODB id of the Location in the locations table (a local database id)basisOfRecordDWC - will always contain ’location’ [dwc location](DWClocationName- the location name (if country the country name, if state the state name, etc…)adm_level- the numeric value for the ODB administrative level (2 for countries, etc)levelName- the name of the ODB administrative levelparent_id- the ODB id of the parent locationparentName- the immediate parent locationNamehigherGeographyDWC - the parent LocationName ‘|’ separated (e.g. Brasil | São Paulo | Cananéia);footprintWKTDWC - the WKT representation of the location; if adm_level==100 (plots) or adm_level==101 (transects) and they have been informed as a POINT location, the respective polygon or linestring geometries, the footprintWKT will be that generated using the location’s x and y dimensions.xandy- (meters) when location is a plot (100 == adm_level) its X and Y dimensions, if a transect (101 == adm_level), x may be the length and y may be a buffer dimension around the linestring.startxandstarty- (meters) when location is a subplot (100 == adm_level with parent also adm_level==100), the X and Y start position in relation to the 0,0 coordinate of the parent plot location, which is either a Point, or the first coordinate of a Polygon geometry type;distance- only when querytype==closest, this value will be present, and indicates the distance, in meters, the locations is from your queried coordinates;locationRemarksDWC - any notes associated with this Location recorddecimalLatitudeDWC - depends on the adm_level: if adm_level<=99, the latitude of the centroid; if adm_level == 999 (point), its latitude; if adm_level==100 (plot) or 101 (transect), but is a POINT geometry, the POINT latitude, else if POLYGON geometry, then the first point of the POLYGON or the LINESTRING geometry.decimalLongitudeDWC - same as for decimalLatitudegeoreferenceRemarksDWC - will contain the explanation about decimalLatitudegeodeticDatum-DWC the geodeticDatum informed for the geometry (ODB does not treat map projections, assumes data is always is WSG84)
Persons Endpoint
The
personsendpoint interact*** with the Person table. The basic usage is getting a list of registered people (individuals and vouchers collectors, taxonomic specialists or database users).
GET request-parameters
id=listreturn only persons having the id or ids provided (exid=1,2,3,10)name=string- return people whose name matches the specified string. You may use asterisk as a wildcard. Ex:name=*ducke*abbrev = string, return people whose abbreviation matches the specified string. You may use asterisk as a wildcard.email=string, return people whose e-mail matches the specified string. You may use asterisk as a wildcard.search=string, return people whose name, abbreviation or e-mail matches the specified string. You may use asterisk as a wildcard.limitandoffsetare SQL statements to limit the amount of data when trying to download a large number of measurements, as the request may fail due to memory constraints. See Common parameters.
Response fields
id- the id of the person in the persons table (a local database id)full_name- the person name;abbreviation- the person name (this are UNIQUE values in a OpenDataBio database)email- the email, if registered or person is userinstitution- the persons institution, if registerednotes- any registered notes;biocollection- the name of the Biological Collection (Biocollections, etc) that the person is associated with; not included in simple)
Projects EndPoint
The
projectsendpoint interact with the projects table. The basic usage is getting the registered Projects.
GET request-parameters
id=listreturn only projects having the id or ids provided (exid=1,2,3,10)
Response fields
id- the id of the Project in the projects table (a local database id)fullname- project nameprivacyLevel- the access level for individuals and vouchers in ProjectcontactEmail- the project administrator emailindividuals_count- the number of individuals in the projectvouchers_count- the number of vouchers in the project
Taxons Endpoint
The
taxonsendpoint interact with the taxons table. The basic usage is getting a list of registered taxonomic names.
GET request-parameters
id=listreturn only taxons having the id or ids provided (exid=1,2,3,10)name=searchreturns only taxons with fullname (no authors) matching the search string. You may use asterisk as a wildcard.root=numberreturns the taxon for the specified id along with all of its descendantslevel=numberreturn only taxons for the specified taxon level.valid=1return only valid namesexternal=1return the Tropicos, IPNI, MycoBank, ZOOBANK or GBIF reference numbers. You need to specifyexternalrefsin the field list to return them!project=mixed- id or name of project (may be a list) return the taxons belonging to one or more Projectsdataset=mixed- id or name of a dataset (may be a list) return the taxons belonging to one or more Datasetslimitandoffsetare SQL statements to limit the amount. See Common parameters.
Notice that id, name and root should not be combined.
Response fields
id- this ODB id for this Taxon record in the taxons tablesenior_id- if invalid this ODB identifier of the valid synonym for this taxon (acceptedNameUsage) - only when taxonomicStatus == ‘invalid’parent_id- the id of the parent taxonauthor_id- the id of the person that defined the taxon for unpublished names (having an author_id means the taxon is unpublished)scientificNameDWC - the full taxonomic name without authors (i.e. including genus name and epithet for species name)scientificNameIDDWC - nomenclatural databases ids, if any external reference is stored for this Taxon recordtaxonRankDWC - the string value of the taxon ranklevel- the ODB numeric value of the taxon rankscientificNameAuthorshipDWC - the taxon authorship. For taxonomicStatus unpublished: will be a ODB registered Person namenamePublishedIn- unified bibliographic reference (i.e. either the short format or an extract of the bibtext reference assigned). This will be mostly retrieved from nomenclatural databases; Taxon linked references can be extracted with the BibReference endpoint.taxonomicStatusDWC - one of ‘accepted’, ‘invalid’ or ‘unpublished’; if invalid, fields senior_id and acceptedNameUsage* will be filledparentNameUsageDWC - the name of the parent taxon, if species, the genus, if genus, family, and so onfamilyDWC - the family name if taxonRank family or belowhigherClassificationDWC - the full taxonomic hierarchical classification, pipe separated (will include only Taxons registered in this database)acceptedNameUsageDWC - if taxonomicStatus invalid the valid scientificName for this TaxonacceptedNameUsageIDDWC - if taxonomicStatus invalid the scientificNameID ids of the valid TaxontaxonRemarksDWC - any note the taxon record may havebasisOfRecordDWC - will always be ’taxon’externalrefs- the Tropicos, IPNI, MycoBank, ZOOBANK or GBIF reference numbers
Traits Endpoint
The
traitsendpoint interact with the Trait table. The basic usage is getting a list of variables and variables categories for importing Measurements.
GET request-parameters
id=listreturn only traits having the id or ids provided (exid=1,2,3,10);name=stringreturn only traits having theexport_nameas indicated (exname=DBH)categories- if true return the categories for categorical traitslanguage=mixedreturn name and descriptions of both trait and categories in the specified language. Values may be ’language_id’, ’language_code’ or ’language_name’;bibreference=boolean- if true, include the BibReference associated with the trait in the results;limitandoffsetare SQL statements to limit the amount. See Common parameters.
Response fields
id- the id of the Trait in the odbtraits table (a local database id)type- the numeric code defining the Trait typetypename- the name of the Trait typeexport_name- the export name valuemeasurementTypeDWC - same as export_name for DWC compatibilitymeasurementMethodDWC - combine name, description and categories if apply (included in the Measurement GET API, for DWC compatibility)measurementUnit- the unit of measurement for Quantitative traitsmeasurementTypeBibkeys- the bibkeys of the bibliographic references associated with the trait definition, separated by pipe ‘|’taggedWith- the name of the tags or keywords associated with the trait definition, separated by pipe ‘|’range_min- the minimum allowed value for Quantitative traitsrange_max- the maximum allowed value for Quantitative traitslink_type- if Link type trait, the class of the object the trait links to (currently only Taxon)name- the trait name in the language requested or in the default languagedescription- the trait description in the language requested or in the default languagevalue_length- the length of values allowed for Spectral trait typesobjects- the types of object the trait may be used for, separated by pipe ‘|’categories- each category is given for Categorical and Ordinal traits, with the following fields (the categoryid,name,descriptionandrank). Ranks are meaningfull only for ORDINAL traits, but reported for all categorical traits.
Vernaculars Endpoint
The
vernacularsendpoints interact with the Vernacular table. Their basic usage is getting vernaculars or popular names for taxons.
GET parameters
id=listreturn only vernaculars having the id or ids provided (exid=1,2,3,10)individual=mixedeither a individual_id or a list of ids, or fullnames or uuids;taxon=mixedone of ids or scientificNames (exid=1,2,3,10)taxon_root=mixed- same as taxon, but will include the descendants of the taxons informed. e.gtaxon_root=Lauraceaeto get any Lauraceae vernacular;
Vouchers Endpoint
The
vouchersendpoints interact with the Voucher table. Their basic usage is getting data from Voucher specimens
GET parameters
id=listreturn only vouchers having the id or ids provided (exid=1,2,3,10)number=stringreturns only vouchers for the informed collector number (but is a string and may contain non-numeric codes)collector=mixedone of id or ids or abbreviations, returns only vouchers for the informed main collectordataset=list- one of id or ids list, name or names list, return all vouchers directly or indirectly related to the datasets informed.project=mixedone of ids or names, returns only the vouchers for datasets belonging to the Project informed.location=mixedone of ids or names; (1) ifindividual_tagis also requested returns only vouchers for those individuals (or use “individual=*” to get all vouchers for any individual collected at the location); (2) ifindividualandindividual_tagare not informed, then returns vouchers linked to locations and to the individuals at the locations.location_root=mixed- same as location, but include also the vouchers for the descendants of the locations informed. e.g. “location_root=Manaus” to get any voucher collected within the Manaus administrative area;individual=mixedeither a individual_id or a list of ids, or*- returns only vouchers for the informed individuals; when “individual=*” then location must be informed, see above;taxon=mixedone of ids or names, returns only vouchers for the informed taxons. This could be either vouchers referred as parent of the requested taxon or vouchers of individuals of the requested taxons.taxon_root=mixed- same as taxon, but will include in the return also the vouchers for the descendants of the taxons informed. e.g. “taxon_root=Lauraceae” to get any Lauraceae voucher;
Notice that some search fields (taxon, location, project and collector) may be specified as names - abbreviation, fullnames and emails in the case of collector - (eg, “taxon=Euterpe edulis”) or as database ids. If a list is specified for one of these fields, all items of the list must be of the same type.
Response fields
id- the Voucher ODB id in the vouchers table (local database id)basisOfRecordDWC - will be always ‘preservedSpecimen’ [dwc location](DWCoccurrenceIDDWC - a unique identifier for the Voucher record - combine organismID with biocollection infoorganismIDDWC - a unique identifier for the Individual the Voucher belongs toindividual_id- the ODB id for the Individual the Voucher belongs tocollectionCodeDWC - the Biocollection acronym where the Voucher is depositedcatalogNumberDWC - the Biocollection number or code for the VouchertypeStatusDWC - if the Voucher represent a nomenclatural typerecordedByDWC - collectors pipe “|” separated list of registered Persons abbreviations that collected the vouchersrecordedByMain- the first person in recordedBy, the main collectorrecordNumberDWC - an identifier for the Voucher, generaly the Collector Number valuerecordedDateDWC - the record date, collection datescientificNameDWC - the current taxonomic identification of the individual (no authors) or “unidentified”scientificNameAuthorshipDWC - the taxon authorship. For taxonomicStatus unpublished: will be a ODB registered Person namefamilyDWCgenusDWCidentificationQualifierDWC - identification name modifiers cf. aff. s.l., etc.identifiedByDWC - the Person identifying the scientificName of this recorddateIdentifiedDWC - when the identification was made (may be incomplete, with 00 in the month and or day position)identificationRemarksDWC - any notes associated with the identificationlocationName- the location name for the organismID the voucher belongs to (if plot the plot name, if point the point name, …)higherGeographyDWC - the parent LocationName ‘|’ separated (e.g. Brasil | Amazonas | Rio Preto da Eva | Fazenda Esteio | Reserva km37);decimalLatitudeDWC - depends on the location adm_level and the individual X and Y, or Angle and Distance attributes, which are used to calculate these global coordinates for the record; if individual has multiple locations (a monitored bird), the location closest to the voucher date is obtaineddecimalLongitudeDWC - same as for decimalLatitudeoccurrenceRemarksDWC - text note associated with this recordassociatedMediaDWC - urls to ODB media files associated with the recorddatasetName- the name of the ODB Dataset to which the record belongs to DWCaccessRights- the ODB Dataset access privacy setting - DWCbibliographicCitation- the ODB Dataset citation - DWClicense- the ODB Dataset license - DWC
Jobs Endpoint
The
jobsendpoints interact with the UserJobs table. The basic usage is getting a list of submitted data import jobs, along with a status message and logs. You can also get data from jobs produced using thesave_job=1parameter, or export jobs created using the web interface (with the csv option only)
GET parameters
status=stringreturn only jobs for the specified status: “Submitted”, “Processing”, “Success”, “Failed” or “Cancelled”;id=list- the job id or ids ;get_file- ifget_file=1, then you can get the data file saved by the job. This needs also a singleidparameter. Useful, when getting data with thesave_job=1option.
Response fields
id- the job idstatus- the status of the jobdispatcher- the type of the job, e.g, ImportTaxons;log- the job log messages, usually indicating whether the resources were successfully imported, or whether errors occurred; others.
Possible errors
This should be an extensive list of error codes that you can receive while using the API. If you receive any other error code, please file a bug report!
- Most of the time will be related to memory, if you are trying to get a large dataset, for example. See the get common parameters
- Error 401 - Unauthenticated. Currently not implemented. You may receive this error if you attempt to access some protected resources but didn’t provide an API token.
- Error 403 - Unauthorized. You may receive this error if you attempt to import or edit some protected resources, and either didn’t provide an API token or your user does not have enough privileges.
- Error 404 - The resource you attempted to see is not available. Note that you can receive this code if your user is not allowed to see a given resource.
- Error 413 - Request Entity Too Large. You may be attempting to send a very large import, in which case you might want to break it down in smaller pieces.
- Error 429 - Too many attempts. Wait one minute and try again.
- Error 500 - Internal server error. This indicates a problem with the server code. Please file a bug report with details of your request.