{"_id":"5a0e4fdcc01242001cac3ec2","project":"5508a8940f146f3500b031c9","version":{"_id":"5508a8950f146f3500b031cc","__v":4,"project":"5508a8940f146f3500b031c9","createdAt":"2015-03-17T22:20:05.001Z","releaseDate":"2015-03-17T22:20:05.001Z","categories":["5508a8950f146f3500b031cd","5a0e2e283bb0d9001c09e3e1","5a0e2f9844969800124f4d3a","5a0e2fdcc96bc7001288e17d"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"category":{"_id":"5508a8950f146f3500b031cd","version":"5508a8950f146f3500b031cc","__v":1,"pages":["5508a8960f146f3500b031cf"],"project":"5508a8940f146f3500b031c9","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-03-17T22:20:05.520Z","from_sync":false,"order":0,"slug":"documentation","title":"Documentation"},"user":"5508a87b99a1832100bf9569","githubsync":"","__v":0,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-11-17T02:56:28.560Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":4,"body":"[block:callout]\n{\n  \"type\": \"warning\",\n  \"body\": \"Database versions are supported in the Fishbase API only at this time. We may support multiple versions of Sealifebase in the future.\"\n}\n[/block]\nThe Fishbase API supports multiple different versions of the underlying database.\n\nYou can request a different database version with a HTTP header like `Accept: application/vnd.ropensci.v3+json`\n\nWhere `v3` represents \"version 3\" and so on. These versions correspond to specific dates associated with different database versions. The current versions for Fishbase are:\n\n- 201505\n- 201604\n- 201703\n- 201712\n\nThe date format `YYYYMM` is four digits for year, then two digits for month, with no spaces/characters between them.\n\nBy default, we return the latest date version.\n\nSee the [`/versions`](#versions) route for description of the different versions and their names.\n\nIn the R client `rfishbase` the database version will be controlled by a parameter or option/env var, so users won't have to pass headers themselves.","excerpt":"","slug":"database-versions","type":"basic","title":"Database versions"}
[block:callout] { "type": "warning", "body": "Database versions are supported in the Fishbase API only at this time. We may support multiple versions of Sealifebase in the future." } [/block] The Fishbase API supports multiple different versions of the underlying database. You can request a different database version with a HTTP header like `Accept: application/vnd.ropensci.v3+json` Where `v3` represents "version 3" and so on. These versions correspond to specific dates associated with different database versions. The current versions for Fishbase are: - 201505 - 201604 - 201703 - 201712 The date format `YYYYMM` is four digits for year, then two digits for month, with no spaces/characters between them. By default, we return the latest date version. See the [`/versions`](#versions) route for description of the different versions and their names. In the R client `rfishbase` the database version will be controlled by a parameter or option/env var, so users won't have to pass headers themselves.