James IV ( ( 17 March 1473 â `` 9 September 1513 ) ) was King of Scotland from 1488 through 1513 .
James IV ( 17 March 1473 -- 9 September 1513 ) was King of Scots from 11 June 1488 to his death .