How to Find the PEC (Certified Email) Address of an Italian Company
italy · pec · e-invoicing · compliance · api · 11 min read
Every Italian company has to register a PEC (Posta Elettronica Certificata) address, now called its domicilio digitale, with the Registro Imprese. For a single company, the quickest free source is INI-PEC at inipec.gov.it: enter the company’s codice fiscale and the portal shows the registered PEC. For a list of companies, such as a supplier file or a customer master that needs PEC and SDI codes for e-invoicing, the Italy PEC Lookup actor takes a batch of VAT numbers, codici fiscali or names and returns one structured row per company.
This guide covers what a PEC is, how it differs from an SDI code, the manual lookup, the automated one, and where the data needs care.
What a PEC is and why companies have one
A PEC is an email address run by an accredited provider. Each message produces an acceptance receipt and a delivery receipt, and a message sent from one PEC to another has the same legal standing as a registered letter with return receipt. That is why Italian companies, courts, tax offices and lawyers use it for anything that needs proof of delivery: formal notices, payment demands, contract terminations, and court notifications.
The obligation has grown in steps:
- Companies (società) have had to register a PEC with the Registro Imprese since 2008.
- Sole traders (imprese individuali) were added from 2013.
- In 2020 the law renamed the address domicilio digitale and added fines for companies that do not register one, with an address assigned by the Chamber of Commerce if the company does not act.
The PEC is the company’s official address for legally relevant mail, and it is public by design.
The public lists that hold PEC addresses
| List | Who is in it | Where |
|---|---|---|
| INI-PEC | Companies and registered professionals | inipec.gov.it |
| Registro Imprese | Companies (the PEC is part of the company record and appears on the visura) | registroimprese.it |
| IPA | Public administrations and their offices | indicepa.gov.it |
| INAD | Private individuals and professionals not in a professional register who chose a digital address | domiciliodigitale.gov.it |
INI-PEC (Indice Nazionale degli Indirizzi di Posta Elettronica Certificata) is the index set up under the Codice dell’Amministrazione Digitale. It is maintained under the Ministry of Enterprises and Made in Italy and fed from the Registro Imprese and the professional orders. If you need a company’s PEC, INI-PEC is the reference list.
PEC vs SDI code: two identifiers, two jobs
These two get confused all the time, mostly because both turn up in the same e-invoicing conversation.
| PEC | SDI code (codice destinatario) | |
|---|---|---|
| What it is | A certified email address | A 7-character routing code (6 characters for public administrations) |
| Example | [email protected] | M5UXCR1 |
| Who issues it | An accredited PEC provider | Assigned to the e-invoicing channel (software house, intermediary or the company’s own channel) |
| Where it is published | INI-PEC and the Registro Imprese, by law | No official public directory |
| What it is used for | Legally valid mail of any kind | Routing electronic invoices through the Sistema di Interscambio (SDI) run by the Agenzia delle Entrate |
The connection between them is invoicing. Since 1 January 2019, B2B invoices between Italian businesses go through the SDI as XML files. The sender puts a delivery channel in the invoice header:
- If the customer gave an SDI code, the invoice carries that code.
- If the customer has no code but has a PEC, the invoice carries
0000000as the code and the PEC in thePECDestinatariofield. The SDI delivers the invoice to that PEC. - If neither is known, the invoice carries
0000000alone and the SDI makes it available in the customer’s reserved area on the Agenzia delle Entrate portal. - For a customer abroad, the code is
XXXXXXX.
One more rule overrides all of these: if the customer has registered a preferred delivery address with the Agenzia delle Entrate, the SDI uses that one, whatever the invoice says.
In practice: the SDI code is the better routing value for invoices, and the PEC is the fallback for invoices and the primary address for everything else. A billing record that has both is the safest.
The manual way: INI-PEC, one company at a time
For one or two lookups, the official portal is free and needs no account.
- Go to inipec.gov.it and open the search for companies (imprese).
- Enter the company’s codice fiscale. For most companies the codice fiscale is the same 11 digits as the Partita IVA (VAT number) without the
ITprefix. Some large companies, Eni for example, have a codice fiscale that differs from their VAT number, so if a VAT number finds nothing, check the codice fiscale on an invoice or the visura. - Complete the on-page check and submit. The portal shows the PEC registered for that company.
You can also find the PEC in the company record on registroimprese.it. The full record (visura camerale) includes it, but the visura is a paid document.
Where it stops scaling:
- The portal answers one company per query. A supplier file of 400 VAT numbers is a day of copy and paste.
- It gives you the PEC and nothing else you need for billing: no EU VAT format, no split address, no SDI code.
- There is no way to schedule it. If you want to re-check a customer file every quarter, someone has to do it again by hand.
The automated way: Italy PEC Lookup on Apify
The Italy PEC Lookup actor is built for the list case. You give it identifiers, it returns the company’s billing identity: legal name, Partita IVA, EU VAT number, codice fiscale, registered office, PEC and, where published, the SDI destination code. The data reflects Camera di Commercio / Registro Imprese records. No official public API returns this set. The actor needs no login, key or configuration beyond an Apify account.
Input
The input has one field, identifiers: a list of Partita IVA numbers, codici fiscali, or company names. Formats can be mixed, and the IT prefix is accepted.
{
"identifiers": ["00159560366", "Barilla", "IT00789470519"]
}
You get one result row per identifier that resolves to a company.
Output
A record for Ferrari S.p.A.:
{
"query": "00159560366",
"denominazione": "FERRARI S.P.A.",
"partitaIVA": "00159560366",
"vatEuropeo": "IT00159560366",
"codiceFiscale": "00159560366",
"pec": "[email protected]",
"codiceDestinatarioSDI": "M5UXCR1",
"indirizzo": "VIA EMILIA EST 1163 - 41122 - MODENA (MO)",
"via": "VIA EMILIA EST 1163",
"cap": "41122",
"comune": "MODENA",
"provincia": "MO",
"detailLevel": "full"
}
What the fields mean:
| Field | Meaning |
|---|---|
query | The identifier you sent, so you can join the result back to your input |
denominazione | Registered legal name |
partitaIVA | Italian VAT number, 11 digits |
vatEuropeo | The VAT number in EU (VIES) format, IT + 11 digits |
codiceFiscale | Tax code of the company, often equal to the Partita IVA |
pec | Registered certified email (domicilio digitale), or null if none is published |
codiceDestinatarioSDI | SDI destination code for e-invoices, where published |
indirizzo | Registered office as the register writes it |
via, cap, comune, provincia | The same address split into street, postcode, town and province code |
detailLevel | full for a complete record, partial when only a reduced record was available |
sourceUrl | The page the record was read from |
detailLevel matters for the SDI code. On a partial record, a null SDI code means the code was not read. It does not mean the company has no code, so handle the two cases separately in your pipeline.
If you need REA number, ATECO code, legal form, share capital or headcount, those come from a different actor, the Italy Registro Imprese scraper, which searches by company name and returns the firmographic profile. This one is the by-identifier contact and billing resolver.
JavaScript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const identifiers = ['00159560366', 'IT00789470519', 'Barilla'];
const run = await client.actor('regdata/italy-pec-lookup').call({ identifiers });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const row of items) {
console.log(row.query, row.denominazione, row.pec ?? '(no PEC published)', row.codiceDestinatarioSDI);
}
// Identifiers that could not be checked are listed separately - never treat them as "no PEC".
const unverified = await client.keyValueStore(run.defaultKeyValueStoreId).getRecord('UNVERIFIED');
if (unverified) console.log('Re-run these:', unverified.value.identifiers);
Python
import os
from apify_client import ApifyClient
client = ApifyClient(os.environ["APIFY_TOKEN"])
identifiers = ["00159560366", "IT00789470519", "Barilla"]
run = client.actor("regdata/italy-pec-lookup").call(run_input={"identifiers": identifiers})
items = client.dataset(run["defaultDatasetId"]).list_items().items
for row in items:
print(row["query"], row["denominazione"], row.get("pec") or "(no PEC published)", row.get("codiceDestinatarioSDI"))
unverified = client.key_value_store(run["defaultKeyValueStoreId"]).get_record("UNVERIFIED")
if unverified:
print("Re-run these:", unverified["value"]["identifiers"])
Results can also be exported as CSV, Excel or XML from the run’s dataset, which is often enough for a one-off file handed to a finance team.
A worked workflow: filling e-invoicing data for a customer file
A typical case: an accounts receivable team has a list of Italian customers with VAT numbers and nothing else, and invoices keep bouncing or landing in the customers’ reserved area because the delivery channel is missing.
- Export the VAT numbers from the ERP or CRM, one per row. Keep your own customer ID next to each.
- Run the actor with the list as
identifiers, either from the Apify Console or from the code above. - Join on
query. Each result row carries the identifier you sent, so it maps straight back to your customer ID. - Decide the routing value for each customer:
- SDI code present: use it as
CodiceDestinatario. - No SDI code, PEC present: use
0000000and put the PEC inPECDestinatario. - Neither: use
0000000and ask the customer for a code. The invoice will still reach their reserved area.
- SDI code present: use it as
- Write back the address fields.
via,cap,comuneandprovinciamap directly onto the address block of the FatturaPA XML, anddenominazionegives you the exact legal name to put on the invoice. - Handle the gaps. Identifiers with no row are no-matches: check them for typos or for a codice fiscale that differs from the VAT number. Identifiers in the
UNVERIFIEDrecord were not checked at all and need another run. - Schedule a refresh. Companies change PEC providers and invoicing intermediaries. An Apify schedule that re-runs the same list monthly or quarterly keeps the master data current.
If the list lives in Google Sheets, there is a ready-made Make template that does steps 2 to 5 for a sheet of VAT numbers once a day: Look up Italian PEC addresses for a list of VAT numbers in Google Sheets. In n8n, the official Apify community node (@apify/n8n-nodes-apify) runs the actor and returns the dataset to the next node. The actor can also be called from MCP clients such as Claude or Cursor through mcp.apify.com.
The same output serves supplier onboarding (check that the PEC and registered office on a supplier’s form match the register) and legal departments that need a valid address before sending a formal notice.
Limits and gotchas
A null PEC means none is published. Some companies never registered one, some are ceased or in liquidation, and some records are simply incomplete. The law requires a PEC, but the register shows only what each company actually filed. Do not invent a fallback from the company’s website.
Not checked is not “no PEC”. If an identifier could not be checked during a run, it goes into the UNVERIFIED key-value record with a reason, not into the dataset with an empty PEC. Re-run those identifiers rather than marking them as missing.
No-matches have no row. If an identifier does not resolve to a company, nothing is written for it. Compare your input list with the query values in the output to find them.
Names resolve to one company. A name such as “Barilla” returns the best-matching company. Groups often have several legal entities with similar names, so when you search by name, check partitaIVA and comune before you store the result. Search by VAT number or codice fiscale whenever you have one.
The SDI code is not an official public field. No public register lists SDI codes. The actor returns one where the record it reads publishes it. A company can change its code when it switches software, and the Agenzia delle Entrate’s registered delivery address, if the customer has set one, wins over whatever code you put on the invoice. Treat a returned SDI code as a strong default, and update it when a customer tells you otherwise.
For legal notices, confirm on INI-PEC. If you are about to send something whose validity depends on the address (a formal notice, a court notification), check the PEC on inipec.gov.it on the day you send and keep the PEC receipts. Use the actor to build and refresh the list. The check on the day of sending costs one free lookup.
Public does not mean consent to marketing. PEC addresses are public so that companies can be reached for communications with legal value. Sending unsolicited commercial messages to a PEC is still email marketing under Italian privacy rules, which require prior consent, and an address being in a public list is not consent. Use this data for billing, onboarding, compliance and formal correspondence.
Companies, not professionals or public bodies. The actor resolves companies. For a professional’s PEC (a lawyer or engineer, for example), search INI-PEC directly. For a public administration’s address and its 6-character invoicing codes, use IPA.
Pricing
The actor is pay per result: from $0.012 per company record returned, plus $0.01 per run start. Lookups that find no company or could not be checked do not produce a record. The free Apify plan returns a small preview. Current prices, including volume tiers, are on the Store page. There is also an overview on our Italy PEC lookup registry page.
FAQ
Is INI-PEC free to use?
Yes. The public search on inipec.gov.it is free and needs no registration. It returns one company per query.
Is a PEC the same as an SDI code?
No. A PEC is a certified email address that works for any legally valid message. An SDI code is a 7-character code that routes electronic invoices through the Sistema di Interscambio. You can invoice a company that has only a PEC by putting 0000000 as the code and the PEC in the PECDestinatario field.
Can I find a PEC from the VAT number?
Usually, yes. For most companies the codice fiscale equals the Partita IVA, so a VAT number search works on INI-PEC and in the actor. Where the two differ, search by the codice fiscale. The actor accepts both, with or without the IT prefix.
What if a company has no PEC listed?
Then it has not registered one, or its record is incomplete. You can still send it an e-invoice through the SDI with code 0000000, and it will reach the company’s reserved area at the Agenzia delle Entrate. For formal notices you will need another legally valid channel, such as registered post to the registered office.
Can I send marketing emails to PEC addresses?
Not without consent. The addresses are public so companies can receive legally relevant communications. Unsolicited commercial messages to a PEC are treated like any other email marketing under Italian privacy rules.
Does the actor give REA, ATECO or financial data?
No. It returns the contact and billing set. For REA, ATECO, legal form, share capital and headcount, use the Italy Registro Imprese scraper, which searches by company name.
Turn this into working data. Browse the registries and use cases, or start free on Apify.