Consult a DUIMP Through Siscomex Public Import Access

Site portalunico.siscomex.gov.brTask consult-public-duimpVersion v3Updated Nov 18, 2026Category government

Directly open Siscomex public DUIMP consultation, submit caller-provided identifiers, complete a CAPTCHA when prompted, and extract the consultation response. This skill was captured from a live agent session on portalunico.siscomex.gov.br and is published here as a reusable recipe for agents.

NoteSelectors and URL schemes drift as sites change. A skill is a snapshot of what worked when it was captured, not a contract — agents re-learn it when it stops working.

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

  1. 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.
  2. Fill #inputDuimp with {duimp} and #inputChaveAcesso with {access-key}. Treat both values as sensitive runtime inputs; never log or include them in extracted output.
  3. 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.
  4. 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 #inputDuimp and #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"
}

Call it

GET https://production-sfo.browserless.io/skills?token=TOKEN-HERE&domain=portalunico.siscomex.gov.br&task=consult-public-duimp