Simple URL Loader / Virtual Cronjob avatar
Simple URL Loader / Virtual Cronjob
Try for free

3 days trial then $5.00/month - No credit card required now

View all Actors
Simple URL Loader / Virtual Cronjob

Simple URL Loader / Virtual Cronjob

chris_gentleman/simple-url-loader
Try for free

3 days trial then $5.00/month - No credit card required now

This actor loads (NOT JUST PINGS) the provided URLs inside the actor and returns the http status codes and status texts per URL. Perfect to create your own cronjob plan or check on the health of a url. GET, POST and other methods are possible.

Load URLs (not ping) with this lightweight actor

This actor loads the provided URLs inside the actor and returns the http status codes and status texts per URL. Perfect for e.g. triggering server scripts that need to load instead of a ping, or to check on the real status of a page.

The actors output contains

  • url - the loaded url
  • statusCode - the http status code (e.g. 200)
  • statusText - the http status text (e.g. OK)

The actors input (theUrls array)

  • url - the url to load

Optional:

  • method - method of the request (default: GET)
  • payload - the data to be sent as the request body, only applicable for request methods 'PUT', 'POST', 'DELETE', and 'PATCH'
  • headers - custom headers to be sent
  • userData (not used yet) - please use Authorization custom headers instead

Example:

1{
2  "theUrls": [
3    {
4      "url": "https://example.com"
5    },
6    {
7      "url": "https://example.com/path",
8      "method": "POST",
9      "payload": "Test",
10      "userData": {},
11      "headers": {
12        "Test": "Test"
13      }
14    }
15  ]
16}

Why I created this actor

I created this actor to replace my server cronjobs and instead use it as virtual cronjob to trigger server scripts. On my managed hosting plan I can only set cronjobs and timed scripts to daily. Pinging the scripts also didn't seem to work, so this actor waits until the script is loaded and then returns the status.

Your feedback and/or feature request

I'm always working on improving myself and my results. So if you’ve got any technical feedback, a feature request, or simply found a bug, please create an issue on the Actor’s Issues tab in Apify Console. Thank you and have a great day!

Developer
Maintained by Community
Actor metrics
  • 1 monthly user
  • 2 stars
  • 100.0% runs succeeded
  • Created in May 2024
  • Modified 22 days ago