To facilitate rapid in situ analyte monitoring within heterogeneous samples, a space-resolved solid phase microextraction (SR-SPME) technique was developed that utilized miniaturized segmented fibers. Initially, a multilayered agarose gel was used to determine the effects of diffusion-based mass transfer and fiber dimension on the space-resolving capability of SPME. For diazepam within agarose gel, the SR-SPME limit of detection was 2.5 ng/mL, with a linear dynamic range up to 500 ng/mL. The efficacy of the SR-SPME technique was further evaluated within diverse biological matrices (onion bulb, fish muscle, and adipose tissues) containing stratified pharmaceutical analytes. Empirically, the results agreed well with established techniques such as microdialysis and liquid extraction, but SR-SPME was simpler to implement, displayed higher spatial resolution, and was more cost-effective than traditional approaches. Additionally, the segmented design of the SPME fibers and stepwise desorption protocols offer potential advantages within high throughput applications.