GET https://api.roktojog.org/requests
This API retrieves blood requests received within the last 72 hours. Developers can use this data to build applications, analytics tools, or integrate with other systems.
The API currently does not accept any query parameters. It always returns the latest 72 hours of data.
The API returns a JSON array of objects. Each object represents a blood request with the following fields:
id
: Unique identifier of the blood request.name
: Name of the requester.bloodGroup
: Requested blood group (e.g., "A+").phoneNumber
: Contact number for the requester.details
: Additional details about the request.district
: District where the blood is required.hospital
: Hospital name where the blood is needed.postid
: Identifier for the related social media post.timestamp
: Date and time the request was created (ISO format).{ "id": 1, "name": "John Doe", "bloodGroup": "A+", "phoneNumber": "0123456789", "details": "Urgent blood needed for surgery", "district": "Dhaka", "hospital": "XYZ Hospital", "postid": "548940401240191", "timestamp": "2024-12-07T10:11:02Z" }
To retrieve the data, make a GET request to the API endpoint. Here's an example using
curl
:
curl -X GET "https://api.roktojog.org/requests" -H "Accept: application/json"
The RoktoJog server is built to facilitate blood donation management with the following architecture:
All system documentation is maintained in the project repository:
structure.md
: Explains the overall structure.api.md
: Detailed API documentation.