# HTTP API, unable to make a call

**URL:** <https://forum.flow.com/t/http-api-unable-to-make-a-call/4256>\
**Category:** Uncategorized\
**Created:** [February 3, 2023, 1:40pm UTC](https://forum.flow.com/t/http-api-unable-to-make-a-call/4256 "2023-02-03T13:40:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![alextoporov](https://avatars.discourse-cdn.com/v4/letter/a/e8c25b/32.png) [@alextoporov](https://forum.flow.com/u/alextoporov)\
**Post date:** [February 3, 2023, 1:40pm UTC](https://forum.flow.com/t/http-api-unable-to-make-a-call/4256/1 "2023-02-03T13:40:17Z")

</div>

Hi, everybody!  
I need some help, guys. Just try to understand how to use access api

> **[Access API | Flow Developer Portal](https://developers.flow.com/http-api)**
>
> Open API Reference Docs for the API

I can’t realize how should I properly make call on blocks - [https://rest-mainnet.onflow.org/v1/blocks](https://rest-mainnet.onflow.org/v1/blocks).  
How should I pass parameters like start\_height and end\_height? Or parameter of array of heights?  
Thanks for any help 🙂

---

<div class="post-metadata">

**Author:** ![bluesign](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/bluesign/32/1359_2.png) [@bluesign](https://forum.flow.com/u/bluesign)\
**Post date:** [February 3, 2023, 5:58pm UTC](https://forum.flow.com/t/http-api-unable-to-make-a-call/4256/2 "2023-02-03T17:58:11Z")

</div>

put as query parameters there, [https://rest-mainnet.onflow.org/v1/blocks?height=sealed](https://rest-mainnet.onflow.org/v1/blocks?height=sealed) for example.

basically if request type is GET, query parameters, if POST, request body.

---

<div class="post-metadata">

**Author:** ![alextoporov](https://avatars.discourse-cdn.com/v4/letter/a/e8c25b/32.png) [@alextoporov](https://forum.flow.com/u/alextoporov)\
**Post date:** [February 6, 2023, 10:49am UTC](https://forum.flow.com/t/http-api-unable-to-make-a-call/4256/3 "2023-02-06T10:49:29Z")

</div>

Thank you for your answer. But what about heights in range or height in array? I just can’t get any information trying to make call like this  
[https://rest-mainnet.onflow.org/v1/blocks?start\_height=10?end\_height=15](https://rest-mainnet.onflow.org/v1/blocks?start_height=10?end_height=15)

---

<div class="post-metadata">

**Author:** ![bluesign](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/bluesign/32/1359_2.png) [@bluesign](https://forum.flow.com/u/bluesign)\
**Post date:** [February 6, 2023, 12:49pm UTC](https://forum.flow.com/t/http-api-unable-to-make-a-call/4256/4 "2023-02-06T12:49:40Z")

</div>

let me give you an example:

[https://rest-mainnet.onflow.org/v1/blocks?start\_height=46152377&end\_height=46152380](https://rest-mainnet.onflow.org/v1/blocks?start_height=46152377&end_height=46152380)

query string parameters can be combined with &

PS: if you join discord, you can get faster answers

---

<div class="post-metadata">

**Author:** ![alextoporov](https://avatars.discourse-cdn.com/v4/letter/a/e8c25b/32.png) [@alextoporov](https://forum.flow.com/u/alextoporov)\
**Post date:** [February 6, 2023, 4:11pm UTC](https://forum.flow.com/t/http-api-unable-to-make-a-call/4256/5 "2023-02-06T16:11:10Z")

</div>

Yeah, it’s working. Thank you so much! Will ask through Discord on further questions

---

<div class="post-metadata">

**Author:** ![bluesign](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/bluesign/32/1359_2.png) [@bluesign](https://forum.flow.com/u/bluesign)\
**Post date:** [February 6, 2023, 6:18pm UTC](https://forum.flow.com/t/http-api-unable-to-make-a-call/4256/6 "2023-02-06T18:18:59Z")

</div>

yeah I am bluesign there too, don’t hesitate to ask, glad to help
