A {search_string} is composed by {query} string and by [additional filters]. The delimiter between the query and between [additional filters] parameters is "&" (logical AND). The delimiter inside the {query} string, between internal query conditions is ",AND;" (or ",OR";)
A query compares a text to one / few / all descriptive attributes, and can filter by start_date / end_date and/or language and/or system_number and/or shelfmark.
query=title,exact,jerusalem,AND;publisher,contains,jaffa,AND;language,exact,eng,AND;system_number,exact,990023677080205171,AND;start_date, contains,1925,AND;shelfmark,exact,Jer344
Filters: availability_type, material_type
Commands: output_format, count_mode, result_page, items_per_page, sort_field
https://api.nli.org.il/openlibrary/search?api_key={USER_KEY}&query=title,exact,jerusalem,AND;publisher,contains,jaffa,AND;language,exact,eng,AND;system_number,exact,990023677080205171,AND;start_date,contains,1925,AND;shelfmark,exact,Jer344&availability_type=online_and_api_access&material_type=manuscripts
https://api.nli.org.il/openlibrary/search?api_key={USER_KEY}&query=title,exact,jerusalem,AND;publisher,contains,jaffa,AND;language,exact,eng,AND;system_number,exact,990023677080205171,AND;start_date,contains,1925,AND;shelfmark,exact,Jer344&availability_type=online_and_api_access&material_type=manuscripts&output_format=xml&result_page=2&sort_field=title
| Parameter | Values |
|---|---|
| availability_type | online_access, all_items, online_and_api_access, online_access_no_api, online_in_library_only, no_online_access |
| material_type | books, journals, images, audio_video, scores, maps, archives, sheets, dissertations, manuscripts, media, databases, NEWSPAPER, Identity |
| sort_field | title, creator, date_desc, date_asc |
| items_per_page | A digit in the range of [1-50] |
| result_page | A digit (in the range of [count]/50) |
| output_format | json, xml |
| Parameter | Values |
|---|---|
| count_mode | true, false |
curl -v -k "https://api.nli.org.il/openlibrary/search?api_key={USER_KEY}&query=title,exact,jerusalem&availability_type=online_and_api_access&material_type=manuscripts111 "
Response Header
> User-Agent: curl/7.29.0
> Host: api.nli.org.il
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: openresty
< Date: Mon, 31 May 2021 14:24:48 GMT
< Content-Type: application/json;charset=UTF-8
< Content-Length: 1223
< Connection: keep-alive
< Vary: Accept-Encoding
< X-RateLimit-Limit: 1000
< X-RateLimit-Remaining: 966
< Errors: {"Errors":[{"code":1010,"description":"\"material_type\" with value : \"manuscripts111\" hasn't been used because it is invalid.\"","value":"ERROR_NOT_USE_PARAMETER"},{"code":1014,"description":"Invalid page number. The first page was returned instead.","value":"ERROR_GET_OVER_ARTICLE"}]}
< Age: 1
< Via: http/1.1 api-umbrella (ApacheTrafficServer [cMsSf ])
< X-Cache: MISS