[GH-ISSUE #1653] Allow user to visit a "Save Page Now"-style endpoint to save any URL and be redirected to the result #2500

Open
opened 2026-03-01 17:59:27 +03:00 by kerem · 0 comments
Owner

Originally created by @pirate on GitHub (Feb 6, 2025).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1653

Originally assigned to: @pirate on GitHub.

add something like that, sort of like "Save Page Now" feature where you can visit https://web.archive.org/web/https://example.com/url/to/save to be redirected to a saved copy of any page (or capture a new snapshot if it doesn't exist).

  • https://demo.archivebox.io/web/https://example.com/somepage/to/save.html ->
    could capture + redirect to https://demo.archivebox.io/archive/<snapshot_id>/index.html (this is already sort of working, it wont capture a page if it doesn't exist but it will redirect to you to any existing result if you do this now)

  • https://demo.archivebox.io/web/screenshot/https://example.com/somepage/to/save.html ->
    could capture + redirect to https://demo.archivebox.io/archive/<snapshot_id>/screenshot.png

  • https://demo.archivebox.io/web/singlefile/https://example.com/somepage/to/save.html ->
    could capture + redirect to https://demo.archivebox.io/archive/<snapshot_id>/singlefile.html

  • https://demo.archivebox.io/web/ytdlp/https://example.com/somepage/to/save.html ->
    could capture + redirect to https://demo.archivebox.io/archive/<snapshot_id>/media/main_video.mp4


Discussed in https://github.com/ArchiveBox/ArchiveBox/discussions/1652

Originally posted by fiveangle February 5, 2025
I've read and searched as much as I dare and can't determine if the functionality I am looking for is available now in the latest 0.7.2 release, available in the 0.8.2rc1 release (via an as-yet-released REST API), or not expected/planned to be available in any ArchiveBox variant...

I am configuring Nextcloud Bookmark / Floccus integration and assumed that the wonderful ArchiveBox instance I am currently self-hosting would be ideal for generating Bookmark previews via a something simple like:

http://my.archivebox.url/api/myArchiveBoxUserApiKey/Possible_API_Options_Like_Requested_Archive_Format_to_Return/TARGET_URL_TO_RETURN_SCREENSHOT_OF"

Nextcloud Bookmark Screenshot Configuration Section:

Generic screenshot API
Sign up with any of the screenshot API providers and put the API URL below. Use the variable {url} as a placeholder for the URL to screenshot. The API must return only the image directly.

Generic API URL:

Thanks in advance for helping to educate me !

-=dave

Originally created by @pirate on GitHub (Feb 6, 2025). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1653 Originally assigned to: @pirate on GitHub. add something like that, sort of like ["Save Page Now"](https://blog.archive.org/2019/10/23/the-wayback-machines-save-page-now-is-new-and-improved/) feature where you can visit `https://web.archive.org/web/https://example.com/url/to/save` to be redirected to a saved copy of any page (or capture a new snapshot if it doesn't exist). - `https://demo.archivebox.io/web/https://example.com/somepage/to/save.html` -> could capture + redirect to `https://demo.archivebox.io/archive/<snapshot_id>/index.html` (this is already sort of working, it wont capture a page if it doesn't exist but it will redirect to you to any existing result if you do this now) - `https://demo.archivebox.io/web/screenshot/https://example.com/somepage/to/save.html` -> could capture + redirect to `https://demo.archivebox.io/archive/<snapshot_id>/screenshot.png` - `https://demo.archivebox.io/web/singlefile/https://example.com/somepage/to/save.html` -> could capture + redirect to `https://demo.archivebox.io/archive/<snapshot_id>/singlefile.html` - `https://demo.archivebox.io/web/ytdlp/https://example.com/somepage/to/save.html` -> could capture + redirect to `https://demo.archivebox.io/archive/<snapshot_id>/media/main_video.mp4` --- ### Discussed in https://github.com/ArchiveBox/ArchiveBox/discussions/1652 <div type='discussions-op-text'> <sup>Originally posted by **fiveangle** February 5, 2025</sup> I've read and searched as much as I dare and can't determine if the functionality I am looking for is available now in the latest 0.7.2 release, available in the 0.8.2rc1 release ([via an as-yet-released REST API](https://github.com/ArchiveBox/ArchiveBox/issues/496)), or not expected/planned to be available in any ArchiveBox variant... I am configuring Nextcloud Bookmark / Floccus integration and assumed that the wonderful ArchiveBox instance I am currently self-hosting would be ideal for generating Bookmark previews via a something simple like: http://my.archivebox.url/api/myArchiveBoxUserApiKey/Possible_API_Options_Like_Requested_Archive_Format_to_Return/TARGET_URL_TO_RETURN_SCREENSHOT_OF" Nextcloud Bookmark Screenshot Configuration Section: > **Generic screenshot API** > Sign up with any of the screenshot API providers and put the API URL below. Use the variable {url} as a placeholder for the URL to screenshot. The API must return only the image directly. > > **Generic API URL:** > Thanks in advance for helping to educate me ! -=dave </div>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#2500
No description provided.