# Unable to execute API requests with multiple users in Gatling script

**URL:** <https://community.gatling.io/t/unable-to-execute-api-requests-with-multiple-users-in-gatling-script/3925>\
**Category:** Gatling (Open-Source)\
**Created:** [September 8, 2017, 12:18pm UTC](https://community.gatling.io/t/unable-to-execute-api-requests-with-multiple-users-in-gatling-script/3925 "2017-09-08T12:18:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@Peter](https://community.gatling.io/u/Peter)\
**Post date:** [September 8, 2017, 12:18pm UTC](https://community.gatling.io/t/unable-to-execute-api-requests-with-multiple-users-in-gatling-script/3925/1 "2017-09-08T12:18:18Z")

</div>

I have to check performance of REST Api requests for different number of ‘offset’ values. offset values changes on every call. LIke,

```auto
http://www.somurl/api/xyz;limit=20;offset=0 
http://www.somurl/api/xyz;limit=20;offset=20
http://www.somurl/api/xyz;limit=20;offset=40
http://www.somurl/api/xyz;limit=20;offset=60
http://www.somurl/api/xyz;limit=20;offset=80
http://www.somurl/api/xyz;limit=20;offset=100

```

Below script **_works fine with single user_** , while executing with multiple users it sends number of requests to 1st call while other calls executes with single request.

There was a problem in sending requests as my logic was wrong I think so. could you please take a look into it? I want every requests should be ‘3’ instead of ‘1’.

**Output** : While executing with 3 users output was:

```auto
---- Requests ------------------------------------------------------------------
```

---

<div class="post-metadata">

**Author:** ![Peter](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@Peter](https://community.gatling.io/u/Peter)\
**Post date:** [September 11, 2017, 10:45am UTC](https://community.gatling.io/t/unable-to-execute-api-requests-with-multiple-users-in-gatling-script/3925/2 "2017-09-11T10:45:13Z")

</div>

**Why only 1st API call executes multiple times (number of users) why other calls executes only once? Any idea???**
