Wikimedia Developer Support

Wikidata API: Filtering property search by data type



I’m looking for a solution to search/autocomplete Wikidata properties limited to those of the type external-id.

I can achieve this with SPARQL easily but is there a tool or other API that does the same with better performance?

SELECT ?item ?label
  ?item wikibase:propertyType wikibase:ExternalId .
  ?item rdfs:label ?label .
  FILTER(lang(?label) = "en")
  FILTER(STRSTARTS(LCASE(?label), 'na'))

The closest one can get to the desired result using the core Wikibase API? (does not filter on data type)