Status Page
Try for free
No credit card required
View all Actors
Status Page
jannovotny/status-page
Try for free
No credit card required
Show charts with daily counts of your datasets. Useful for monitoring periodical scrapes.
The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn more
Node.js
Python
curl
1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4const client = new ApifyClient({
5 token: '<YOUR_API_TOKEN>',
6});
7
8// Prepare Actor input
9const input = {
10 "charts": [
11 {
12 "id": "my-super-chart-1",
13 "name": "My chart",
14 "showTable": false
15 }
16 ],
17 "rebrandly": {
18 "id": "LinkId",
19 "apiKey": "YourApiKey",
20 "workspace": "YourWorkspaceId",
21 "title": "My cool dashboard"
22 },
23 "intervals": [
24 "day",
25 "week",
26 "two-weeks",
27 "month",
28 "two-months"
29 ]
30};
31
32(async () => {
33 // Run the Actor and wait for it to finish
34 const run = await client.actor("jannovotny/status-page").call(input);
35
36 // Fetch and print Actor results from the run's dataset (if any)
37 console.log('Results from dataset');
38 console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
39 const { items } = await client.dataset(run.defaultDatasetId).listItems();
40 items.forEach((item) => {
41 console.dir(item);
42 });
43})();
44
45// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs
Developer
Maintained by Community
Actor metrics
- 2 monthly users
- 100.0% runs succeeded
- 0.0 days response time
- Created in Jan 2019
- Modified almost 2 years ago
Categories