# Just getting started, problem with api.get\_account

**URL:** <https://forum.alpaca.markets/t/just-getting-started-problem-with-api-get-account/221>\
**Category:** Alpaca Account Troubleshooting\
**Created:** [September 2, 2019, 2:31pm UTC](https://forum.alpaca.markets/t/just-getting-started-problem-with-api-get-account/221 "2019-09-02T14:31:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benja](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/benja/32/146_2.png) [@Benja](https://forum.alpaca.markets/u/Benja)\
**Post date:** [September 2, 2019, 2:31pm UTC](https://forum.alpaca.markets/t/just-getting-started-problem-with-api-get-account/221/1 "2019-09-02T14:31:52Z")

</div>

## Environment

Coding in Python3, Google Colab, Chrome browser

Hey all, as indicated in the title, I’m just getting started and a relative noob. I followed the Google Colab template with the following code:

import alpaca\_trade\_api as alpaca

api = alpaca.REST(‘API\_KEY\_ID’, ‘API\_SECRET\_KEY’, ‘[https://api.alpaca.markets/’](https://api.alpaca.markets/%E2%80%99))

api.get\_account()

BUT, when I run the code, I get the following error message:

HTTPError Traceback (most recent call last)  
 in ()  
----\> 1 api.get\_account()

4 frames  
/usr/local/lib/python3.6/dist-packages/requests/models.py in raise\_for\_status(self)  
938  
939 if http\_error\_msg:  
–\> 940 raise HTTPError(http\_error\_msg, response=self)  
941  
942 def close(self):

HTTPError: 404 Client Error: Not Found for url: [https://api.alpaca.markets//v2/account](https://api.alpaca.markets//v2/account)

I double-checked the keys and the URL, and I didn’t get an error message before running the api.get\_account() command.

Multiple things about this confuse me, but at the top of the list is the URL… /v2/account? I read the documentation, and shouldn’t the endpoint be /v1/account? I don’t see a way to change the endpoint either.

I should also mention that I’ve put in a transfer request to fund my account, but the money isn’t actually in the account yet, so I’m not sure if that’s what’s causing this error message. I assumed the command would still work and I’d just get back output saying something to the effect of no money, no open orders, no positions, etc.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![hitoshi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/hitoshi/32/69_2.png) [@hitoshi](https://forum.alpaca.markets/u/hitoshi)\
**Post date:** [September 2, 2019, 2:36pm UTC](https://forum.alpaca.markets/t/just-getting-started-problem-with-api-get-account/221/2 "2019-09-02T14:36:02Z")

</div>

Nice, thank you for trying Alpaca+Colab!  
Can you try without the trailing slash for the endpoint parameter?

```
api = alpaca.REST(‘API_KEY_ID’, ‘API_SECRET_KEY’, ‘https://api.alpaca.markets’)
api.get_account()

```

The current API version is v2 and it is not recommended to use v1. The error doesn’t have to do with your money transfer status.

---

<div class="post-metadata">

**Author:** ![Benja](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/benja/32/146_2.png) [@Benja](https://forum.alpaca.markets/u/Benja)\
**Post date:** [September 2, 2019, 5:18pm UTC](https://forum.alpaca.markets/t/just-getting-started-problem-with-api-get-account/221/3 "2019-09-02T17:18:33Z")

</div>

Thanks Hitoshi,

I deleted the trailing hash, and it’s working now. I’m reading the documentation for v2 now to avoid similar confusion in the future.
