# Extract Passport Data > Passport OCR API for any country: extract the passport number, names, nationality, dates, and MRZ in seconds, with ICAO 9303 validation. 20 free extractions. The Extract Passport Data API lets you extract data from passports of any country programmatically. It uses artificial intelligence to process the images, extract every field on the data page, and validate the MRZ with the ICAO 9303 check digits. This file is the service's complete plain-text reference, generated from the same content the site renders. The index is at https://extractpassportdata.com/llms.txt. ## Getting started 1. Create an account at https://extractpassportdata.com/register — it includes 20 free extractions, no card required. 2. Issue an API key at https://extractpassportdata.com/dashboard/api-keys (it starts with `pass_`). 3. Send the image to the extraction endpoint with an `X-API-Key` header. ## Endpoints ### POST https://extractpassportdata.com/api/v1/extract Extracts data from an image of the passport data page. | Field | Type | Description | | --- | --- | --- | | `image_front` | file / base64 / URL | Passport data page (required) | | `image_back` | file / base64 / URL | Additional page (optional) | ```bash curl -X POST https://extractpassportdata.com/api/v1/extract \ -H "X-API-Key: pass_your_api_key" \ -F "image_front=@passport.jpg" \ -F "image_back=@passport_extra.jpg" ``` Response: ```json { "success": true, "extraction_id": "clx1234567890", "data": { "passportNumber": "G12345678", "surname": "GOMEZ VELAZQUEZ", "givenNames": "MARGARITA", "nationality": "MEXICANA", "dateOfBirth": "05/07/1980", "sex": "F", "placeOfBirth": "COAHUILA", "dateOfIssue": "05/07/2023", "dateOfExpiry": "05/07/2033", "issuingCountry": "MEX", "issuingAuthority": "SRE", "personalNumber": "GOVM800705MCLRLR01", "mrzLine1": "P