The chemical test that is used for diagnosis of typhoid is:
Widal test detects Salmonella Typhi O and H agglutinins in patient serum through tube agglutination with killed antigens. Rising titre indicates enteric fever, though interpretation requires clinical correlation due to cross-reactivity and endemic baseline antibodies.
Ref: Ananthanarayan and Paniker, Textbook of Microbiology, 11th Edition, Chapter 33 Enterobacteriaceae and Serology, describes Widal test as tube agglutination test detecting O and H agglutinins for diagnosis of typhoid fever caused by Salmonella Typhi, published by Universities Press.