{"_id":"5a0e318ec01242001cac3c17","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":"5a0e2fdcc96bc7001288e17d","project":"5508a8940f146f3500b031c9","version":"5508a8950f146f3500b031cc","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2017-11-17T00:39:56.122Z","from_sync":false,"order":1,"slug":"heartbeat","title":"Routes"},"user":"5508a87b99a1832100bf9569","githubsync":"","__v":10,"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-11-17T00:47:10.261Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"method":"get","examples":{"codes":[{"code":"curl 'https://fishbase.ropensci.org/diet?limit=1' |  jq .","language":"shell"}]},"results":{"codes":[{"name":"","code":"{\n  \"count\": 37721,\n  \"returned\": 1,\n  \"data\": [\n    {\n      \"DietCode\": 1,\n      \"StockCode\": 79,\n      \"Speccode\": 69,\n      \"DietRefNo\": 9604,\n      \"SampleStage\": \"recruits/juv.\",\n      \"SampleSize\": 37,\n      \"YearStart\": null,\n      \"YearEnd\": null,\n      \"January\": 0,\n      \"February\": 0,\n      \"March\": 0,\n      \"April\": -1,\n      \"May\": -1,\n      \"June\": -1,\n      \"July\": 0,\n      \"August\": 0,\n      \"September\": 0,\n      \"October\": 0,\n      \"November\": 0,\n      \"December\": 0,\n      \"C_Code\": \"826\",\n      \"Locality\": \"Off the west coast of the Isle of Man, 1977-1978\",\n      \"E_Code\": 235,\n      \"Method\": null,\n      \"MethodType\": null,\n      \"Remark\": \"Length type derived from given length in Species table.\",\n      \"OtherItems\": 0.1,\n      \"PercentEmpty\": null,\n      \"Troph\": 3.83,\n      \"seTroph\": 0.37,\n      \"SizeMin\": 30,\n      \"SizeMax\": 39,\n      \"SizeType\": \"TL\",\n      \"FishLength\": 34.5,\n      \"Entered\": 34,\n      \"DateEntered\": \"1995-07-29T00:00:00.000Z\",\n      \"Modified\": null,\n      \"DateModified\": \"2010-12-17T00:00:00.000Z\",\n      \"Expert\": null,\n      \"DateChecked\": null,\n      \"FoodI\": \"zoobenthos\",\n      \"FoodII\": \"mollusks\",\n      \"FoodIII\": \"bivalves\",\n      \"Stage\": \"n.a./others\",\n      \"DietPercent\": 1,\n      \"ItemName\": \"gastropods\",\n      \"Comment\": \"0.8% bivalves/gastropods incl.  0.1% euphausiids, 0.1% unid. organisms\",\n      \"DietSpeccode\": null,\n      \"AlphaCode\": \"GAS\",\n      \"PreyTroph\": null,\n      \"PreySeTroph\": null,\n      \"PreyRemark\": null\n    }\n  ],\n  \"error\": null\n}","language":"json","status":200}]},"settings":"","auth":"required","params":[{"_id":"5a1e4db009ac8d003ef62987","ref":"","in":"header","required":false,"desc":"Version accept header","default":"application/vnd.ropensci.v8+json","type":"string","name":"Accept"},{"_id":"5a1e4e131f1235001296604f","ref":"","in":"query","required":false,"desc":"number of records to return","default":"10","type":"int","name":"limit"},{"_id":"5a1e4e8a09ac8d003ef629c0","ref":"","in":"query","required":false,"desc":"record number to start at","default":"0","type":"int","name":"offset"}],"url":"/diet"},"isReference":false,"order":7,"body":"[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Additional Query Parameters\",\n  \"body\": \"In addition to the query parameters listed (limit, offset, fields) you should be able to query on any of the keys in the response body.\"\n}\n[/block]","excerpt":"","slug":"diet","type":"endpoint","title":"diet"}

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Query Params

limit:
integer10
number of records to return
offset:
integer0
record number to start at

Headers

Accept:
stringapplication/vnd.ropensci.v8+json
Version accept header

Examples


Result Format


Documentation

[block:callout] { "type": "info", "title": "Additional Query Parameters", "body": "In addition to the query parameters listed (limit, offset, fields) you should be able to query on any of the keys in the response body." } [/block]

User Information

Try It Out

get
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}