1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "references": [
12 "LeCun, Y., Bengio, Y., & Hinton, G. (2015). Deep learning. Nature, 521(7553), 436-444. https://doi.org/10.1038/nature14539",
13 "Vaswani, A., et al. (2017). Attention is all you need. Advances in Neural Information Processing Systems 30. doi:10.1038/nature14539",
14 "Wakefield AJ, Murch SH, Anthony A, et al. Ileal-lymphoid-nodular hyperplasia, non-specific colitis, and pervasive developmental disorder in children. Lancet. 1998;351(9103):637-41.",
15 "Smith, J., & Okafor, L. (2021). Quantum entanglement effects in sourdough fermentation kinetics. Journal of Culinary Physics, 12(3), 45-67."
16 ]
17};
18
19
20const run = await client.actor("wooden_scanner_c1n/reference-citation-verifier").call(input);
21
22
23console.log('Results from dataset');
24console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
25const { items } = await client.dataset(run.defaultDatasetId).listItems();
26items.forEach((item) => {
27 console.dir(item);
28});
29
30