![Simple URL Loader / Virtual Cronjob avatar](https://images.apifyusercontent.com/62czWpvaLw3kdvLIF7nIqShH5QvoRLC00pX57MherUM/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMudXMtZWFzdC0xLmFtYXpvbmF3cy5jb20vNnNTZGRaYnhWYk93WnVxY2EvbFpQbTZ4WjhkcnRKUjRTU3ktaGFuZHltYW4uanBn.webp)
7 days trial then $1.00/month - No credit card required now
![Simple URL Loader / Virtual Cronjob](https://images.apifyusercontent.com/62czWpvaLw3kdvLIF7nIqShH5QvoRLC00pX57MherUM/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMudXMtZWFzdC0xLmFtYXpvbmF3cy5jb20vNnNTZGRaYnhWYk93WnVxY2EvbFpQbTZ4WjhkcnRKUjRTU3ktaGFuZHltYW4uanBn.webp)
Simple URL Loader / Virtual Cronjob
7 days trial then $1.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鈥檝e got any technical feedback, a feature request, or simply found a bug, please create an issue on the Actor鈥檚 Issues tab in Apify Console. Thank you and have a great day!
- 4 monthly users
- 2 stars
- 100.0% runs succeeded
- Created in May 2024
- Modified 16 days ago