WANT TO GROW YOUR ORGANIC SEARCH CHANNEL? SCHEDULE YOUR DEMO NOW.

The Purge URL API endpoint gives your team the ability to purge a specific URL from Huckabuy’s Edge Cache locations. It can be requested with either a URL or an array of URLs in the request body. Each URL will be purged and subsequently re-rendered & cached.

It will NOT:

Example Use-cases

If you’ve recently deployed an update to a page and require that visitors see the latest version immediately, purging the cached version will remove any old versions from our edge-caches. This can be useful if you found a typo or deployed a hotfix for a CSS/JS error.

API Details

Endpoint URL:

https://api.huckabuy.com/d/purge/{URL}

HTTP Method:

GET 

Required Headers:

Name /typeDescription /example
X-Auth-Token
string
Your Team’s API TokenDwZ05Ex2N8W34YqWkiKWgayk

Required Parameters:

Name /typeDescription /example
url
string
URL to Purgehttps://www.example.com/about-team
urls
Array [string]
(Optional)
URLs to Purge”urls” : [“https://www.example.com/about”, “https://www.example.com/welcome”]

CURL (example)

curl "https://api.huckabuy.com/d/purge/https://www.example.com/about-team" \     -H "X-Auth-Token: DwZ05Ex2N8W34YqWkiKWgayk"

Response (example)

{
"success": true,
"message": "Successfully purged the URL: https://www.example.com/about-team"
Frequently Asked Questions
  • The Purge URL API endpoint allows your team to purge a specific URL from Huckabuy’s Edge Cache locations. This is useful if you've recently updated a page and need visitors to see the latest version immediately.

  • The Purge URL API endpoint will not remove a URL from Google’s or other search engines’ index. It also will not remove a URL from Huckabuy’s own index of your website.

  • You can request the Purge URL API endpoint with either a single URL or an array of URLs in the request body. Each URL will be purged and then re-rendered and cached.

  • An example use-case for the Purge URL API endpoint is if you've recently deployed an update to a page and require that visitors see the latest version immediately. Purging the cached version will remove any old versions from Huckabuy's edge-caches.

  • The endpoint URL for the Purge URL API is https://api.huckabuy.com/d/purge/{URL}.

  • The HTTP method used for the Purge URL API is GET.

  • The required headers for the Purge URL API are X-Auth-Token, which should be your team’s API Token.

  • The required parameters for the Purge URL API are the URL or URLs to be purged. These should be provided as a string or an array of strings, respectively.

  • You can use the Purge URL API with CURL by sending a GET request to the endpoint URL, including your team's API token in the X-Auth-Token header, and providing the URL or URLs to be purged.

  • A successful response from the Purge URL API will be a JSON object with a "success" field set to true and a "message" field indicating that the URL was successfully purged.