Method for estimating either flowback or the reservoir fluid production rate from either one individual inlet or the contribution from several inlets separated by intervals in a wellbore located in an oil and/or gas reservoir (Ω), said wellbore being extended along a path at least from a point of the surface of the reservoir (Ω) until a point in the subsurface, the wellbore comprising: - a casing comprising a plurality of inlet ports distributed according to a first arrangement along the path allowing the entrance of fluid into the casing; and, - delivering at least one sensor element in the wellbore within the casing during either flowback or the production of fluid at a location of the wellbore located in the subsurface and where the fluid flows, being the sensor element dragged by the flow and wherein the velocity of the sensor element is almost the velocity of the surrounding fluid; - collecting the recorded data from the at least one sensor element; and - determining the estimation of the velocity of the fluid flow as the velocity of the sensor element being dragged by said flow of either flowback or the production of fluid; wherein the method is characterized in that: - the casing comprises a plurality of magnetic irregularity elements distributed according to a second arrangement along the path; - the at least one sensor element is adapted to record in time the magnetic perturbation generated by a magnetic irregularity element when the at least one sensor element is moving within the casing and passing through a section of the wellbore where the said magnetic irregularity element is located according to the path direction; and, wherein the method further comprises: - recording with the at least one sensor the magnetic perturbations caused when the sensor element dragged by the flow passes near each magnetic irregularity element with known spacing between them. - a casing comprising a plurality of inlet ports distributed according to a first arrangement along the path allowing the entrance of fluid into the casing; and, - delivering at least one sensor element in the wellbore within the casing during either flowback or the production of fluid at a location of the wellbore located in the subsurface and where the fluid flows, being the sensor element dragged by the flow and wherein the velocity of the sensor element is almost the velocity of the surrounding fluid; - collecting the recorded data from the at least one sensor element; and - determining the estimation of the velocity of the fluid flow as the velocity of the sensor element being dragged by said flow of either flowback or the production of fluid; - the casing comprises a plurality of magnetic irregularity elements distributed according to a second arrangement along the path; - the at least one sensor element is adapted to record in time the magnetic perturbation generated by a magnetic irregularity element when the at least one sensor element is moving within the casing and passing through a section of the wellbore where the said magnetic irregularity element is located according to the path direction; and, - recording with the at least one sensor the magnetic perturbations caused when the sensor element dragged by the flow passes near each magnetic irregularity element with known spacing between them.