<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/i-built-a-free-api-to-help-people-fight-addictions-and-you-can-use-it-right-now-nnvidkrzx" -->

---
title: I Built a Free API to Help People Fight Addictions — And...
description: Discussion about "I Built a Free API to Help People Fight Addictions — And You Can Use It Right Now" on daily.dev - join the developer community
canonical: https://daily.dev/posts/i-built-a-free-api-to-help-people-fight-addictions-and-you-can-use-it-right-now-nnvidkrzx
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: I Built a Free API to Help People Fight Addictions — And You Can Use It Right Now | daily.dev
og:description: Discussion about "I Built a Free API to Help People Fight Addictions — And You Can Use It Right Now" on daily.dev - join the developer community
og:url: https://daily.dev/posts/i-built-a-free-api-to-help-people-fight-addictions-and-you-can-use-it-right-now-nnvidkrzx
og:image: https://api.daily.dev/og/posts/nNvIDkRzX.png
og:image:alt: I Built a Free API to Help People Fight Addictions — And You Can Use It Right Now
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# I Built a Free API to Help People Fight Addictions — And You Can Use It Right Now

**[Mobile developers](https://daily.dev/sources/mobile)** · [@idrisvohra](https://daily.dev/idrisvohra) · 3 upvotes · 1 comments

## Content

# I Built a Free API to Help People Fight Addictions — And You Can Use It Right Now

We don't talk about it enough — but a lot of us are fighting something.

Maybe it's doomscrolling at 2 AM. Maybe it's a habit you've been trying to break for years. Maybe it's something you haven't told anyone about. Addiction doesn't always look dramatic. Sometimes it's quiet, everyday, and exhausting.

I wanted to build something that helps — even if it's small. So I created **Fight Addictions API**, a completely free REST API that serves curated motivational and spiritual quotes designed to support people on their recovery journey.

No sign-up. No API key. No paywall. Just words that might help someone get through the day.

## What It Does

The API serves **527+ handpicked quotes** across 7 categories:

| Endpoint | What It Tackles | Quotes |

|----------|----------------|--------|

| `/lust/quotes` | Porn, lust, sex addiction | 31 |

| `/drugs/quotes` | Drugs, alcohol, substance abuse | 31 |

| `/gambling/quotes` | Gambling addiction | 31 |

| `/screen/quotes` | Phone, gaming, social media addiction | 31 |

| `/food/quotes` | Binge eating, food addiction | 31 |

| `/motivational/quotes` | General motivation & self-improvement | 62 |

| `/spiritual/quotes` | Spiritual guidance from 9 world religions | 279 |

The spiritual endpoint alone covers **Islam, Christianity, Hinduism, Buddhism, Judaism, Sikhism, Jainism, Sufism, and Atheism** — 31 quotes each. Enough for a unique quote every single day of the month.

## How Simple Is It?

This simple:

```
const res = await fetch(
  "https://fight-addictions-api.deno.dev/spiritual/quotes/islam?type=daily"
);
const quote = await res.json();
console.log(quote.quote);
// "Allah does not burden a soul beyond that it can bear."
```

That's it. One `fetch` call. You get back a clean JSON object:

```
{
  "id": 2,
  "quote": "Allah does not burden a soul beyond that it can bear.",
  "religion": "Islam",
  "source": "Quran 2:286"
}
```

Use `?type=daily` for a quote that changes once a day. Use `?type=random` for a new one every time. Omit the parameter to get the full array.

Works with any language, any framework, any platform. If it can make an HTTP request, it can use this API.

## Why I Built This

It started because I needed it for one of my upcoming Flutter projects — an app focused on helping people build better habits and break free from the ones holding them back. I needed a quotes API for it, and when I couldn't find one that fit, I decided to build my own.

The original idea was simple: curated quotes for fighting common addictions — lust, drugs, gambling, screen time, food. Real, hard-hitting words that don't sugarcoat the struggle.

But as I kept working on it, I realized something was missing. For a lot of people, recovery isn't just about willpower — it's deeply connected to faith and spirituality. So I thought, why not add that too? That's how the spiritual quotes endpoint was born. 9 religions, 31 quotes each — one for every day of the month. It felt like a natural extension of the same mission.

I believe that sometimes, the right words at the right time can change someone's entire day. A notification with a powerful quote when you're about to relapse. A daily reminder that says "you're stronger than this." A moment of spiritual reflection when you need it most.

Technology should serve people — not just businesses. So I made it free. Forever.

## The Tech Behind It

The API is built with **Deno** and deployed on **Deno Deploy** — which means it's fast, serverless, and runs on the edge. The quotes live as static JSON files, so there's no database, no cold starts, and no downtime to worry about.

The codebase is intentionally simple. If you can read a JSON file and write an `if` statement, you can understand the entire source code.

## How You Can Use It

Here are some ideas:

- **Recovery apps** — Show a daily quote as a push notification
- **Browser extensions** — Replace the new tab page with an uplifting quote
- **Discord/Telegram bots** — Send daily motivation to community channels
- **Personal dashboards** — Add a spiritual quote widget
- **Journaling apps** — Use a daily quote as a writing prompt
- **Widgets** — Build a home screen widget that reminds users of their strength

Or build something I haven't thought of. That's the beauty of an open API.

## Want to Contribute?

The project is open source and contributions are welcome. The simplest way to contribute? **Add more quotes.**

1. Fork the repo
2. Create a branch: `updates/islam-quotes-10` or `fix/daily-quote-bug`
3. Add your quotes to the JSON files in the `data/` folder
4. Submit a PR

Every quote you add could be the one that helps someone through their hardest day.

**GitHub**: [github.com/Idrisvohra9/fight-addictions-api](https://github.com/Idrisvohra9/fight-addictions-api)

**Live API**: [fight-addictions-api.deno.dev](https://fight-addictions-api.deno.dev/)

If you're building something that helps people — I'd love to hear about it. Drop a comment or reach out. And if you're someone who's fighting your own battle right now — I see you. You're not alone. And you're stronger than you think. 💪

## Community discussion

Top comments from developers on daily.dev.

**@mark\_kazakov** · 0 upvotes

> Nice project with a noble cause!

---

[View this post on daily.dev](https://daily.dev/posts/i-built-a-free-api-to-help-people-fight-addictions-and-you-can-use-it-right-now-nnvidkrzx)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/i-built-a-free-api-to-help-people-fight-addictions-and-you-can-use-it-right-now-nnvidkrzx","headline":"I Built a Free API to Help People Fight Addictions — And You Can Use It Right Now","text":"Discussion about \"I Built a Free API to Help People Fight Addictions — And You Can Use It Right Now\" on daily.dev - join the developer community","url":"https://daily.dev/posts/i-built-a-free-api-to-help-people-fight-addictions-and-you-can-use-it-right-now-nnvidkrzx","datePublished":"2026-03-20T18:17:03.839Z","dateModified":"2026-03-20T18:17:03.839Z","author":{"@type":"Person","name":"Idris Vohra","url":"https://daily.dev/idrisvohra","image":"https://lh3.googleusercontent.com/a/ACg8ocK66znfLhcgWYx4Ejj5K4LS0HSrfWuurb5iaM12dczLH27Aoruf=s96-c","description":"Creative Software Developer","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":330}},"image":"https://media.daily.dev/image/upload/s--C91kjkCc--/f_auto/v1772185076/posts/yplyQepbq?_a=BAMAMiiu0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"comment":[{"@type":"Comment","text":"Nice project with a noble cause!","datePublished":"2026-06-09T07:07:08.168Z","url":"https://daily.dev/posts/nNvIDkRzX#c-D9aJCgEP2","author":{"@type":"Person","name":"Mark Kazakov","url":"https://daily.dev/mark_kazakov","image":"https://media.daily.dev/image/upload/s--xbUWQzIM--/f_auto/v1743106084/avatars/avatar_DXWhIjQxKsp3WABroh08k"}}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/squads/mobile","name":"Mobile developers"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Mobile developers","item":"https://daily.dev/squads/mobile"},{"@type":"ListItem","position":3,"name":"I Built a Free API to Help People Fight Addictions — And You Can Use It Right Now"}]}
```

