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

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 }}