Consult a DUIMP through Siscomex's public import consultation using the DUIMP number and access key supplied at runtime.
Use Cases
Use when the caller has a DUIMP identifier and its access key and needs the public consultation result. Do not authenticate a user account, persist either value, or expose CAPTCHA tokens.
Automation Flow
- Navigate directly to
https://portalunico.siscomex.gov.br/duimp/v2/. This is the shortest stable path and skips the portal homepage, public-area menu, import menu, and hover navigation. The broader/duimp/route may also resolve to this consultation application. - Fill
#inputDuimpwith{duimp}and#inputChaveAcessowith{access-key}. Treat both values as sensitive runtime inputs; never log or include them in extracted output. - If a CAPTCHA appears, use
solve(wait: true, timeout: 120000). Wait briefly for the portal callback to enable the consultation control. If it stays blocked, report that the consultation could not complete. Do not inspect or manipulate cross-origin CAPTCHA frames or return the challenge response. - Click
#pucx-consultar, wait for the response or modal, and run this evaluator on the current page:
(() => {
const text = (selector) => (document.querySelector(selector)?.innerText || '').trim();
const visible = (selector) => {
const element = document.querySelector(selector);
return !!element && !!(element.getBoundingClientRect().width && element.getBoundingClientRect().height);
};
return {
url: location.href,
consulted: !document.querySelector('#pucx-consultar')?.disabled,
modalText: text('#modal_message'),
feedbackText: text('#feedback'),
modalVisible: visible('#hdr_modal'),
pageText: (document.body?.innerText || '').trim().slice(0, 5000)
};
})()Possible Friction Points
- The stable direct public-consultation URL is
/duimp/v2/; do not navigate through/portal/or manually open the Public, Import, or Declaração Única de Importação menus. - The form fields use
#inputDuimpand#inputChaveAcesso; the consultation control is#pucx-consultar. - A CAPTCHA may require an explicit wait and a short delay before the portal enables the consultation control.
- Consultation feedback can appear in
#feedback,#hdr_modal, or#modal_message; inspect all of them and the visible page text. - DUIMP numbers and access keys are caller-provided sensitive values. Use placeholders at runtime and never persist, echo, or return them.
Example Result
{
"url": "https://example.com/",
"consulted": true,
"modalText": "",
"feedbackText": "",
"modalVisible": false,
"pageText": "Example Title"
}