Guillaume Guillaume - 1 year ago 158
JSON Question

How to use the Wayback Machine API with URL query string?

I'm trying to get information with the wayback machine API.

The webpage I'm testing the API with is :

As you can see here, the webpage is already archived :*/

So when I'm using the API :

I should get my information but the API answer is empty as if the webpage wasn't archived...


I tried to replace
but it's still empty...

So my question is : how to use the Wayback Machine API with URL query string ?

Answer Source

The ampersands, even in &, are parsed as additional parameters to the API rather than as part of the url parameter.

Use %26 to encode the ampersand. Similarly encode the rest of the URL.

Your request becomes:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download