Hello,
It seems some TextExtracts queries return an empty extract .
Sometimes, if the extract is empty, adding the &exintro parameter will work, sometimes not.
The expected result is to have an extract in the json returned by queries like :
https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&explaintext&exlimit=1&redirects=1&titles=PAGE_TITLE
Please find below some examples that give an extract ("ok") or give an empty extract ("ko") :
ko : https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&explaintext&titles=Ruhnu&exlimit=1&redirects=1
ok : https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&explaintext&titles=Ruhnu&exlimit=1&exintro
ko : https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&explaintext&titles=Ruhnu_Airfield&exlimit=1
ok : https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&explaintext&titles=Ruhnu_Airfield&exlimit=1&exintro
ok : https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&explaintext&titles=Eiffel_Tower&exlimit=1&redirects=1
ok : https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&explaintext&titles=Eiffel_Tower&exlimit=1&redirects=1&exintro
ko : https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&explaintext&titles=Gare_de_Ch%C3%A2telet%E2%80%93Les_Halles&exlimit=1&redirects=1
ok : https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&explaintext&titles=Gare_de_Ch%C3%A2telet%E2%80%93Les_Halles&exlimit=1&redirects=1&exintro
ko : https://fr.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&explaintext&titles=Esquilin&exlimit=1&redirects=1
ok : https://fr.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&explaintext&titles=Esquilin&exlimit=1&redirects=1&exintro
ko : https://fr.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&explaintext&titles=Port_du_Louvre&exlimit=1&redirects=1
ko : https://fr.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&explaintext&titles=Port_du_Louvre&exlimit=1&redirects=1&exintro
ko : https://fr.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&explaintext&titles=Quirinal&exlimit=1&redirects=1
ok : https://fr.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&explaintext&titles=Quirinal&exlimit=1&redirects=1&exintro
thanks for your help