1password's data format is publicly documented and a variety of unofficial ways to access data have been created. For example on the command line there are:
Python: https://pypi.python.org/pypi/1pass
Node: https://github.com/oggy/1pass
And the creator of 1Password, AglieBits officially includes 1PasswordAnywhere for access via HTML/javascript:
https://guides.agilebits.com/1password-mac/5/en/topic/1passw...