1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "links": [
12 {
13 "url": "https://www.gov.uk/vat-rates",
14 "quote": "The reduced rate of VAT is 8%, for example on children's car seats and home energy.",
15 "label": "VAT rates"
16 },
17 {
18 "url": "https://gov.uk/vat-rates",
19 "quote": "The standard rate of VAT increased to 20% on 4 January 2011 (from 17.5%).",
20 "label": "VAT rates"
21 },
22 {
23 "url": "https://www.gov.uk/guidance/rates-of-vat-on-different-goods-and-services-2031",
24 "label": "Rates of VAT on different goods and services"
25 }
26 ],
27 "timeoutSecs": 20
28};
29
30
31const run = await client.actor("landlordtools/link-citation-checker").call(input);
32
33
34console.log('Results from dataset');
35console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
36const { items } = await client.dataset(run.defaultDatasetId).listItems();
37items.forEach((item) => {
38 console.dir(item);
39});
40
41