# Get forecast output by id - 404 error

**URL:** <https://forum.api.combocurve.com/t/get-forecast-output-by-id-404-error/146>\
**Category:** Uncategorized\
**Created:** [July 20, 2022, 2:17pm UTC](https://forum.api.combocurve.com/t/get-forecast-output-by-id-404-error/146 "2022-07-20T14:17:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![eduardomar](https://avatars.discourse-cdn.com/v4/letter/e/b5a626/32.png) [@eduardomar](https://forum.api.combocurve.com/u/eduardomar)\
**Post date:** [July 20, 2022, 2:17pm UTC](https://forum.api.combocurve.com/t/get-forecast-output-by-id-404-error/146/1 "2022-07-20T14:17:08Z")

</div>

Hi,

I am having issues getting forecast output by id. Here are the inputs:

```auto
project_id = '62c84707e7867800124d5633'

```

forecast\_id:  
 ![image](https://canada1.discourse-cdn.com/flex035/uploads/the_combocurve_api/original/1X/3bae24a6bc2257cb5a9d0b43b5796e989823c87d.png)

well\_id:  
 ![image](https://canada1.discourse-cdn.com/flex035/uploads/the_combocurve_api/original/1X/5da1ca158030276931f03a021e13e08a3393d198.png)

`url = 'https://api.combocurve.com/v1/https://api.combocurve.com/v1/projects/62c84707e7867800124d5633/forecasts/62c85d485d7bc50014ab320c/outputs/624247d2c7d215e0fa05df3b?take=200'`

And I get a 404 error with this message:

```auto
'No forecast data was found with id `624247d2c7d215e0fa05df3b` in project `62c84707e7867800124d5633` and forecast `62c85d485d7bc50014ab320c`
```

---

<div class="post-metadata">

**Author:** ![Derek\_Lokey](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.api.combocurve.com/derek_lokey/32/94_2.png) [@Derek\_Lokey](https://forum.api.combocurve.com/u/Derek_Lokey)\
**Post date:** [July 20, 2022, 2:25pm UTC](https://forum.api.combocurve.com/t/get-forecast-output-by-id-404-error/146/2 "2022-07-20T14:25:11Z")

</div>

Looks to me like the format of the call should be a little different. Can you try it like this…

[https://api.combocurve.com/v1/projects/62c84707e7867800124d5633/forecasts/62c85d485d7bc50014ab320c/outputs?well=624247d2c7d215e0fa05df3b&take=200](https://api.combocurve.com/v1/projects/62c84707e7867800124d5633/forecasts/62c85d485d7bc50014ab320c/outputs?well=624247d2c7d215e0fa05df3b&take=200)

---

<div class="post-metadata">

**Author:** ![eduardomar](https://avatars.discourse-cdn.com/v4/letter/e/b5a626/32.png) [@eduardomar](https://forum.api.combocurve.com/u/eduardomar)\
**Post date:** [July 20, 2022, 2:40pm UTC](https://forum.api.combocurve.com/t/get-forecast-output-by-id-404-error/146/3 "2022-07-20T14:40:06Z")

</div>

I was going by the documentation:  
 ![image](https://canada1.discourse-cdn.com/flex035/uploads/the_combocurve_api/original/1X/e4fc0f99f184b8e91eb8b4d68444512240991df0.png)

I tried your suggestion and got TypeError:  
`'`624247d2c7d215e0fa05df3b?take=200` is not a valid ObjectId'`

---

<div class="post-metadata">

**Author:** ![Derek\_Lokey](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.api.combocurve.com/derek_lokey/32/94_2.png) [@Derek\_Lokey](https://forum.api.combocurve.com/u/Derek_Lokey)\
**Post date:** [July 20, 2022, 2:45pm UTC](https://forum.api.combocurve.com/t/get-forecast-output-by-id-404-error/146/4 "2022-07-20T14:45:39Z")

</div>

OK, I was looking at the other endpoint documentation. I’ll ask some of the more knowledgable guys.

---

<div class="post-metadata">

**Author:** ![HGantz](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.api.combocurve.com/hgantz/32/95_2.png) [@HGantz](https://forum.api.combocurve.com/u/HGantz)\
**Post date:** [July 20, 2022, 2:57pm UTC](https://forum.api.combocurve.com/t/get-forecast-output-by-id-404-error/146/5 "2022-07-20T14:57:58Z")

</div>

Hey Eduardo,  
I just wanted to ensure that the parameters you are sending are correct  
projectId = your projectId (this is probably correct)  
forecastId = your forecastId ( this is also probably correct)  
id = this is the Id for the forecast data not the wellId.  
You can find that id if you go to [https://api.combocurve.com/v1/projects/:projectId/forecasts/:forecastId/outputs](https://api.combocurve.com/v1/projects/:projectId/forecasts/:forecastId/outputs) there you will see “id” in the response with the forecast data Id.

---

<div class="post-metadata">

**Author:** ![eduardomar](https://avatars.discourse-cdn.com/v4/letter/e/b5a626/32.png) [@eduardomar](https://forum.api.combocurve.com/u/eduardomar)\
**Post date:** [July 20, 2022, 3:19pm UTC](https://forum.api.combocurve.com/t/get-forecast-output-by-id-404-error/146/6 "2022-07-20T15:19:44Z")

</div>

That is my issue thanks! Can I then query to a specific well using this at the end `?well="well_id"`

---

<div class="post-metadata">

**Author:** ![HGantz](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.api.combocurve.com/hgantz/32/95_2.png) [@HGantz](https://forum.api.combocurve.com/u/HGantz)\
**Post date:** [July 20, 2022, 4:36pm UTC](https://forum.api.combocurve.com/t/get-forecast-output-by-id-404-error/146/7 "2022-07-20T16:36:54Z")

</div>

> [@eduardomar](#):
>
> Can I then query to a specific well using this at the end `?well="well_id"`

You can use the same endpoint `https://api.combocurve.com/v1/projects/:projectId/forecasts/:forecastId/outputs ` That has all of the forecast data outputs for the specific forecast within your project. There you can provide the query parameter for the well you are interested in by adding `&well=624247d2c7d215e0fa05df3b` at the end be sure to use `&` for query params not `?`.

The `get forecast output by id` does not have a wellId query parameter.
