I'm sure I read it but Im not sure it's true, Please take a look here
https://www.quora.com/Why-is-imidazole-less-basic-than-pyrazoleI read that also in researchgate site, the attached photo is from a book as well.
What confused me initially is to know why imidazole is more basic than pyrazole, they have both 1 available pair of electrons that does not include in the aromatic ring electrons, and they both have resonance structures that stabilizes the conjugate acid (added the resonance structures in attached picture since there is a youtube video that says that there is no resonance structures for pyrazole after it takes proton), that link says that imidazole is more basic because that pyrolle like nitrogen acts as a EWG and increase the positive charge on the conjugate acid which makes imidazole more basic since the pyrolle nitrogen is further away than pyrazole, it's a good explanation of the bascicity but im not convinced as to why it is an EWG as you seem to agree with me.
If it is not true, and they both have resonance structures-delocalization as shown below then why indeed is imidazole more basic?
Thanks .