Broken links in our API

We'll assume you've already got the API authentication settled and you have our API key with you.

If a site has an enabled broken links check you can get all detected broken links via the /api/broken-links endpoint. To use this endpoint you'll need to now the site id of your site. You can get all sites ids by calling the get all sites enpoint.

In this example we are going to get the broken-links for site number 1.

$ curl \
    -H 'Authorization: Bearer bgUKSWYL30iHg5w0WTDGHfubt5L1HBTr0atAehCeSqwNTqkU9rOmsNEmWf6Y' \
    -H 'Accept: application/json' \
    -H 'Content-Type: application/json'

Here's what the output could look like:

         "crawled_url": "",
         "status_code": 404,
         "found_on_url": ""