# API v2 version issue - simple data query

**URL:** <https://forum.alpaca.markets/t/api-v2-version-issue-simple-data-query/1131>\
**Category:** Alpaca Integration Applications\
**Created:** [April 7, 2020, 11:18pm UTC](https://forum.alpaca.markets/t/api-v2-version-issue-simple-data-query/1131 "2020-04-07T23:18:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexander\_Zograf](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/alexander_zograf/32/608_2.png) [@Alexander\_Zograf](https://forum.alpaca.markets/u/Alexander_Zograf)\
**Post date:** [April 7, 2020, 11:18pm UTC](https://forum.alpaca.markets/t/api-v2-version-issue-simple-data-query/1131/1 "2020-04-07T23:18:25Z")

</div>

Hi there!

I am struggling o simply upload the data using Alpaca PAI. I used to load it utilizing the following API REST

```
       " data = api.polygon.historic_agg(symbol, 1, 'minute', limit=None).df "

```

But now with API update, I am getting 404 Error message,  
“404 Client Error: Not Found for url: …”

I do not see any straight forward way how to do it now, no matter what I tried with v2 version does no work.

Any help is highly appreciated!

---

<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:** [April 9, 2020, 7:33pm UTC](https://forum.alpaca.markets/t/api-v2-version-issue-simple-data-query/1131/2 "2020-04-09T19:33:51Z")

</div>

Thanks for the question. It’s been confusing and we will resolve it in SDK soon, but Polygon’s v1 historic agg has been deprecated. Please use v2 (historic\_agg\_v2)
