Company Draw Date List
Lists a company's draw dates over the last 4 weeks.
| Method | GET |
| Path | /api/v1/drawList/{site} |
| Full URL | https://backend.4dnum.com/api/v1/drawList/{site} |
Request
| Attribute | Type | Mandatory | Example | Description |
|---|---|---|---|---|
site | String | Yes | M | Abbreviation company name. See Company Codes. |
Response
Four keyed groups, each with a date and a day.
| Attribute | Type | Example | Description |
|---|---|---|---|
This Week.date | String | 2024-03-17 | Date the company had a result. |
This Week.day | String | Sun | Day the company had a result. |
Last 2 Week.date | String | 2024-03-10 | Date the company had a result. |
Last 2 Week.day | String | Sun | Day the company had a result. |
Last 3 Week.date | String | 2024-03-03 | Date the company had a result. |
Last 3 Week.day | String | Sun | Day the company had a result. |
Last 4 Week.date | String | 2024-02-25 | Date the company had a result. |
Last 4 Week.day | String | Sun | Day the company had a result. |
Keys contain spaces
The response keys are literally "This Week", "Last 2 Week", "Last 3 Week"
and "Last 4 Week" — with spaces. Access them with bracket notation, not dot
notation.
Example
curl https://backend.4dnum.com/api/v1/drawList/M
{
"This Week": { "date": "2024-03-17", "day": "Sun" },
"Last 2 Week": { "date": "2024-03-10", "day": "Sun" },
"Last 3 Week": { "date": "2024-03-03", "day": "Sun" },
"Last 4 Week": { "date": "2024-02-25", "day": "Sun" }
}
const draws = await get('/drawList/M');
const WEEK_KEYS = ['This Week', 'Last 2 Week', 'Last 3 Week', 'Last 4 Week'];
const timeline = WEEK_KEYS.map(k => draws[k]);