Skip to content

procurement.canada · v1 · government-procurement

Canadian federal tenders

Available

Open Canadian federal tender notices from the official CanadaBuys open-data file, by text, buying organization and/or UNSPSC prefix, newest first, with the official notice link and licence.

Input schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "minLength": 2,
      "maxLength": 120,
      "pattern": "^[\\p{L}\\p{N} .,&'()/+-]+$"
    },
    "buyer": {
      "type": "string",
      "minLength": 2,
      "maxLength": 120,
      "pattern": "^[\\p{L}\\p{N} .,&'()/+-]+$"
    },
    "unspsc": {
      "type": "string",
      "pattern": "^\\d{2,8}$"
    },
    "publishedSince": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "limit": {
      "default": 10,
      "type": "integer",
      "minimum": 1,
      "maximum": 25
    }
  },
  "additionalProperties": false
}
Output schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "const": "CANADA_OPEN_TENDERS"
    },
    "request": {
      "type": "object",
      "properties": {
        "query": {
          "type": "string",
          "minLength": 2,
          "maxLength": 120,
          "pattern": "^[\\p{L}\\p{N} .,&'()/+-]+$"
        },
        "buyer": {
          "type": "string",
          "minLength": 2,
          "maxLength": 120,
          "pattern": "^[\\p{L}\\p{N} .,&'()/+-]+$"
        },
        "unspsc": {
          "type": "string",
          "pattern": "^\\d{2,8}$"
        },
        "publishedSince": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "limit": {
          "default": 10,
          "type": "integer",
          "minimum": 1,
          "maximum": 25
        }
      },
      "required": [
        "limit"
      ],
      "additionalProperties": false
    },
    "notices": {
      "minItems": 1,
      "maxItems": 25,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "referenceNumber": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "title": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 300
              },
              {
                "type": "null"
              }
            ]
          },
          "buyer": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          },
          "publicationDate": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "closingDate": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}(?:[T ][0-9:.+-]+Z?)?$"
              },
              {
                "type": "null"
              }
            ]
          },
          "url": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 400,
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "referenceNumber",
          "title",
          "buyer",
          "publicationDate",
          "closingDate",
          "url"
        ],
        "additionalProperties": false
      }
    },
    "totalMatches": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "source": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "format": "uri"
        },
        "retrievedAt": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        },
        "responseSha256": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        },
        "attribution": {
          "type": "string"
        },
        "licenceUrl": {
          "type": "string",
          "format": "uri"
        }
      },
      "required": [
        "url",
        "retrievedAt",
        "responseSha256",
        "attribution",
        "licenceUrl"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "kind",
    "request",
    "notices",
    "totalMatches",
    "source"
  ],
  "additionalProperties": false
}