NOTE: This question is not about finding ID of an Item (form element), but an ID of Entry. These are different things. Entry ID is a number which is used to pre-populate fields (Items) in a form URL.
As described here https://developers.google.com/apps-script/reference/forms/text-item it is possible to get a TextItem ID (actually, any Item ID) via getID()
method.
If you open any public Google Form HTML source code you will see something like this in the var FB_PUBLIC_LOAD_DATA
:
[232495719,"Question 1",null,0,[[1492883199]]
^ ^
Item ID Entry ID
I don't see a method to get Entry IDs. Is it actually possible to do via Google Apps Script API?
There are two ways to get the entry IDs