{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sayari-labs/json-schema/sayari-labs-record-get-record-response-schema.json",
  "title": "GetRecordResponse",
  "description": "OK",
  "x-generated": "2026-11-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sayari-labs-openapi.json#/components/schemas/record_GetRecordResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The unique identifier for a record in the database"
    },
    "label": {
      "type": "string"
    },
    "source": {
      "type": "string",
      "description": "The unique identifier for a source in the database"
    },
    "publication_date": {
      "type": "string",
      "description": "The date the record was published"
    },
    "acquisition_date": {
      "type": "string",
      "description": "The date Sayari acquired this record"
    },
    "references_count": {
      "type": "integer",
      "description": "Number of times this record is referenced"
    },
    "record_url": {
      "type": "string",
      "description": "The url to download the record from Sayari"
    },
    "source_url": {
      "type": "string",
      "description": "The url to access to original source"
    },
    "document_urls": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "matches": {
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "string"
        }
      }
    },
    "country": {
      "$ref": "#/$defs/generatedTypes_Country"
    },
    "page": {
      "type": "number",
      "format": "double"
    },
    "page_count": {
      "type": "number",
      "format": "double"
    },
    "references": {
      "$ref": "#/$defs/record_RecordReferences"
    }
  },
  "required": [
    "id",
    "label",
    "source",
    "acquisition_date",
    "references_count",
    "record_url",
    "references"
  ],
  "$defs": {
    "baseTypes_CountQualifier": {
      "type": "string",
      "enum": [
        "eq",
        "gte"
      ],
      "title": "CountQualifier"
    },
    "baseTypes_QualifiedCount": {
      "type": "object",
      "properties": {
        "count": {
          "type": "integer"
        },
        "qualifier": {
          "$ref": "#/$defs/baseTypes_CountQualifier"
        }
      },
      "required": [
        "count",
        "qualifier"
      ],
      "title": "QualifiedCount"
    },
    "generatedTypes_Country": {
      "type": "string",
      "enum": [
        "ABW",
        "AFG",
        "AGO",
        "AIA",
        "ALA",
        "ALB",
        "AND",
        "ARE",
        "ARG",
        "ARM",
        "ASM",
        "ATA",
        "ATF",
        "ATG",
        "AUS",
        "AUT",
        "AZE",
        "BDI",
        "BEL",
        "BEN",
        "BES",
        "BFA",
        "BGD",
        "BGR",
        "BHR",
        "BHS",
        "BIH",
        "BLM",
        "BLR",
        "BLZ",
        "BMU",
        "BOL",
        "BRA",
        "BRB",
        "BRN",
        "BTN",
        "BVT",
        "BWA",
        "CAF",
        "CAN",
        "CCK",
        "CHE",
        "CHL",
        "CHN",
        "CIV",
        "CMR",
        "COD",
        "COG",
        "COK",
        "COL",
        "COM",
        "CPV",
        "CRI",
        "CUB",
        "CUW",
        "CXR",
        "CYM",
        "CYP",
        "CZE",
        "DEU",
        "DJI",
        "DMA",
        "DNK",
        "DOM",
        "DZA",
        "ECU",
        "EGY",
        "ERI",
        "ESH",
        "ESP",
        "EST",
        "ETH",
        "FIN",
        "FJI",
        "FLK",
        "FRA",
        "FRO",
        "FSM",
        "GAB",
        "GBR",
        "GEO",
        "GGY",
        "GHA",
        "GIB",
        "GIN",
        "GLP",
        "GMB",
        "GNB",
        "GNQ",
        "GRC",
        "GRD",
        "GRL",
        "GTM",
        "GUF",
        "GUM",
        "GUY",
        "HKG",
        "HMD",
        "HND",
        "HRV",
        "HTI",
        "HUN",
        "IDN",
        "IMN",
        "IND",
        "IOT",
        "IRL",
        "IRN",
        "IRQ",
        "ISL",
        "ISR",
        "ITA",
        "JAM",
        "JEY",
        "JOR",
        "JPN",
        "KAZ",
        "KEN",
        "KGZ",
        "KHM",
        "KIR",
        "KNA",
        "KOR",
        "KWT",
        "LAO",
        "LBN",
        "LBR",
        "LBY",
        "LCA",
        "LIE",
        "LKA",
        "LSO",
        "LTU",
        "LUX",
        "LVA",
        "MAC",
        "MAF",
        "MAR",
        "MCO",
        "MDA",
        "MDG",
        "MDV",
        "MEX",
        "MHL",
        "MKD",
        "MLI",
        "MLT",
        "MMR",
        "MNE",
        "MNG",
        "MNP",
        "MOZ",
        "MRT",
        "MSR",
        "MTQ",
        "MUS",
        "MWI",
        "MYS",
        "MYT",
        "NAM",
        "NCL",
        "NER",
        "NFK",
        "NGA",
        "NIC",
        "NIU",
        "NLD",
        "NOR",
        "NPL",
        "NRU",
        "NZL",
        "OMN",
        "PAK",
        "PAN",
        "PCN",
        "PER",
        "PHL",
        "PLW",
        "PNG",
        "POL",
        "PRI",
        "PRK",
        "PRT",
        "PRY",
        "PSE",
        "PYF",
        "QAT",
        "REU",
        "RKS",
        "ROU",
        "RUS",
        "RWA",
        "SAU",
        "SDN",
        "SEN",
        "SGP",
        "SGS",
        "SHN",
        "SJM",
        "SLB",
        "SLE",
        "SLV",
        "SMR",
        "SOM",
        "SPM",
        "SRB",
        "SSD",
        "STP",
        "SUR",
        "SVK",
        "SVN",
        "SWE",
        "SWZ",
        "SXM",
        "SYC",
        "SYR",
        "TCA",
        "TCD",
        "TGO",
        "THA",
        "TJK",
        "TKL",
        "TKM",
        "TLS",
        "TON",
        "TTO",
        "TUN",
        "TUR",
        "TUV",
        "TWN",
        "TZA",
        "UGA",
        "UKR",
        "UMI",
        "UNK",
        "URY",
        "USA",
        "UZB",
        "VAT",
        "VCT",
        "VEN",
        "VGB",
        "VIR",
        "VNM",
        "VUT",
        "WLF",
        "WSM",
        "XXX",
        "YEM",
        "ZAF",
        "ZMB",
        "ZWE"
      ],
      "description": "Country enums are normalized representations of country names. [Source](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3#ECU)",
      "title": "Country"
    },
    "record_RecordReferences": {
      "type": "object",
      "properties": {
        "limit": {
          "type": "integer"
        },
        "size": {
          "$ref": "#/$defs/baseTypes_QualifiedCount"
        },
        "next": {
          "type": "boolean"
        },
        "offset": {
          "type": "integer"
        },
        "data": {
          "description": "Any type"
        }
      },
      "required": [
        "limit",
        "size",
        "next",
        "offset",
        "data"
      ],
      "title": "RecordReferences"
    }
  }
}