Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dev:web_api:v2:read_requests [2013/03/03 14:18] – [Example Requests and Responses] mronkko | dev:web_api:v2:read_requests [2017/11/27 04:16] (current) – Remove Zotero 5 warning bwiernik | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Zotero Server Read Requests ====== | ====== Zotero Server Read Requests ====== | ||
- | **This is not currently the default [[read_requests# | + | **This is version |
- | The page documents read requests available in the [[start|Zotero | + | The page documents read requests available in the [[start|Zotero |
===== Base URL ===== | ===== Base URL ===== | ||
Line 15: | Line 15: | ||
===== API Versioning ===== | ===== API Versioning ===== | ||
- | **To use this version of the API, include the HTTP header '' | + | To use this version of the API, include the HTTP header '' |
At most times, there is only one active API version, and changes are made in a backwards-compatible manner. On rare occasions, however, backwards-incompatible changes may need to be made. When this occurs, the new API version will first be made available via an HTTP header, '' | At most times, there is only one active API version, and changes are made in a backwards-compatible manner. On rare occasions, however, backwards-incompatible changes may need to be made. When this occurs, the new API version will first be made available via an HTTP header, '' | ||
Line 65: | Line 65: | ||
| newer | integer | 0 | Return only objects modified after the specified library verson. | | | newer | integer | 0 | Return only objects modified after the specified library verson. | | ||
| key | string | null | If a valid API key is provided, the request will be processed with the identity of the key's owner and the authority granted to the key.| | | key | string | null | If a valid API key is provided, the request will be processed with the identity of the key's owner and the authority granted to the key.| | ||
+ | |||
==== Search Parameters ==== | ==== Search Parameters ==== | ||
^ Parameter ^ Values ^ Default ^ Description ^ | ^ Parameter ^ Values ^ Default ^ Description ^ | ||
| itemKey | string | null | A comma-separated list of item keys. Valid only for item requests. Up to 50 items can be specified in a single request. | | | itemKey | string | null | A comma-separated list of item keys. Valid only for item requests. Up to 50 items can be specified in a single request. | | ||
- | | q | string | null | Field search. | + | | q | string | null | Quick search. |
+ | | qmode | " | ||
| itemType | [[# | | itemType | [[# | ||
| tag | [[# | | tag | [[# | ||
Line 98: | Line 100: | ||
| order | " | | order | " | ||
| sort | " | | sort | " | ||
- | | limit | integer 1-99* | 50* | The maximum number of results to return with a single request. Required for export formats. | | + | | limit | integer 1-100* | 50* | The maximum number of results to return with a single request. Required for export formats. | |
| start | integer | 0 | The index of the first result. Combine with the limit parameter to select a slice of the available results. | | | start | integer | 0 | The index of the first result. Combine with the limit parameter to select a slice of the available results. | | ||
Line 126: | Line 128: | ||
^ Parameter ^ Description ^ | ^ Parameter ^ Description ^ | ||
| bibtex | BibTeX | | | bibtex | BibTeX | | ||
- | | bookmarks | Netscape Bookmark Format | | + | | bookmarks | Netscape Bookmark |
| coins | COinS | | | coins | COinS | | ||
| csljson | [[https:// | | csljson | [[https:// | ||
Line 156: | Line 158: | ||
===== Example Requests and Responses ===== | ===== Example Requests and Responses ===== | ||
- | Several examples of Read API request URLs and their responses: | + | Several examples of read request URLs and their responses: |
^ Atom feed - List of items in collection ^^ | ^ Atom feed - List of items in collection ^^ | ||
Line 180: | Line 182: | ||
| Response | https:// | | Response | https:// | ||
- | These requests can be performed | + | These requests can be performed |
<code bash> | <code bash> | ||
- | wget --no-check-certificate -O- --header=" | + | curl -H 'Zotero-API-Version: |
- | wget --no-check-certificate -O- --header=" | + | curl -H 'Zotero-API-Version: |
- | wget --no-check-certificate -O- --header=" | + | curl -H 'Zotero-API-Version: |
- | wget --no-check-certificate -O- --header=" | + | curl -H 'Zotero-API-Version: |
- | wget --no-check-certificate -O- --header=" | + | curl -H 'Zotero-API-Version: |
</ | </ | ||
===== Write Requests ===== | ===== Write Requests ===== |