# Call api in jekyll

**URL:** <https://talk.jekyllrb.com/t/call-api-in-jekyll/990>\
**Category:** Help\
**Created:** [September 21, 2017, 12:04pm UTC](https://talk.jekyllrb.com/t/call-api-in-jekyll/990 "2017-09-21T12:04:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ram](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@Ram](https://talk.jekyllrb.com/u/Ram)\
**Post date:** [September 21, 2017, 12:04pm UTC](https://talk.jekyllrb.com/t/call-api-in-jekyll/990/1 "2017-09-21T12:04:27Z")

</div>

How can we call auth0 API in Jekyll

---

<div class="post-metadata">

**Author:** ![stevenleeg](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/stevenleeg/32/483_2.png) [@stevenleeg](https://talk.jekyllrb.com/u/stevenleeg)\
**Post date:** [September 22, 2017, 10:15am UTC](https://talk.jekyllrb.com/t/call-api-in-jekyll/990/2 "2017-09-22T10:15:08Z")

</div>

Jekyll is a static site generator, that is, it will only render plain html files. If you’re looking to build a website that calls an API you should be looking into _generating_ a single page application with jekyll (where the javascript will call the API) or using something like Rails or Sinatra.

Hope that helps!

---

<div class="post-metadata">

**Author:** ![ckruse](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/ckruse/32/16_2.png) [@ckruse](https://talk.jekyllrb.com/u/ckruse)\
**Post date:** [September 22, 2017, 12:35pm UTC](https://talk.jekyllrb.com/t/call-api-in-jekyll/990/3 "2017-09-22T12:35:02Z")

</div>

Depending on your requirements, Netlify has a permissions feature you might want to check out ([link](https://www.netlify.com/docs/visitor-access-control/#role-based-access-controls-with-jwt-tokens)), and a quick Google search tells us auth0 has [Webtask.io](http://Webtask.io) ([link](https://auth0.com/blog/building-serverless-apps-with-webtask/)) that appears to allow what you seek.

Give us an idea of your basic requirements and I’m sure the community here will have a few other ideas.

---

<div class="post-metadata">

**Author:** ![Frank](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/frank/32/26_2.png) [@Frank](https://talk.jekyllrb.com/u/Frank)\
**Post date:** [September 24, 2017, 1:19pm UTC](https://talk.jekyllrb.com/t/call-api-in-jekyll/990/4 "2017-09-24T13:19:15Z")

</div>

You might want to take a look at [https://github.com/benbalter/jekyll-auth](https://github.com/benbalter/jekyll-auth)
