Flight Crew Air Transport Pilot (ATP)
Confusion; Other / Unknown
Deviation / Discrepancy - Procedural Clearance; Ground Incursion Taxiway
Air Traffic Control Issued New Clearance; Flight Crew Returned To Clearance; Flight Crew Became Reoriented
Human Factors
Taxi in at MIA airport and cleared to taxi to cargo Ramp after clearing Runway 08R and cleared across 08L which was closed.  Upon taxing north [west] on taxiway went past cargo ramp due to ramp being dark and not well lighted.  Tower cleared us to back taxi on Runway 08L at K1 to K2 then back to ramp via Taxiway k.  By being more aware of where cargo ramp was located and the ramp being better lighted.
Taxiing in at Miami we were told to hold at Z for a medical flight that crossed in front to go to customs. Learjet was lost and made a wrong turn and finally taxied in front of us to customs.  We continued to taxi and inadvertently taxied past [our ramp].  The ramp was dark and the gate is not well lit.  We advised tower and they gave us clearance to taxi back on K1 back taxi Runway 8L to K2 then to the ramp via K.  We could have been more aware of ramp location and lack of lighting.  I had not been to MIA in a number of years and could have done more chart study.
Air Carrier cargo crew reports taxiing past their ramp on the northwest corner of the MIA airport due to unfamiliarity and a lack of lighting.