{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/loans/beta/loan/index.php","auth":"required","examples":{"codes":[{"language":"python","code":"import requests\nurl = \"https://archive.org/services/loans/beta/loan/index.php\"\nocaids = [\"adventuresofoli00dick\", \"alchemist00jons_2\"]\nr = requests.get(\"%s?action=availability&identifiers=%s&exact=0&validate=0\" % (url, \",\".join(ocaids))\nprint(r.json())"}]},"method":"post","params":[{"name":"action","type":"string","default":"availability","desc":"media_url or availability","required":false,"in":"path","ref":"","_id":"58f539f97bedd90f00c12d00"},{"name":"exact","type":"int","default":"0","desc":"0 or 1 -- Whether to require or omit ACS availability check.","required":false,"in":"path","ref":"","_id":"58f539f97bedd90f00c12cff"},{"name":"validate","type":"int","default":"0","desc":"0 or 1 -- Filter results by whether book is apart of a restricted collection","required":false,"in":"path","ref":"","_id":"58f539f97bedd90f00c12cfe"},{"name":"identifiers","type":"array_string","default":"","desc":"Comma separated list of Internet Archive item ids (ocaids)","required":false,"in":"path","ref":"","_id":"58f53a4482ddbc0f001233e1"}],"results":{"codes":[{"name":"","code":"{\n  success: true,\n  responses: {\n    adventuresofoli00dick: {\n      status: \"available\"\n    },\n    alchemist00jons_2: {\n      status: \"unavailable\"\n    }\n  }\n}","language":"json","status":200}]},"settings":"573c9bbf06d222170092abda"},"next":{"description":"","pages":[]},"title":"Book Availability API","type":"endpoint","slug":"availability-borrowing","excerpt":"","body":"","updates":[],"order":6,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"58f538c526b8a30f00fe3f92","parentDoc":null,"createdAt":"2017-04-17T21:51:01.142Z","githubsync":"","version":{"version":"1","version_clean":"1.0.0","codename":"Archy","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["56d55014075dfa0b00be98ea","56d55036c8c687150071efb3","56d55094b939870b005129e2","56d550ae5acf9f0b00f735d0","56d5537ac8c687150071efbf","573cae191000320e00918252","573cbe15f320ae29009dbd94","5792a0baf967f617000d9e77","5792a0c023106419009c4302","58093f2994bc150f00f2fe47","580940f33c22790f00fd1e98","58094c01e5998d0f00d29b5d","58101442c03f0b0f0097f099","581020f07c59d72500b85add","581032c708d8050f00948d2a","5810e6ca08d8050f00948dcf"],"_id":"56d55014075dfa0b00be98e9","__v":16,"createdAt":"2016-03-01T08:17:24.051Z","project":"56d55013075dfa0b00be98e6","releaseDate":"2016-03-01T08:17:24.051Z"},"__v":2,"project":"56d55013075dfa0b00be98e6","category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Books","slug":"books","order":3,"from_sync":false,"reference":false,"_id":"5792a0baf967f617000d9e77","createdAt":"2016-07-22T22:39:54.708Z","project":"56d55013075dfa0b00be98e6","__v":0,"version":"56d55014075dfa0b00be98e9"},"user":"573cb45cced73c20002cf5a2"}

postBook Availability API


Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

action:
stringavailability
media_url or availability
exact:
integer0
0 or 1 -- Whether to require or omit ACS availability check.
validate:
integer0
0 or 1 -- Filter results by whether book is apart of a restricted collection
identifiers:
array of strings
Comma separated list of Internet Archive item ids (ocaids)

Examples


Result Format


User Information

Try It Out

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