Try concatenating response for both lists, after that you can put them into a table on a page.
var response = response || [];
function loadMyItems() {
var oDataUrl = "https://site.example/_api/Web/Lists/GetByTitle('Инструкции')/items?$select=Title,EncodedAbsUrl,Device,Related_x0020_application,Key_x0020_words&$filter=(ShowOnSearchPage eq 'Yes')&$top=5000";
$.ajax({
url: oDataUrl,
type: "GET",
dataType: "json",
headers: {
"accept": "application/json;odata=verbose"
},
success: function (data) {
if (data.d.results) {
response = response.concat(data);
}
loadMyItems2();
},
error: myErrHandler
});
}
function loadMyItems2() {
var oDataUrl = "https://site.example/_api/Web/Lists/GetByTitle('test')/items?$select=Title,EncodedAbsUrl,Device,Related_x0020_application,Key_x0020_words&$filter=(ShowOnSearchPage eq 'Yes')&$top=5000";
$.ajax({
url: oDataUrl,
type: "GET",
dataType: "json",
headers: {
"accept": "application/json;odata=verbose"
},
success: function (data) {
if (data.d.results) {
response = response.concat(data);
}
mySuccHandler(response);
},
error: myErrHandler
});
}
function mySuccHandler(data) {
try {
var dataTableExample = $('#table_id').DataTable();
if (dataTableExample != 'undefined') {
dataTableExample.destroy();
}
dataTableExample = $('#table_id').DataTable({
scrollY: true,
"aaData": data.d.results,
"aoColumns": [{
"mData": "Title",
"render": function(data, type, row, meta){
return data = '<a href="' + row['EncodedAbsUrl'] + '">' + data + '</a>';}
},{
"mData": "Device",
"render": function( data, type, full, meta) {
if(!data){var returnText = "";}
else {var returnText = data.results;}
return returnText; }
},{
"mData": "Related_x0020_application",
},{
"mData": "Key_x0020_words",
}
]
});
} catch (e) {
alert(e.message);
}
}
function myErrHandler(data, errCode, errMessage) {
alert("Error: " + errMessage);
}