Skip to main content

Scraped

A Scraped object represents the result of a processed vehicle. The contents of this object can vary depending on the resource type on which the vehicle has been processed. For example, if the vehicle has been processed under a specific resource type, such as fines, the "Result" property within the scraped object will specifically contain information related to that resource type, such as the tickets object.

Methods

The API supports the following methods for Scraped objects:

HTTP requestDescription
GET processed vehicleReturns processing results for a vehicle from all Sync resources.
GET processed vehicle by a specific state and resource type.Returns the processing results for a vehicle based on a specified state and resource type.
GET processed vehicle for all resource types.Returns the processing results for a vehicle for each Sync resource type.
GET processed vehicle by a specific resource type.Returns the processing results for a vehicle based on a specified resource type.
GET processed vehicle batch.Returns processing results for a vehicle from all Sync resources in which the vehicle has been processed.

Object representation

Scraped

{
"creationDateTime": Date,
"finishedDateTime"?: Date,
"traceId"?: string,
"vehicleInfo"?: VehicleInfo,
"status"?: Status,
"plate": string,
"vin": string,
"stateId": number,
"resourceId": number,
"username"?: string,
"password"?: string,
"callBack"?: string,
"callBackMessage"?: string,
"result"?: Result[],
"evidenceURL"?: string[],
"extraInfo"?: Record<string, unknown>,
"parentCriteriaId"?: string,
"parentBatchId"?: string
}
PropertiesTypeDescription
stateIdnumberState identifier.
creationDateTimeDateDate and time the vehicle was submitted for processing.
evidenceURLstring[]?Contains the URLs of the images depicting the process followed to process the vehicle.
extraInfoRecord<string, any>Contains additional information.
finishedDateTimeDate?Time and date when the vehicle processing was completed.
passwordstring?The encoded password used for processing in some resources that needs an account in the website.
platestringVehicle plate.
resourceIdnumberThe resource identifier where the vehicle was sent for processing.
resultResult[]?Collection of results. It contains information about the fines, owner taxes, etc.
traceIdstring?It is an identifier for errors. If this object appears, it indicates that the vehicle could not be processed.
usernamestring?The encoded username used for processing in some resources that needs an account in the website.
vehicleInfoVehicleInfo?Vehicle information.
vinstringVehicle VIN.
callBackstring?It is the URL of an endpoint. When the processing of a vehicle is completed, a request is made to that endpoint, and the obtained information is sent in the request body.
callBackMessagestring?It is an identifier that serves to group multiple vehicles during processing and easily identify them.
statusStatus?Sync status of the vehicle.
parentCriteriaIdstring?Identifier that groups vehicles by a specific criteria (e.g., all vehicles scraped using the same tax identifier).
parentBatchIdstring?Identifier that groups vehicles by the batch process in which they were processed. Useful to track executions and associate multiple criteria processed together.

VehicleInfo

{
"plate"?: string,
"vin"?: string,
"brand"?: string,
"model"?: string,
"year"?: number,
"class"?: string,
"type"?: string,
"doors"?: number,
"country"?: string,
"variation"?: string,
"cilinders"?: string,
"axes"?: string,
"assemblyPlant"?: string,
"supplementaryData"?: string,
"enrolledInstitution"?: string,
"inscriptionDate"?: string,
"inscriptionTime"?: string,
"platingEntity"?: string,
"platingDate"?: string,
"registrationCertificateFolio"?: string,
"observations"?: string,
"color"?: string,
"ownerName"?: string,
"engineNumber"?: string
}
PropertiesTypeDescription
platestring?Vehicle's plate.
vinstring?Vehicle Identification Number (VIN).
brandstring?Brand of the vehicle.
modelstring?Model of the vehicle.
yearnumber?Year of manufacture.
classstring?Class of the vehicle.
typestring?Type of the vehicle.
doorsnumber?Number of doors.
countrystring?Country of origin.
variationstring?Variation of the vehicle.
cilindersstring?Number of cylinders.
axesstring?Number of axes.
assemblyPlantstring?Assembly plant.
supplementaryDatastring?Supplementary data.
enrolledInstitutionstring?Institution where the vehicle is enrolled.
inscriptionDatestring?Date of inscription.
inscriptionTimestring?Time of inscription.
platingEntitystring?Entity responsible for plating.
platingDatestring?Date of plating.
registrationCertificateFoliostring?Folio of the registration certificate.
observationsstring?Additional observations.
colorstring?Color of the vehicle.
ownerNamestring?Name of the owner.
engineNumberstring?Engine number.

Result

{
"subTotal"?: number,
"discount"?: number,
"surcharge"?: number,
"total"?: number,
"pdfUrl": string,
"paymentLine"?: string,
"paymentLineDueDate"?: Date,
"scrapedTickets"?: {
"count": number,
"tickets": Tickets[]?
},
"scrapedTenencias"?: {
"count": number,
"tenencias"?: Tenencias[]
},
"scrapedRefrendos"?: {
"count": number,
"refrendos"?: Refrendos[]
},
"scrapedStolen"?: {
"stolenCount": number,
"count": number,
"stolen"?: Stolen[]
},
"scrapedInsurance"?: {
"count": number,
"insurance"?: Insurance[]
},

"scrapedTDC"?: {
"count": number,
"tdc"?: TDC[]
},

"scrapedInspection"?: {
"count": number,
"inspection"?: Inspection[]
},

"scrapedViolations"?: {
"count": number,
"violations"?: Violation[]
},

"scrapedPlateStatus"?: {
"count": number,
"plateStatus"?: PlateStatus[]
}
}
PropertiesTypeDescription
subTotalnumber?Subtotal amount.
discountnumber?Discount amount.
surchargenumber?Surcharge amount.
totalnumber?Total amount.
pdfUrlstringURL of the PDF document.
paymentLinestring?Payment line.
paymentLineDueDateDate?Due date of the payment line.
scrapedTicketsobject?Information about vehicle fines.
scrapedTickets.countnumberAmount of vehicle fines.
scrapedTickets.ticketsTickets[]?Tickets collection.
scrapedTenenciasobject?Information about vehicle owner taxes.
scrapedTenencias.countnumberNumber of owner taxes.
scrapedTenencias.tenenciasTenencias[]?Owner taxes collection.
scrapedRefrendosobject?Information about vehicle registration renewal.
scrapedRefrendos.countnumberNumber of vehicle registration renewals.
scrapedRefrendos.refrendosRefrendos[]?Vehicle registration renewal collection.
scrapedStolenobject?Information about stolen vehicle records.
scrapedStolen.countnumberNumber of consulted agencies (OCRA, PGJ, etc).
scrapedStolen.countStolennumberNumber of stolen reports.
scrapedStolen.stolenStolen[]?Stolen reports collection.
scrapedTDCobject?Information about vehicle registration cards.
scrapedTDC.countnumberNumber of Vehicle registration cards.
scrapedTDC.tdcTDC[]?Vehicle registration cards collection.
scrapedInspectionobject?Scraped data of vehicle inspections.
scrapedInspection.countnumberNumber of vehicle inspections found.
scrapedInspection.inspectionsInspection[]?Collection of vehicle inspections.
scrapedViolationsobject?Scraped data of vehicle violations (unverified).
scrapedViolations.countnumberNumber of violations found.
scrapedViolations.violationsViolation[]?Collection of vehicle violations (unverified).

Tickets (Fines)

{
"id"?: string,
"subTotal": number,
"description"?: string,
"discountsSum": number,
"surchargesSum": number,
"total": number,
"dateTime": Date,
"images"?: string[],
"discounts"?: [
{
"description": string,
"total": number
}
],
"surcharges"?: [
{
"description": string,
"total": number
}
]
}
PropertiesTypeDescription
idnumber?Vehicle fine identifier.
subtotalnumberFine amount without fine surcharges and discounts.
descriptionstring?Fine description.
discountsSumnumberThe sum of the fines discounts.
surchargesSumnumberThe sum of the fines surcharges.
totalnumberFine total amount with surcharges and discounts.
dateTimeDateDate of the fine.
imagesstring[]?Additional images.
surchargecollection?Surcharge collection.
surcharge[].descriptionstringDescription of a surcharge for the fine.
surcharge[].totalnumberAmount of a surcharge for the fine.
discountcollection?Discount collection.
discount[].descriptionstringDescription of a discount for the fine.
discount[].totalnumberAmount of a discount for the fine.

Tenencias (Owner taxes)

{
"description"?: string,
"subTotal": number,
"discountsSum": number,
"surchargesSum": number,
"total": number,
"year"?: number,
"discounts"?: [
{
"description": string,
"total": number
}
],
"surcharges"?: [
{
"description": string,
"total": number
}
]
}
PropertiesTypeDescription
descriptionstring?Description of the owner taxes.
subtotalnumberAmount of owner taxes without surcharges and discounts.
discountsSumnumberSum of the owner taxes discounts.
surchargesSumnumberSum of the owner taxes surcharges.
totalnumberTotal amount of owner taxes with surcharges and discounts.
yearnumber?Year of the owner taxes.
surchargesobject[]?Collection of surcharges for the owner taxes.
surcharges[].descriptionstringDescription of a surcharge.
surcharges[].totalnumberAmount of a surcharge.
discountsobject[]?Collection of discounts for the owner taxes.
discounts[].descriptionstringDescription of a discount.
discounts[].totalnumberAmount of a discount.

Refrendos

{
"description"?: string,
"subTotal": number,
"discountsSum": number,
"surchargesSum": number,
"total": number,
"year"?: number?,
"discounts"?: [
{
"description": string,
"total": number
}
],
"surcharges"?: [
{
"description": string,
"total": number
}
]
}
PropertiesTypeDescription
descriptionstring?Description of the vehicle registration renewal.
subtotalnumberAmount of the vehicle registration renewal without surcharges and discounts.
discountsSumnumberSum of the discounts for the vehicle registration renewal.
surchargesSumnumberSum of the surcharges for the vehicle registration renewal.
totalnumberTotal amount of the vehicle registration renewal with surcharges and discounts.
yearnumber?Year of the vehicle registration renewal.
surchargesobject[]?Collection of surcharges for the vehicle registration renewal.
surcharges[].descriptionstringDescription of a surcharge.
surcharges[].totalnumberAmount of a surcharge.
discountsobject[]?Collection of discounts for the vehicle registration renewal.
discounts[].descriptionstringDescription of a discount.
discounts[].totalnumberAmount of a discount.

Stolen

{
"agency": string,
"stolen": boolean,
"dateTime"?: Date,
"entity"?: string,
"updateDate"?: Date,
"dateOfInquiry"?: Date,
"recoveryEntity"?: string
}
PropertiesTypeDescription
agencystringAgency where the theft was reported (e.g., OCRA, PGJ, etc.).
stolenbooleanIndicates whether there are stolen reports in the agency or not.
dateTimeDate?Date of theft.
entitystring?The entity in which the theft was reported.
updateDateDate?Date of theft update.
dateOfInquiryDate?Date of theft investigation
recoveryEntitystring?Recovery entity, if applicable.

Insurance

{
"policy": string,
"startDateTime"?: Date,
"finishDateTime"?: Date
}
PropertiesTypeDescription
policystringVehicle insurance policy identifier.
startDateTimeDate?Start date of the vehicle insurance policy.
finishDateTimeDate?Expiration date of the vehicle insurance policy.

TDC

{
"id"?: string,
"validity"?: Date,
"stamp"?: string
}
PropertiesTypeDescription
idstring?Identifier of the vehicle registration card query date.
validityDate?Validity date of the vehicle registration card.
stampstring?Digital seal.

Inspection

{
"certificateId"?: string,
"inspectionType"?: string,
"issuedDate"?: Date,
"expiresDate"?: Date,
"inspectionCenter"?: string,
"currentlyValid"?: string,
"dataIntegrityConfirmed"?: string
}
PropertiesTypeDescription
certificateIdstring?Identifier of the vehicle inspection.
inspectionTypestring?Type of the vehicle inspection.
issuedDateDate?Date of the vehicle inspection.
expiresDateDate?Expiration date of the vehicle inspection.
inspectionCenterstring?Inspection center.
currentlyValidstring?If inspection is valid or not.
dataIntegrityConfirmedstring?If data integrity is confirmed or not.

Violations

{
"id"?: string,
"description"?: string,
"subTotal"?: number,
"discountsSum"?: number,
"surchargesSum"?: number,
"total"?: number,
"dateTime"?: Date,
"notificationDate"?: Date,
"organism"?: string,
"organismIdentifier"?: string,
"type"?: string,
"sourceType"?: string,
"direction"?: string,
"municipality"?: string,
"isElectronic"?: boolean,
"status"?: string,
"images"?: string[],
"discounts"?: [
{
"description": string,
"total": number
}
],
"surcharges"?: [
{
"description": string,
"total": number
}
]
}
PropertiesTypeDescription
idstring?Identifier of the vehicle violation.
descriptionstring?Description of the violation.
subTotalnumber?Amount of the violation without surcharges and discounts.
discountsSumnumber?Total amount of all discounts applied.
surchargesSumnumber?Total amount of all surcharges applied.
totalnumber?Final amount of the violation after surcharges and discounts.
dateTimestring?Date of the violation (ISO 8601 format).
notificationDatestring?Date of the notification (ISO 8601 format).
organismstring?Authority that reported the violation.
organismIdentifierstring?Identifier of the authority that reported the violation.
typestring?Type/category of the violation.
sourceTypestring?Type of source that reported the violation.
directionstring?Location or direction related to the violation.
municipalitystring?Municipality where the violation was reported.
isElectronicbooleanIndicates if the violation was issued electronically.
statusstring?Status of the violation.
imagesstring[]URLs of images related to the violation.
surchargesobject[]?Collection of surcharges for the violation.
surcharges[].descriptionstringDescription of a surcharge.
surcharges[].totalnumberAmount of a surcharge.
discountsobject[]?Collection of discounts for the violation.
discounts[].descriptionstringDescription of a discount.
discounts[].totalnumberAmount of a discount.

PlateStatus

{
"id"?: string,
"startDateTime"?: Date,
"finishDateTime"?: Date,
"previousPlate"?: string,
"status"?: string
}
PropertiesTypeDescription
idstring?Identifier of the vehicle plate status if any.
startDateTimeDate?Start date of the vehicle plate status.
finishDateTimeDate?Expiration date of the vehicle plate status.
previousPlatestring?Previous plate of the vehicle plate if any.
statusstring?Status of the vehicle plate given by the portal.