Can I use the API to get relevant data that can draw a bandgap graph?

I use the following method to get the data.

data = m.get_bandstructure_by_material_id("mp-22691", line_mode=False)

However, the data I obtained through the above method is not the same as that displayed on the website, so I can’t make the same bandgap map as the website by the obtained data.

Is the data obtained by the above method consistent with the k-point and energy data of the bandgap map of the website?
I need some valid data to calculate the effective quality. How can I get relevant valid data?