{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/","auth":"required","examples":{"codes":[{"language":"curl","code":"curl -X POST -H \"Content-Type: application/json\" -d '{\"url\": \"google.com\", \"annotation\": {\"id\": \"lst-ib\", \"message\": \"Theres a microphone button in the searchbox\"}}' https://pragma.archivelab.org\n"}]},"method":"post","params":[{"name":"url","type":"string","default":"","desc":"The URL to snapshot / archive","required":true,"in":"body","ref":"","_id":"56d818ebb20d260b00265665"},{"name":"annotation","type":"object","default":"","desc":"An object representing your OpenAnnotation","required":false,"in":"body","ref":"","_id":"56d818ebb20d260b00265664"}],"results":{"codes":[{"language":"json","code":"{\n \"annotation\": {\n \"annotatedAt\": \"Thu Mar 3 10:54:28 2016\", \n \"hasTarget\": {\n \"hasSource\": {\n \":::at:::id\": \"http://web.archive.org/web/20160303105412/http://www.google.com/\", \n \"originalUrl\": \"http://www.google.com/\"\n }\n }, \n \"id\": \"lst-ib\", \n \"message\": \"Theres a microphone button in the searchbox\"\n }, \n \"domain\": \"www.google.com\", \n \"id\": 15, \n \"path\": \"/\", \n \"protocol\": \"http\", \n \"wayback_id\": \"/web/20160303105412/http://www.google.com/\"\n}","name":"","status":200},{"status":400,"language":"json","code":"{\n \"error\": \"Page archived as http://web.archive.org/web/20160303105808/http://www.google.com/ but no annotation detected\"\n}","name":""}]},"settings":"5cd46eddf221b300514d76f4"},"next":{"description":"","pages":[]},"title":"Creating a Snapshot","type":"endpoint","slug":"creating-a-snapshot","excerpt":"Create a Wayback snapshot with an (optional) OpenAnnotation","body":"The code for this endpoint is available at https://github.com/ArchiveLabs/pragma.archivelab.org","updates":["6146005ea742c3004069305c"],"order":2,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"56d556d9075dfa0b00be9905","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"},"editedParams":true,"parentDoc":null,"__v":4,"editedParams2":true,"githubsync":"","project":"56d55013075dfa0b00be98e6","createdAt":"2016-03-01T08:46:17.277Z","category":{"sync":{"isSync":false,"url":""},"pages":["56d555a0b939870b005129f3","56d555c25acf9f0b00f735dc","56d556d9075dfa0b00be9905","56d5571b73dcd20b00fb87fd","56d7fe6e7a04df0b00ddefe8","56d81c859d27560b00a4cbb1"],"title":"Wayback Machine","slug":"wayback-machine","order":2,"from_sync":false,"reference":false,"_id":"56d55036c8c687150071efb3","__v":6,"version":"56d55014075dfa0b00be98e9","createdAt":"2016-03-01T08:17:58.951Z","project":"56d55013075dfa0b00be98e6"},"user":"56d54fd3c8c687150071efb0"}
postCreating a Snapshot
Create a Wayback snapshot with an (optional) OpenAnnotation
Definition
{{ api_url }}{{ page_api_url }}
Parameters
Body Params
url:
required
string
The URL to snapshot / archive
annotation:
object
An object representing your OpenAnnotation