# Is the paper api endpoint working?

**URL:** https://forum.alpaca.markets/t/is-the-paper-api-endpoint-working/7143
**Category:** Alpaca Account Troubleshooting
**Created:** [October 19, 2021, 2:21pm UTC](https://forum.alpaca.markets/t/is-the-paper-api-endpoint-working/7143 "2021-10-19T14:21:36Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![JulioBarros](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/juliobarros/32/3180_2.png) [@JulioBarros](https://forum.alpaca.markets/u/JulioBarros)
#### Post date: [October 19, 2021, 2:21pm UTC](https://forum.alpaca.markets/t/is-the-paper-api-endpoint-working/7143/1 "2021-10-19T14:21:36Z")

</div>

I’ve tried following the docs and using curl, Python (with requests not the SDK) and Julia and get 404 when hitting some of the paper-api endpoints. I’m able to get my account information but not quote/market data.

I’d like to use Julia but am testing with Curl and python. Not sure what is going wrong.

Thanks in advance,

Julio

With a Curl example (using my own keys) I do:

curl -v -X GET   
-H “APCA-API-KEY-ID: {YOUR\_API\_KEY\_ID}”   
-H “APCA-API-SECRET-KEY: {YOUR\_API\_SECRET\_KEY}”  
[https://paper-api.alpaca.markets/v2/stocks/AAPL/bars\?timeframe=1Day\&start=2021-09-01T00:00:00Z](https://paper-api.alpaca.markets/v2/stocks/AAPL/bars%5C?timeframe=1Day%5C&start=2021-09-01T00:00:00Z)

and get:

- Trying 35.194.67.18:443…
- Connected to paper-api.alpaca.markets (35.194.67.18) port 443 (#0)
- ALPN, offering h2
- ALPN, offering http/1.1
- successfully set certificate verify locations:
- CAfile: /Users/julio/anaconda3/ssl/cacert.pem
- CApath: none
- TLSv1.3 (OUT), TLS handshake, Client hello (1):
- TLSv1.3 (IN), TLS handshake, Server hello (2):
- TLSv1.2 (IN), TLS handshake, Certificate (11):
- TLSv1.2 (IN), TLS handshake, Server key exchange (12):
- TLSv1.2 (IN), TLS handshake, Server finished (14):
- TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
- TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
- TLSv1.2 (OUT), TLS handshake, Finished (20):
- TLSv1.2 (IN), TLS handshake, Finished (20):
- SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
- ALPN, server accepted to use h2
- Server certificate:
- subject: CN=paper-api.alpaca.markets
- start date: Sep 3 12:05:28 2021 GMT
- expire date: Dec 2 12:05:27 2021 GMT
- subjectAltName: host “paper-api.alpaca.markets” matched cert’s “paper-api.alpaca.markets”
- issuer: C=US; O=Let’s Encrypt; CN=R3
- SSL certificate verify ok.
- Using HTTP2, server supports multiplexing
- Connection state changed (HTTP/2 confirmed)
- Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
- Using Stream ID: 1 (easy handle 0x7f886380d400)

> GET /v2/stocks/AAPL/bars?timeframe=1Day&start=2021-09-01T00:00:00Z HTTP/2  
> Host: paper-api.alpaca.markets  
> user-agent: curl/7.78.0  
> accept: _/_  
> apca-api-key-id: REMOVED  
> apca-api-secret-key: REMOVED

- Connection state changed (MAX\_CONCURRENT\_STREAMS == 128)!  
\< HTTP/2 404  
\< server: nginx  
\< date: Tue, 19 Oct 2021 13:57:23 GMT  
\< content-type: text/plain; charset=utf-8  
\< content-length: 9  
\<
- Connection #0 to host paper-api.alpaca.markets left intact  
Not Found%

---

<div class="post-metadata">

### Author: ![oleg.rakhmatulin](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/oleg.rakhmatulin/32/559_2.png) [@oleg.rakhmatulin](https://forum.alpaca.markets/u/oleg.rakhmatulin)
#### Post date: [October 19, 2021, 5:41pm UTC](https://forum.alpaca.markets/t/is-the-paper-api-endpoint-working/7143/2 "2021-10-19T17:41:28Z")

</div>

The Data API base URL is [https://data.alpaca.markets/v2](https://data.alpaca.markets/v2)

---

<div class="post-metadata">

### Author: ![JulioBarros](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/juliobarros/32/3180_2.png) [@JulioBarros](https://forum.alpaca.markets/u/JulioBarros)
#### Post date: [October 19, 2021, 5:55pm UTC](https://forum.alpaca.markets/t/is-the-paper-api-endpoint-working/7143/3 "2021-10-19T17:55:49Z")

</div>

Thanks. That seemed to work for the quick test I just did.

FWIW The docs say api.alpaca.markets and paper-api.alpaca.markets [API v2 - Documentation | Alpaca](https://alpaca.markets/docs/api-documentation/api-v2/)

---

<div class="post-metadata">

### Author: ![oleg.rakhmatulin](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/oleg.rakhmatulin/32/559_2.png) [@oleg.rakhmatulin](https://forum.alpaca.markets/u/oleg.rakhmatulin)
#### Post date: [October 19, 2021, 6:30pm UTC](https://forum.alpaca.markets/t/is-the-paper-api-endpoint-working/7143/4 "2021-10-19T18:30:42Z")

</div>

These URLs are for Trading API. For [Data API](https://alpaca.markets/docs/api-documentation/api-v2/market-data/alpaca-data-api-v2/historical/#common-behavior) both Paper and Live use the same URL .

---

<div class="post-metadata">

### Author: ![daftpunk80](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/daftpunk80/32/4315_2.png) [@daftpunk80](https://forum.alpaca.markets/u/daftpunk80)
#### Post date: [June 7, 2022, 10:17am UTC](https://forum.alpaca.markets/t/is-the-paper-api-endpoint-working/7143/6 "2022-06-07T10:17:54Z")

</div>

Im using zipline and getting the error below…does this have anything to do with this thread?

```auto
raise HTTPError(http_error_msg, response=self)

```

requests.exceptions.HTTPError: 404 Client Error: Not Found for url: [https://data.alpaca.markets/v1/bars/day?symbols=TSLA%2CAAPL%2CGOOG&limit=1000&end=2022-06-06T00%3A00%3A00%2B00%3A00](https://data.alpaca.markets/v1/bars/day?symbols=TSLA%2CAAPL%2CGOOG&limit=1000&end=2022-06-06T00%3A00%3A00%2B00%3A00)

---

<div class="post-metadata">

### Author: ![oleg.rakhmatulin](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/oleg.rakhmatulin/32/559_2.png) [@oleg.rakhmatulin](https://forum.alpaca.markets/u/oleg.rakhmatulin)
#### Post date: [June 9, 2022, 9:47am UTC](https://forum.alpaca.markets/t/is-the-paper-api-endpoint-working/7143/7 "2022-06-09T09:47:31Z")

</div>

Again, the Alpaca Data API v1 is obsolete for months and you have to use the [https://data.alpaca.markets/v2](https://data.alpaca.markets/v2) as the base URL for your requests. The response format is also different of course.

---

<div class="post-metadata">

### Author: ![Sony](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/sony/32/4334_2.png) [@Sony](https://forum.alpaca.markets/u/Sony)
#### Post date: [June 13, 2022, 3:19pm UTC](https://forum.alpaca.markets/t/is-the-paper-api-endpoint-working/7143/10 "2022-06-13T15:19:48Z")

</div>

Guys, this link forbidden 403 [https://data.alpaca.markets/v2](https://data.alpaca.markets/v2)

---

<div class="post-metadata">

### Author: ![masjaya.sutarno](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/masjaya.sutarno/32/3364_2.png) [@masjaya.sutarno](https://forum.alpaca.markets/u/masjaya.sutarno)
#### Post date: [June 14, 2022, 10:50am UTC](https://forum.alpaca.markets/t/is-the-paper-api-endpoint-working/7143/11 "2022-06-14T10:50:23Z")

</div>

Hi @Sony

I am not able to reproduce on my end can you share which endpoint you are referring to. could you also give us the payload please and would be great to check our document about environment market data [here](https://alpaca.markets/docs/api-references/market-data-api/stock-pricing-data/#environments) and you can easily access our Market Data APIs via Postman collections on [Postman public workspace](https://www.postman.com/alpacamarkets)
