# How can I run API from share collection using public url?

**URL:** <https://community.postman.com/t/how-can-i-run-api-from-share-collection-using-public-url/19347>\
**Category:** Help Hub\
**Tags:** newman-project, shared-code\
**Created:** [January 20, 2021, 2:57pm UTC](https://community.postman.com/t/how-can-i-run-api-from-share-collection-using-public-url/19347 "2021-01-20T14:57:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![CV-JigneshP](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@CV-JigneshP](https://community.postman.com/u/CV-JigneshP)\
**Post date:** [January 20, 2021, 2:57pm UTC](https://community.postman.com/t/how-can-i-run-api-from-share-collection-using-public-url/19347/1 "2021-01-20T14:57:12Z")

</div>

I have created collection with multiple api. Share that collection with Public URL.

Now I am running that collection using shared url then only first api running each time.

can anyone give example based on it

---

<div class="post-metadata">

**Author:** ![CV-JigneshP](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@CV-JigneshP](https://community.postman.com/u/CV-JigneshP)\
**Post date:** [January 20, 2021, 2:57pm UTC](https://community.postman.com/t/how-can-i-run-api-from-share-collection-using-public-url/19347/2 "2021-01-20T14:57:53Z")

</div>

![postmanlink](https://us1.discourse-cdn.com/getpostman/original/3X/0/e/0e69fe37f683925ce8eada1f2d66ff87102147de.png)

here is collection

---

<div class="post-metadata">

**Author:** ![taehoshino](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/taehoshino/32/6608_2.png) [@taehoshino](https://community.postman.com/u/taehoshino)\
**Post date:** [January 21, 2021, 1:52am UTC](https://community.postman.com/t/how-can-i-run-api-from-share-collection-using-public-url/19347/3 "2021-01-21T01:52:28Z")

</div>

Hi @CV-JigneshP! Welcome back to the community 🥰

As I understand it, you are running the collection containing 3 requests using newman and only 1 request is being executed, is that correct?

If you run the collection using collection runner on Postman app (instead of newman), do you see the same issue?

Also can you share the public URL that you are passing newman?

I am looking forward to hearing back from you! 🙂

---

<div class="post-metadata">

**Author:** ![CV-JigneshP](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@CV-JigneshP](https://community.postman.com/u/CV-JigneshP)\
**Post date:** [February 1, 2021, 2:09pm UTC](https://community.postman.com/t/how-can-i-run-api-from-share-collection-using-public-url/19347/4 "2021-02-01T14:09:00Z")

</div>

yes correct when i run this from newman then also i am seeing same thing.  
but i figure out the way to run multiple request.

const csv = require(‘csv-parser’);  
const fs = require(‘fs’);

fs.createReadStream(‘data.csv’)  
.pipe(csv())  
.on(‘data’, (row) =\> {  
console.log(row);  
})  
.on(‘end’, () =\> {  
console.log(‘CSV file successfully processed’);  
});

this is new question for me.

postman show Error: Cannot find module ‘csv-parser’ eventhough i have install using npm

i got reference from below url:

> **[Reading and Writing CSV Files with Node.js](https://stackabuse.com/reading-and-writing-csv-files-with-node-js/)**
>
> Introduction
> The term CSV \[https://en.wikipedia.org/wiki/Comma-separated\_values\] is an
> abbreviation that stands for comma-separated values.
> 
> A CSV file is a plain text file that contains data formatted according to the
> CSV standard. It has distinct...

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [February 1, 2021, 2:27pm UTC](https://community.postman.com/t/how-can-i-run-api-from-share-collection-using-public-url/19347/5 "2021-02-01T14:27:42Z")

</div>

Is the Public Link getting updated each time you save the Collection?

That link is just a _snapshot in time_ and if changes are made to the Collection, you need to _manually_ update the link, as these changes are not automatically reflected.

That’s more than likely the reason why it looks fine in the app and runner but not showing the correct information when running with Newman.
