openwayback icon indicating copy to clipboard operation
openwayback copied to clipboard

Query API

Open mhajder opened this issue 7 years ago • 2 comments

http://web.archive.org/cdx/search/cdx?url=google.com&matchType=domain&output=json

Something like this to the count of all elements (number of archived pages).

mhajder avatar Aug 31 '17 07:08 mhajder

Hi @Rzeszow Are you looking for the functionality seen at the URL you provided to be made available in OpenWayback? You can get something like that if you deploy the CDX Server webapp that already exists in OpenWayback. To deploy that:

  • Download and build OpenWayback
  • cp ./wayback-cdx-server-webapp/target/openwayback-cdx-server-2.4.0-SNAPSHOT.war to your Tomcat's webapps directory, renaming the WAR file cdx.war in the process (if tomcat is running, and is set to auto deploy, the CDX server web app should auto deploy).
  • edit webapps/cdx/WEB-INF/wayback-cdx-server-servlet.xml to put in your CDX file locations in the cdxUris property of the MultiCDXInputSource, and in the cdxServer bean, if you are using SURT sorted CDX files, add:
    <property name="surtMode" value="true" />
  • Restart Tomcat
  • You can then look up urls like: http://localhost:8080/cdx/search/cdx?url=google.com&matchType=domain&output=json

If I am misunderstanding what you are asking for with this issue, please clarify with more details. Thank you!

ldko avatar Aug 31 '17 17:08 ldko

I'm looking for a ready-made feature that would work in web.archive.org. sample I have circled information that I would like to receive from Api's.

mhajder avatar Aug 31 '17 17:08 mhajder