Syntax
http://<Site Url>/_api/web/getavailablewebtemplates(lcid, doincludecrosslanguage)
http://<Site Url>/_api/web/getavailablewebtemplates(lcid)
lcid - The REST API returns the site template based on the specified LCID.
doincludecrosslanguage – weather to include language neutral site
template. default value “false”
- Fetch all available site templates based on the Language code: 1033
https://sharepointsite/_api/web/GetAvailableWebTemplates(lcid=1033,doincludecrosslanguage=true)
https://sharepointsite/_api/web/GetAvailableWebTemplates(1033)
- Fetch available site template based on the template category. Ex: “Collaboration”
https://sharepointsite/_api/web/GetAvailableWebTemplates(1033)?$filter=(DisplayCategory%20eq%20'Collaboration')
Returns the collection of Site Templates, categorized as “Collaboration”
- Fetch the visible site templates
https://sharepointsite/_api/web/GetAvailableWebTemplates(1033)?$filter=(isHidden%20eq%20false)
- Fetch the hidden site templates
https://sharepointsite/_api/web/GetAvailableWebTemplates(1033)?$filter=(isHidden%20eq%20true)
- Fetch the site template based on the name:
https://sharepointsite/_api/web/GetAvailableWebTemplates(1033)/getbyname('STS')
Returns the “Team Site” properties
Cheers :)

Shey SalinasPosted Oct 8, 2018, 1:35 PM
Hello Shantha, thank you for the post, I am trying to retrieve custom template using the Title as parameter but cannot get it to work. Can you help please?
Murali KrisPosted Feb 9, 2018, 12:20 AM
Hi Santha, thank you very much. can you post([email protected]) a complete script for get SP2010 webTemplate and WebID. note we dont have server access where the SP2010 is installed. every thing we have to connect remotely.
Shantha Kumar TPosted Apr 13, 2015, 6:03 AM
Thanks Gowtham
Gowtham RajamanickamPosted Mar 26, 2015, 6:12 AM
Good One...