# Fetch data by making a GET request to a server

**URL:** <https://forum.beeminder.com/t/fetch-data-by-making-a-get-request-to-a-server/10432>\
**Category:** Tech\
**Created:** [July 9, 2022, 2:57pm UTC](https://forum.beeminder.com/t/fetch-data-by-making-a-get-request-to-a-server/10432 "2022-07-09T14:57:35Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhishma](https://avatars.discourse-cdn.com/v4/letter/b/8491ac/32.png) [@bhishma](https://forum.beeminder.com/u/bhishma)\
**Post date:** [July 9, 2022, 2:57pm UTC](https://forum.beeminder.com/t/fetch-data-by-making-a-get-request-to-a-server/10432/1 "2022-07-09T14:57:35Z")

</div>

I have a few goals where I update by making a POST request to beeminder. I have setup a cron job to trigger it at certain intervals. But ideally I would want to expose a simple authenticated server which can be accessed by beeminder and will be updated on demand as well. This is the way most of the official integrations work. Is something like this possible?

In the data section of the goal settings, I can see the API option

 ![image](https://us1.discourse-cdn.com/flex019/uploads/beeminder/original/2X/4/489e7d9ec8e561bf6c93a0a09ec8f9881c8c7f50.png)

But it doesn’t have any means to provide a URL to which it can make a GET request to fetch data.

---

<div class="post-metadata">

**Author:** ![narthur](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/narthur/32/5113_2.png) [@narthur](https://forum.beeminder.com/u/narthur)\
**Post date:** [July 9, 2022, 3:54pm UTC](https://forum.beeminder.com/t/fetch-data-by-making-a-get-request-to-a-server/10432/2 "2022-07-09T15:54:50Z")

</div>

This is on my wishlist, too.

---

<div class="post-metadata">

**Author:** ![zzq](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/zzq/32/6471_2.png) [@zzq](https://forum.beeminder.com/u/zzq)\
**Post date:** [July 9, 2022, 3:57pm UTC](https://forum.beeminder.com/t/fetch-data-by-making-a-get-request-to-a-server/10432/3 "2022-07-09T15:57:31Z")

</div>

A discussion from a few years back on this topic which you might find interesting:

> [@Feature request: autodata from an API](https://forum.beeminder.com/t/feature-request-autodata-from-an-api/5761):
>
> There is an IFTTT autodata integration, which I could probably use to get the equivalent of what I’m asking for. But there is no intrinsic reason this should have to go through IFTTT. I have a personal webserver, on which I can expose an API endpoint which returns a number. I’d like a way to have Beeminder set up to use that as an autodata source, much like, say, the IFTTT autodata source. For now, I’m using the Beeminder API to send data to Beeminder, in a cron job. But there some goals where…

---

<div class="post-metadata">

**Author:** ![adamwolf](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/adamwolf/32/484_2.png) [@adamwolf](https://forum.beeminder.com/u/adamwolf)\
**Post date:** [July 9, 2022, 4:05pm UTC](https://forum.beeminder.com/t/fetch-data-by-making-a-get-request-to-a-server/10432/4 "2022-07-09T16:05:24Z")

</div>

You can do this by making an Oauthy application thing, right?

---

<div class="post-metadata">

**Author:** ![ianminds](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/ianminds/32/4188_2.png) [@ianminds](https://forum.beeminder.com/u/ianminds)\
**Post date:** [July 10, 2022, 4:12pm UTC](https://forum.beeminder.com/t/fetch-data-by-making-a-get-request-to-a-server/10432/5 "2022-07-10T16:12:10Z")

</div>

I’m planning to do something similar. I believe the relevant part of the docs is at [Beeminder API Reference](https://api.beeminder.com/#client-oauth), section “6. Optional: Autofetch callback”.

---

<div class="post-metadata">

**Author:** ![adamwolf](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/adamwolf/32/484_2.png) [@adamwolf](https://forum.beeminder.com/u/adamwolf)\
**Post date:** [July 10, 2022, 5:41pm UTC](https://forum.beeminder.com/t/fetch-data-by-making-a-get-request-to-a-server/10432/6 "2022-07-10T17:41:29Z")

</div>

That’s right! I wonder if that works without folks registering an application, just using the API. I made probably 5-10 integrations that do the autofetch, but I just registered a new application for each one.

---

<div class="post-metadata">

**Author:** ![bhishma](https://avatars.discourse-cdn.com/v4/letter/b/8491ac/32.png) [@bhishma](https://forum.beeminder.com/u/bhishma)\
**Post date:** [July 11, 2022, 11:12am UTC](https://forum.beeminder.com/t/fetch-data-by-making-a-get-request-to-a-server/10432/7 "2022-07-11T11:12:38Z")

</div>

How can I create a IFTTT autodata integration. In that case, IFTTT will be making requests to my server?

---

<div class="post-metadata">

**Author:** ![bhishma](https://avatars.discourse-cdn.com/v4/letter/b/8491ac/32.png) [@bhishma](https://forum.beeminder.com/u/bhishma)\
**Post date:** [July 11, 2022, 11:13am UTC](https://forum.beeminder.com/t/fetch-data-by-making-a-get-request-to-a-server/10432/8 "2022-07-11T11:13:46Z")

</div>

Can you share a small example setup
