Deep-dive on the Next Gen Platform. Join the Webinar!

Skip Navigation
Show nav
Dev Center
  • Get Started
  • Documentation
  • Changelog
  • Search
  • Get Started
    • Node.js
    • Ruby on Rails
    • Ruby
    • Python
    • Java
    • PHP
    • Go
    • Scala
    • Clojure
    • .NET
  • Documentation
  • Changelog
  • More
    Additional Resources
    • Home
    • Elements
    • Products
    • Pricing
    • Careers
    • Help
    • Status
    • Events
    • Podcasts
    • Compliance Center
    Heroku Blog

    Heroku Blog

    Find out what's new with Heroku on our blog.

    Visit Blog
  • Log inorSign up
Hide categories

Categories

  • Heroku Architecture
    • Compute (Dynos)
      • Dyno Management
      • Dyno Concepts
      • Dyno Behavior
      • Dyno Reference
      • Dyno Troubleshooting
    • Stacks (operating system images)
    • Networking & DNS
    • Platform Policies
    • Platform Principles
  • Developer Tools
    • Command Line
    • Heroku VS Code Extension
  • Deployment
    • Deploying with Git
    • Deploying with Docker
    • Deployment Integrations
  • Continuous Delivery & Integration (Heroku Flow)
    • Continuous Integration
  • Language Support
    • Node.js
      • Working with Node.js
      • Node.js Behavior in Heroku
      • Troubleshooting Node.js Apps
    • Ruby
      • Rails Support
      • Working with Bundler
      • Working with Ruby
      • Ruby Behavior in Heroku
      • Troubleshooting Ruby Apps
    • Python
      • Working with Python
      • Background Jobs in Python
      • Python Behavior in Heroku
      • Working with Django
    • Java
      • Java Behavior in Heroku
      • Working with Java
      • Working with Maven
      • Working with Spring Boot
      • Troubleshooting Java Apps
    • PHP
      • PHP Behavior in Heroku
      • Working with PHP
    • Go
      • Go Dependency Management
    • Scala
    • Clojure
    • .NET
      • Working with .NET
  • Databases & Data Management
    • Heroku Postgres
      • Postgres Basics
      • Postgres Getting Started
      • Postgres Performance
      • Postgres Data Transfer & Preservation
      • Postgres Availability
      • Postgres Special Topics
      • Migrating to Heroku Postgres
    • Heroku Key-Value Store
    • Apache Kafka on Heroku
    • Other Data Stores
  • AI
    • Working with AI
  • Monitoring & Metrics
    • Logging
  • App Performance
  • Add-ons
    • All Add-ons
  • Collaboration
  • Security
    • App Security
    • Identities & Authentication
      • Single Sign-on (SSO)
    • Private Spaces
      • Infrastructure Networking
    • Compliance
  • Heroku Enterprise
    • Enterprise Accounts
    • Enterprise Teams
    • Heroku Connect (Salesforce sync)
      • Heroku Connect Administration
      • Heroku Connect Reference
      • Heroku Connect Troubleshooting
  • Patterns & Best Practices
  • Extending Heroku
    • Platform API
    • App Webhooks
    • Heroku Labs
    • Building Add-ons
      • Add-on Development Tasks
      • Add-on APIs
      • Add-on Guidelines & Requirements
    • Building CLI Plugins
    • Developing Buildpacks
    • Dev Center
  • Accounts & Billing
  • Troubleshooting & Support
  • Integrating with Salesforce
  • Add-ons
  • All Add-ons
  • IPinfo
IPinfo

This add-on is operated by IDB LLC

Fast & accurate IP geolocation data with simple and robust API access.

IPinfo

Last updated September 02, 2021

The IPinfo add-on is currently in beta.

Table of Contents

  • Provisioning the Add-on
  • Local Setup
  • Dashboard
  • Troubleshooting
  • Removing the add-on
  • Support

IPinfo is an add-on that provides IP geolocation.

Adding IPinfo to an application provides you fast and accurate information about IP addresses. Information related to IP addresses’ company, mobile carrier, vpn and more are also available.

IPinfo is accessible via an API and has supported client libraries for Java, Ruby, Python, C#, Node.js, PHP, Go, Rust Erlang and more.

Provisioning the Add-on

Attach IPinfo to a Heroku application via the CLI:

$ heroku addons:create ipinfo
Creating ipinfo on sharp-mountain-4005... free
Your add-on has been provisioned successfully

After you provision IPinfo, the IPINFO_TOKEN config var is available in your app’s configuration. It contains your IPinfo token to make requests. You can view this token via the heroku config:get command:

$ heroku config:get IPINFO_TOKEN
cb159dd1128cs2

After you install IPinfo, your application is configured to fully integrate with the add-on. Open the dashboard for product onboarding.

Local Setup

Environment Setup

After you provision the add-on, it’s necessary to locally replicate its config vars so your development environment can operate against the service.

Use the Heroku Local command-line tool to configure, run, and manage process types specified in your app’s Procfile. Heroku Local reads configuration variables from a .env file. To view all of your app’s config vars, type heroku config. Use the following command for each value that you want to add to your .env file:

$ heroku config:get IPINFO_TOKEN -s  >> .env

Don’t commit credentials and other sensitive configuration values to source-control. In Git exclude the .env file with: echo .env >> .gitignore.

For more information, see the Heroku Local article.

Service Setup

You can install IPinfo for use in a local development environment. Typically, this process entails making requests to IPInfo’s API endpoints or using any of the supported libraries. Use your IPinfo token, which is present in the environment variable IPINFO_TOKEN. See the developer documentation for more info.

Dashboard

For more information on the features available within the IPInfo dashboard, please see the docs at ipinfo.io/account/home.

The IPinfo dashboard allows you to check your API usage and get results in the web interface.

You can access the dashboard via the CLI:

$ heroku addons:open IPinfo
Opening IPinfo for sharp-mountain-4005

or by visiting the Heroku Dashboard and selecting the application in question. Select IPinfo from the Add-ons menu.

Troubleshooting

If the token doesn’t work, check that it’s set correctly in the environment.

Removing the add-on

You can remove IPinfo via the CLI:

This action destroys all associated data and can’t be undone!

$ heroku addons:destroy IPinfo
-----> Removing IPinfo from sharp-mountain-4005... done, v20 (free)

Support

Submit all IPinfo support and runtime issues via one of the Heroku Support channels.

Keep reading

  • All Add-ons

Feedback

Log in to submit feedback.

Zara 4 IP Investigator

Information & Support

  • Getting Started
  • Documentation
  • Changelog
  • Compliance Center
  • Training & Education
  • Blog
  • Support Channels
  • Status

Language Reference

  • Node.js
  • Ruby
  • Java
  • PHP
  • Python
  • Go
  • Scala
  • Clojure
  • .NET

Other Resources

  • Careers
  • Elements
  • Products
  • Pricing
  • RSS
    • Dev Center Articles
    • Dev Center Changelog
    • Heroku Blog
    • Heroku News Blog
    • Heroku Engineering Blog
  • Twitter
    • Dev Center Articles
    • Dev Center Changelog
    • Heroku
    • Heroku Status
  • Github
  • LinkedIn
  • © 2025 Salesforce, Inc. All rights reserved. Various trademarks held by their respective owners. Salesforce Tower, 415 Mission Street, 3rd Floor, San Francisco, CA 94105, United States
  • heroku.com
  • Legal
  • Terms of Service
  • Privacy Information
  • Responsible Disclosure
  • Trust
  • Contact
  • Cookie Preferences
  • Your Privacy Choices