Passing values through url for checkbox fields with same name to get?

This really needs more context in what apple and banana are referring to and what you’re trying to accomplish and how you’ve already tried to accomplish it…

You could do a custom query and set the parameters in terms based on whatever was selected in the multiple choice. This is assuming that A. fruit is a CPT and that B. “apple” and “banana” are custom taxonomies of “type” associated with the fruit CPT.

$args = array(
    'post_type' => 'fruit',
    'tax_query' => array(
        array(
            'taxonomy' => 'type',
            'field'    => 'slug',
            'terms'    => array( 'apple', 'banana' )
        )
    )
);
$query = new WP_Query( $args );

New queries can cause issues with pagination if that’s a concern so use with caution.

You may also want to consider checking out the pre_get_posts filter, here is an article/question-answer thread that helped me get a form with custom options that queries a CPT and it’s taxonomy set up: WordPress custom search form with pre_get_posts not work

(just noticed the ajax part)

You can also make requests through the wp api and get back multiple categories from a post type like so:

/wp-json/wp/v2/posttype?category=3,4

Replace posttype with your post type name and category with the taxonomy name you are trying to access, finally replace 3,4 with whatever the ID’s of the category are. So your query might look something like below, assuming fruit is the name of the post type and 5 is the ID of apple and 9 is the ID of banana ( for example )

/wp-json/wp/v2/fruit?category=5,9