I made the website <a href="http:&#x2F;&#x2F;devdata.io" rel="nofollow">http:&#x2F;&#x2F;devdata.io</a> for this exact reason. You can get an array&#x2F;list&#x2F;object of US state names and abbreviations (and lots of other datasets) in any language supported (currently JavaScript, PHP, Python, Ruby, C#, and Lua).