Wouldn't that qualify as operating an ad network on instagram, something that is explicitly forbidden via the instagram terms of service?
"Don't transfer any data that you receive from us (including anonymous, aggregate, or derived data) to any ad network, data broker, influencer network, or other advertising or monetization-related service."
"Don't transfer any data that you receive from us (including anonymous, aggregate, or derived data) to any ad network, data broker, influencer network, or other advertising or monetization-related service."