How to create ajax based pagination in datatable?

I want to use datatable in my laravel project. I have around 1000 rows in my database. I don’t want to show all the records at once. I want to load the data with ajax. But the problem is I can’t find a way to implement the default features like pagination, search and sort. Please help me solve the problem.

$(document).ready(function () {
    $('#example').DataTable({
        ajax: 'ajax-url',
        columns: [
            { data: 'id' },
            { data: 'date' },
            { data: 'period' },
            { data: 'component' },
            { data: 'category' },
            { data: 'created_by' },
            { data: 'action' },
        ],
    });
});

I don’t see any parameter in requests. How do I know which page data to send?