When you call Item.type on a table, you get 'Feature Service'. Specifying that in the item_type parameter will return table layers, too.
However, there does seem to be some separate attribute being stored somewhere that identifies the service as a table, but where? If you look at the service JSON, you'll see something like this:
{
...
"type" : "Feature Service",
"typeKeywords" : [
"ArcGIS Server",
"Data",
"Feature Access",
"Feature Service",
"Service",
"Table",
"Hosted Service"
],
...
}
Refer to the search reference page, and you'll see that 'typekeywords' is its own search parameter, and goes in the query string.
# This works
gis.content.search('table')
# This is more specific, and probably better
gis.content.search('typekeywords:table')
Both commands return:
[<Item title:"Join_Features_to_GISFIPSMG" type:Table Layer owner:carlsonj9>,
<Item title:"date test" type:Table Layer owner:carlsonj9>,
<Item title:"GISFIPSMG" type:Table Layer owner:carlsonj9>]
EDIT: It looks like the items and item types page does not reference tables in type or typekeyword, so you'd be forgiven for not being able to find this information. I've sent feedback for the page to get updated.
- Josh Carlson
Kendall County GIS