# Data API Problem

**URL:** <https://forum.alpaca.markets/t/data-api-problem/12974>\
**Category:** Alpaca Integration Applications\
**Created:** [October 11, 2023, 11:08am UTC](https://forum.alpaca.markets/t/data-api-problem/12974 "2023-10-11T11:08:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CurtisDehaven](https://avatars.discourse-cdn.com/v4/letter/c/96bed5/32.png) [@CurtisDehaven](https://forum.alpaca.markets/u/CurtisDehaven)\
**Post date:** [October 11, 2023, 11:08am UTC](https://forum.alpaca.markets/t/data-api-problem/12974/1 "2023-10-11T11:08:18Z")

</div>

HI, All…

I’ve been using the Data API for open/close/high/low data nightly for quite awhile. All of a sudden it’s not working. My app now gets a “400 Bad Request”. An example url that used to work, but doesn’t anymore is…

[https://data.alpaca.markets/v2/stocks/bars?start=2023-10-10T00:00:00Z&end=2023-10-10T23:59:59Z&timeframe=24Hour&symbols=GVP](https://data.alpaca.markets/v2/stocks/bars?start=2023-10-10T00:00:00Z&end=2023-10-10T23:59:59Z&timeframe=24Hour&symbols=GVP)

For what it’s worth, I’m using the free tier. Any thoughts? Thanks!

Curt

---

<div class="post-metadata">

**Author:** ![Dan\_Whitnable\_Alpaca](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/dan_whitnable_alpaca/32/1658_2.png) [@Dan\_Whitnable\_Alpaca](https://forum.alpaca.markets/u/Dan_Whitnable_Alpaca)\
**Post date:** [October 11, 2023, 1:03pm UTC](https://forum.alpaca.markets/t/data-api-problem/12974/2 "2023-10-11T13:03:36Z")

</div>

@CurtisDehaven The timeframe, if specifying `Hour` or `Hr`, should be an integer between 1-23. This is indicated in the [docs here](https://docs.alpaca.markets/reference/stockbars). If one wants a 24 hour bar it should be specified as `1Day`.

That should resolve the 400 error.

---

<div class="post-metadata">

**Author:** ![CurtisDehaven](https://avatars.discourse-cdn.com/v4/letter/c/96bed5/32.png) [@CurtisDehaven](https://forum.alpaca.markets/u/CurtisDehaven)\
**Post date:** [October 11, 2023, 2:58pm UTC](https://forum.alpaca.markets/t/data-api-problem/12974/3 "2023-10-11T14:58:02Z")

</div>

Hi, Dan…

Wow… That did it. Odd that it’s been working and then now, it doesn’t.

In any case, I’m good to go, now. I really appreciate your help. Thank you!

Curt
