Skip to main content

Company Draw Date List

Lists a company's draw dates over the last 4 weeks.

MethodGET
Path/api/v1/drawList/{site}
Full URLhttps://backend.4dnum.com/api/v1/drawList/{site}

Request

AttributeTypeMandatoryExampleDescription
siteStringYesMAbbreviation company name. See Company Codes.

Response

Four keyed groups, each with a date and a day.

AttributeTypeExampleDescription
This Week.dateString2024-03-17Date the company had a result.
This Week.dayStringSunDay the company had a result.
Last 2 Week.dateString2024-03-10Date the company had a result.
Last 2 Week.dayStringSunDay the company had a result.
Last 3 Week.dateString2024-03-03Date the company had a result.
Last 3 Week.dayStringSunDay the company had a result.
Last 4 Week.dateString2024-02-25Date the company had a result.
Last 4 Week.dayStringSunDay 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]);