This repository provides an API to fetch fundraisers from GoFundMe using Apify. The API is built using Django Ninja and allows users to search for fundraisers based on a query and limit the number of results.
- Fetch GoFundMe fundraisers based on a query.
- Limit the number of results returned.
- Python 3.7+
- Django
- Django Ninja
- Apify Client
-
Clone the repository
-
Create a virtual environment and activate it
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the dependencies
-
Set up your environment variables
In api.py, add you Apify (free) API token.
-
Run the server
python manage.py runserver
Once the server is running, you can access the API docs at: http://127.0.0.1:8000/api/docs and/or https://127.0.0.1:8000//api/funds?query=%3Cyour_query%3E&limit=%3Cyour_limit%3E
This was a quick sidequest for me. I needed such API for a project but could not find one. When I got to know how to build one, thought might make it public for anyone who wants it in the future.
Thank you for stopping by.