S5 Bonus: Scaling to 1 Trillion Requests: How IPinfo Built a Global API with Ben Dowling [0:00:01] Ben Dowling: IPinfo has a freemium offering. We have a free API that allows for anybody to make up to a thousand requests a day completely for free without even registering for an API token. The thinking behind that was, like I say, when I launched the very first version, hey, this will be used by hobbyists and developers. To make it really easy to use, you don't even need to sign up. Call it through a command line or a simple bit of code and everything will work great. We suddenly got to this point where we said, hey, we think we have hundreds of thousands of free users using the free plan. We had no way to reach out to all these free users that loved the free offering, but no way to even kind of communicate, hey, here's all the new cool stuff we're doing. No way to get in touch. I'm Ben Dowling. I'm the founder and CEO of ipinfo.io. [0:00:47] Noah Labhart: This is Code Story, a podcast bringing you interviews with tech visionaries who share in the critical moments of what it takes to change an industry and build and lead a team that has your back. I'm your host Noah Labhart and today how Ben Dowling spent an evening building a tool that is your trusted source for IP address data. All this and more on Code Story. Ben Dowling lives in Seattle and loves it there. He is married and a father of three kids ages 11, 8 and 5. He loves to hike and recently took his family on a weekend trip to Mount Rainier. He loves to snowboard and get away from the screen, though he admits that tech is also his hobby, building side projects, apps, websites, etc. Ben was working on a bunch of different side projects in 2013. The process to get IPinfo was manual, tedious, and filled with headaches across those projects. After he felt this pain point multiple times, he decided to build a solution to solve it. knowing that he would quickly start getting millions of requests in a short time. This is the creation story of IPinfo. [0:02:07] Ben Dowling: So IPinfo, at this stage, we're a company with about 20 people. We build IP address contextual information data sets. So that's IP geolocation. We'll tell you if an IP address belongs to a mobile carrier or not and which carrier. We do privacy detection. So you'll tell you if an IP address belongs to a VPN or a public proxy service. A bunch of different data sets that give context to IP addresses for lots of different use cases. How it started was a simple API for IP geolocation data, and so I've been working on a bunch of different side projects, and each time needed your IP geolocation for different things, and at the time this was back in back in 2013, to get set up with that you had to download a file, you had to upload it to a server, you had to set up cron jobs to make sure that it updated each month, and, you know, something would go wrong with it, you'd have to SSH into a bunch of different projects and a bunch of different servers where it could all go wrong. And so I wanted to solve that pain point of, hey, let's make this easier and just have an API. I can have one server that had this data, I could make sure that one server was downloading the data and updating it, and then just, you know, call it for my other services through an API. And so then you know, instead of, hey, I've got four projects on the go, four servers, I've got to make sure that it's keeping this up to date, just one place, that's the It's the only place I have to worry about wrapping in a simple API. And then, you know, the other projects can just use that. And I thought it could be useful for other developers too. So just sort of launched it as a really dead simple API. Just, you know, pass an IP address in and we'll give you the geolocation data back. And launched that and very quickly it started taking off. And, you know, I figured it would be useful for other developers, you know, working on hobbyist projects like I was. And, you know, maybe want to do a few hundred lookups a month. But very, very quickly it started getting, you know, I saw some people making millions of requests a month. people using it for things I kind of hadn't even imagined. And sort of dived into that more, found out what people were using it for, and commercialized it. Thought, hey, if there's people making millions of requests a month, I figured it'd be developers making hundreds of requests. Let's add some paid plans, see what happens. And people started paying. And so I decided to devote more and more time to it and started building out new data sets as well. So initially, like I said, it was just an API. But then as more and more users were using it, as more and more people were seeing our data, But at the time, our product was just the API. It was a thin layer around existing data sets. We started getting feedback, people saying, hey, you've got my location wrong. It's saying I'm in Miami, but really I'm in San Francisco. And actually we were like, hey, it's not our data. Go report it upstream. As soon as it gets fixed, we'll just put in the data each month and you'll see the fixes. And we'd get more and more feedback saying, oh, the data's wrong, can you fix it? And so then we started down a long road of, okay, well, can we produce better data ourselves? and then sort of working on adjacent data sets as well so people would say hey it's showing I'm in San Francisco but really I'm on a VPN that's going through San Francisco is there any way you could flag that and so started looking into you know different data sets that our customers and users were we're interested in that kind of helped them solve more of their problem and so you know now we've got a big data science team and a big team of data engineers that work on building out those data sets improving those data sets improving the accuracy coverage quality and still you know our API still 40 billion API requests a month, lots of people calling the API to look up this data. But we also offer the data as downloads. We have companies embedding our data within their products or using it for different things internally. And so we've sort of evolved to a full sort of IP address context data business. [0:05:41] Noah Labhart: Let's double back to the MVPs, that first product you built. Tell me about how long it took you to build and what sort of tools you used to bring it to life. [0:05:49] Ben Dowling: The very first version I built in an evening. I was actually traveling to Seattle at the time, so I was living down in the Bay Area and I was traveling to Seattle. I was staying in a hotel and I got a... I was visiting a website and it said something about Texas and I was like, this is weird. Why is this website telling me I'm in Texas? Am I really in Texas? I'm actually in Seattle, right? But this website is giving me an ad for Texas. Is it just a really badly targeted targeted ad? Am I actually on an IP address that goes through Texas? Like what's going on? I was just curious about it and wanted to kind of find a way to plot an IP address on a map and just, you know, what even is my IP? What is it on a map? And was kind of Googling for stuff and couldn't find anything. And I'd already been playing with geolocation data and, you know, sort of combined with the idea of making this API and just thought, well, hey, hey, I could just register a domain today, put up a simple website and debug this issue. And so I just registered the domain that night, built a very, very simple version of the website that just showed your IP address and it showed a little Google Maps widget just on the webpage. And that was the very first version. That was a simple website. And so I did that within a couple of hours. And then over the next few weeks, that's when it sort of evolved into the API idea, where it's like, okay, this could actually be a really useful way to solve my headache. on the developer side, be helpful to other developers. And so, you know, it's something that was dabbling in, you know, a few hours here and there as a sort of a side project. And so I guess it evolved into the simple API after a couple of weeks, and then, you know, some API documentation and posted about it to a few places. So I'd say, you know, probably within like five or 10 hours, but over the first month, it evolved from this really simple domain that just showed your IP in a map to, okay, then there's, you know, an API that you can pull this data down programmatically. [0:07:39] Noah Labhart: The product makes so much sense and is so needed. With any early MVP product, you have to make certain decisions and trade-offs. So tell me about some of those that you had to make in that first MVP, either in the evening that you built it or as you progressed it a little bit. It's still in the MVP stage. But tell me about some of those decisions and trade-offs and how you coped with those decisions. [0:08:04] Ben Dowling: Some of the big ones were that I was more of a backend developer, certainly no designer. And the backend stuff was fun, the API was fun. And so all my focus and attention sort of went there. And that was partly, I guess, a skill set thing. That's just what I enjoyed doing and where I wanted to spend my time. But I ended up really focusing the initial version. and as I launched paid plans and all these things, all the efforts sort of went into the API and nothing on, like there wasn't even an account, there was nowhere to log in, right? And so people would, you could subscribe, there was a page where you could put in your card, but it just called the Stripe API. You had no sort of user database, we just used Stripe for payments. If someone wanted to find out how many requests they'd make, they'd shoot me an email and I'd run a query against the database card details they have to shoot me an email and I create a one-time link where they could go in and use the Stripe API for them to update their card details, but all the effort and energy went into, hey, let's make sure the API is, you know, really reliable, make sure there's low latency, um, make sure you have the data fields there that the users want and really focused on that rather than any of the other stuff that sort of seems essential, right? Oh, there should be a way for a user to log in and update their payment details. There should be a way for users to log in and And obviously all that stuff came later, but when it was just me doing this, you know, a few hours a week I didn't I didn't even build that that you know, that's not like it's like hey I've not got limited time to spend on this. Let's spend it all on The reason that people are coming to use this right that no one uses a product specifically because there's a great dashboard, right? It's something that that users expect but those initial users, you know The product was solving such a pain point for them They didn't really care that that wasn't there right and they were early adopters as well they were happy to shoot me an email and just I could run a database query and email them results and I think it continued that way for probably almost a year maybe even longer and it got to the point where it's like okay I'm getting five emails a day for people wanting to update card details or wanting to know their request volumes at that point yeah it's bite the bullet and build out something really simple where people can see it but for the longest time I avoided basically anything that wasn't kind of essential to I guess the core sort of value proposition that's really easy really easy way to get geolocation data and make sure that it's really reliable kind of fast and not worry about all the other things that you kind of expect in products but they're not going to differentiate you from from anything else so [0:10:39] Noah Labhart: Then from that point you start to progress the product and mature it and execute on building new things. How did you, how did you go about building your roadmap and figuring out, okay, this is the next most important thing to build? It's [0:10:55] Ben Dowling: a great I guess it's evolved and still evolving. I think in the very early days, there was just so much that obviously needed to get done, right? It's like, hey, you kind of, there's this thing that people are using, people are paying for it, and people are kind of putting up with a half-baked product, right? They're saying, hey, this is really useful, but hey, you know, I kind of really need this data field as well. Can you build it? Or hey, you know, I need it at higher volumes or, you know, there's infrastructure issues where it's like, oh, you know, we're going to have trouble scaling past the next set of users or whatever. they're just, you know, clearly there's just a big backlog of stuff that absolutely must get done. I think once you're past that, then you've got lots of different sort of paths you could take in terms of what to build, right? There's no obvious thing that needs building. There's no kind of priority one thing that just has to get built. And there's, you know, probably three or four different things that we're all hearing from different users could be useful to them. And, you know, they would be either completely different data sets. They would be improving the quality of the data sets we've got. They could be, you know, completely different features. the way that we sort of attacked it was, you know, what are we getting the most sort of requests for? And then how useful do we think that would be to other people? And also, I guess, how well do we think we can do a good job of that? And, you know, where does it fit into everything we want to get done? And so there are some things that we said, well, hey, this doesn't fit in with what we're doing. Your people would say, hey, we're using your data in this way. We'd really, you know, Can you build a great UI that shows me some stuff? And hey, that's not my skill set. That's not our skill set, right? We're really great at building an API. So if you're wanting a really fancy UI on top of this or a way to kind of integrate with your product, that just doesn't make sense. That might be useful to a bunch of our users, but that's not really where our skill set is. And it makes sense for our customers to do that or someone else to do that and build on top of our API. Then the things within the API, there might be different data sets. So people might say, hey, I'm interested in, you know, you're developing your IP to company data interested in, um, you know, carrier detection. And so for those we sort of looked at it and said, well, how, how, how good a job do we think we could do at this? You know, if we think we could do an okay job, um, it might help this customer. Um, but if we can't do a really good job, you, is this worth us sort of investing our time and effort in? And so a lot of that was sort of prototyping and figuring things out. But the areas we sort of really doubled down on were areas where we're kind of getting feedback from customers that, hey, there's not really a good solution out there. Um, you know, we thought we had some great data internally, so be able to build some really good data sets out around it and then focus on areas where we thought we could, you know, really launch something that was, you know, we had a really good shot at building a really kind of quality data set around it that would be useful to customers. So a lot of it, I guess, was led by sort of customer feedback, right? Um, and people saying, hey, we need this. Um, we want it, and us then kind of going in turn and saying, well, how good a job do we think we can do of it? And if we do a good job, let's, let's prioritize that, because, you know, it makes this, this customer we've already got happy and it would likely find [0:13:46] Noah Labhart: That makes sense, and that's probably why your customers are happy is and the product has progressed so well because you're, you're giving them what they're asking for. So let's switch to team so how did you go about building your team and what did you look for in those people to indicate that they were the winning horses to join you [0:14:04] Ben Dowling: That's another thing that's really evolved, I guess. Initially, I was very happy to be doing it sort of by myself as a side project and you had no, uh, you know, we're a bootstrap business, so obviously what happens with a lot of venture-backed business or whatever, they raise a bunch of money and then like, hey, let's build out a team. With IPinfo, that never sort of happened. And it started with me, you know, very part-time on it, doing it a few hours a week to, you know, demanding more and more of my time and then getting to a point where, you know, there just wasn't enough hours in the day for me to be doing this by myself. And then there were areas that I needed help on that either weren't my skill set or things I didn't have time for. And so that happened pretty organically. You know, it got to a point where, say with customer support, that we're just getting more and more support requests and the same ones over and over again. And so then I initially went and found some people on Upwork to help with specific things. Oh, hey, can you help do some customer support requests? And it just worked really well. With the customer support requests coming in, I was short on time. I would sometimes get frustrated with the requests, right? Like, hey, your documentation sucks. to not take that personally and be like, what's wrong with our documentation? You know, um, whereas someone that, you know, you're hiring to work on support, they can be like, oh, thanks for the feedback, that's great feedback. You know, what would you like us to, uh, to change? Uh, so you're being that, that little more removed from it, they can kind of give a much better, do a much better job of support. Um, and so gradually outsource things like that, right? And so it'd be a part-time person helping with support. Uh, and then it's like, well, hey, you know, our design really sucks, right? Let's get some, some part-time help with design, and then on the engineering side sort of bring in specialists So we would have a database query that would maybe take too long to run. And so bringing a database specialist, paid per hour that could come in, tune some database queries, speed up performance. And so for a while then it was sort of me working on it with a bunch of contractors working on specific tasks. And that sort of scaled for a while. But I think the big shift was then bringing people on full time, right? who could kind of really give all their attention and focus to the project and move things forward. And for that, a lot of people that we ended up bringing onto the team started part-time. And so some of these sort of part-time people that help with custom support were just really, really great and really strong and doing a great job and coming up with ideas and wanting to get more involved. And so a lot of the initial full-time team were people that had started on those projects and just done a really incredible job. and it was great to bring them on full-time. And then as we've grown as a bigger team, now a lot of our recruiting is online. The whole world is remote kind of first now with COVID and with lockdowns and everything, but we've been that from the start. So that was, I guess, when we were bringing on full-time people a couple of years ago, that was a compelling reason to join us. It's like, hey, we're remote, we're global. And so you were able to find some really great people and work on IPinfo. And we've got people around the world in Russia, Australia, Canada, people around the globe. And so that's been a fun way to kind of meet a bunch of people and get a bunch of people all working on the project together. [0:17:21] Noah Labhart: Well, let's flip to scalability then. So did you build this to scale efficiently in that first MVP or first prototype, or are you fighting this as you grow? [0:17:31] Ben Dowling: We were pretty scalable to start with. So we've gone through some big shifts. In general, it was always designed to scale. And like I say, initially, the API was, I think, within the first month or so, we're getting sort of millions of requests a day. And it was always built on fairly scalable infrastructure so that it could scale up. But there have been some big infrastructure shifts as we've changed. Some of the things were always designed up front. So our rate limiting was sort of always asynchronous. We've always assumed, hey, you know, if you're eliminating points of failure. So, hey, if our rate limiting infrastructure went down or, hey, we fail open so people can make more requests than they maybe should be allowed. But, you know, if that thing fails, our paying customers should have things work, right? We never want to fail closed so that, you know, it's much better to give away a few extra requests than you upset all our paying customers. And so all those kind of design considerations were intentional and designed up front. So that's definitely served us well. I think there have been a bunch of big shifts. I guess initially we maybe went too far in thinking about scalability. So one thing we thought of at the very beginning was, oh, hey, what if one provider goes down? Let's make sure we're on a bunch of different providers. And so I think the first version we had some servers on DigitalOcean and some on Linode and some somewhere else. And then we sort of round-robin with DNS across the different providers. But it turned out that was just sort of a headache, right, to manage and maintain all that. issue is it really, you know, what are the chances of, of, of these providers going down? Um, and sort of over-indexed on, well, hey, if DigitalOcean goes down, we'll still have some Linode servers, but it just kind of added a bunch of complexity and cost to us. And so then we eliminated that and we shifted over to, to AWS. Um, and we were using, I think it was, Elastic Beanstalk there for a while. Uh, and at that point we're like, hey, let's, let's make sure we're available in all these different regions all over the world so we've got low latency and thought that was really important. But then what happened was that added, again, a ton of cost and complexity and things. And we went out and asked some customers, how important is this really to you? And it turned out it wasn't actually that important. These things on paper, it's like, yeah, low latency anywhere in the globe is great. High availability in case an AWS region goes down is really great. But it was really slowing us down in terms of launching new features. It was adding a bunch of costs. And so then we finally switched over to Google Cloud. region, and that just simplified so many things. Um, we were worried initially, you know, we did some some, some research with some customers and asked how much they would care. Um, so we, we kind of treaded carefully, but once we, we shifted, we thought, you know, maybe it caused some issues or there might be some negative feedback, but it wasn't at all. Uh, you know, we had no one say, oh yeah, I noticed you, you had some servers in Australia and you don't anymore. It seemed to be a total non-issue. And so I think if anything, we sort of planned for scale, um, in a way that was, was sort of slowing progress and sort of had to shift back a bit to say, well, hey, we do want to be scalable. We do want to make sure we can kind of cope with growth, but not necessarily at the expense of being able to experiment and ship things quickly. And you pay a bunch of actual server costs for that. So we sort of, I guess, kind of scaled that back a little bit, if anything. [0:20:53] Noah Labhart: So as you step out on the balcony and you look across all that you've built with IP info, what are you most proud of? [0:21:00] Ben Dowling: I guess that the whole package is the bit I'm really proud of, right? I guess that the company itself, right? The team we've put together, the happy customers we've got, you know, I guess that the whole company is the bit I'm really proud of. And I guess as well, that in some ways felt like the bit we weren't necessarily focused on, right? The bit I was focused on always has been, hey, the product, right? Let's build this great API. Let's build this great data. And, you know, let's make our customers happy. But what we've kind of built to support that's this amazing team, an amazing set of products, amazing roadmap. And I guess that's the sort of the engine that continues to build the product and attract new customers and new people to join our team. So that's definitely the thing that I'm most proud of is the company and the team we've got. [0:21:47] Noah Labhart: Let's flip the script a little bit. Tell me about a mistake you made and how you and your team responded to it. [0:21:54] Ben Dowling: One of the main mistakes we made, I think, was not capturing email addresses of free users early on. IPinfo has a freemium offering. We have a free API that allows for anybody to make up to a thousand requests a day completely for free without even registering for an API token. And the thinking behind that was, like I say, when I launched the very first version, hey, this will be used by hobbyists and developers to make it really easy to use. You don't even need to sign up. You can just get going, call it through a command line or a simple bit of code and everything will work great. And I think that was true. And that was part of our initial success was that it was so easy to use. We made it so that you couldn't even sign up if you're on the free plan. The only way you could kind of give us an email address is if you were going to be a paying customer. And then obviously that ended up being something that we didn't fix for a couple of years. And we suddenly got to this point where we said, hey, we think we have hundreds of thousands of free users using the free plan. But at that point, I think we had hundreds of paying users. But as we're launching these sort of new features and new products, we had no way to reach out to all these free users that loved the free offering. but no way to even kind of communicate, hey, here's all the new cool stuff we're doing, or, you know, if they hit a rate limit, you know, no way to get in touch and be like, hey, by the way, do you know you're approaching a rate limit and, you know, things may break if you don't, don't make some adjustments. And so, yeah, it kind of felt very late that we even gave an option for free users to sign up, create accounts, and obviously give us a way to tell them about new offerings, but also tell them, hey, you know, you may be approaching a rate limit or, you know, stay in touch with them and that sort at the time felt as a real facepalm moment where it's like, wow, we've got these hundreds of thousands of free users that we've never even given the ability for them to get in touch with us. How have we missed this for so long? And you quickly corrected that. So now you can sign up for free plans. The unauthenticated plan is still completely available. You can make a thousand free requests a day without signing up. But we've got this free offering where you can sign up, create an account, manage your account, all that good stuff without having to be a paid user. [0:23:56] Noah Labhart: With IPinfo, what does the future look like for the product and for your team? [0:24:03] Ben Dowling: Yes, I think the two big areas we continue to focus on and guide our roadmap at this point are improving our data. We've got really great high quality geolocation data in all different data sets, but a huge area of focus is to continue to improve those, improve the coverage of our VPN data sets, improve the accuracy of our geolocation. And so that's a huge focus. The other focus is goes right back to the beginning, right? Making it really easy to get data. Initially, that was a free API. And now the focus on that is product integrations, SDKs. You're making your data available in data marketplaces and you're making sure that if there's a developer or someone that needs our data in a certain place within a certain product or a certain database or whatever, an API isn't always the best way to do that. So you're trying to integrate into products and services we're the easiest data to get hold of in really easy ways. And that generally guides our roadmap, right? It's like make our data better and make it more accessible. And so those are things that really drive it. And you're continuing to build out the team to kind of support those things. [0:25:09] Noah Labhart: Well, Ben, let's switch to you. Who influences the way that you work? You know, CEO, CTO, architect, really any person you look up to and why? [0:25:18] Ben Dowling: I look up to a bunch of different businesses. And so one that I really like is Automattic, and Matt Mullenweg that runs that and it's obviously a massively successful business built sort of around the open source WordPress. But what I really like about that is the way that they're a globally distributed team. They put out a lot of content about how they organize themselves, how they structure it, the fact that they're a fractal business. Matt's got a great podcast that interviews different people that run different sort of remote teams. I think I've learned a lot from that of how Automattic operates. I think that's really inspirational. [0:25:56] Noah Labhart: Well, we talked about a mistake, but a little bit different spin. If you could go back to the beginning, what would you do differently? Or where would you consider taking a different approach? [0:26:06] Ben Dowling: One of those things is the mistake, right? Making sure that we would capture those emails, is one obvious thing. I think what I would do differently from the start is I think I'd be more intentional about building the team. Like I say, I was sort of focused on, hey, here's a great product. Let's focus on the product. that great and build out the company and the organization to support that over time. I think going back, if I was to start again, it would be like, well, hey, this clearly needs a team. Let's be more intentional about kind of getting ahead of that and building that up front. [0:26:40] Noah Labhart: Well, last question, Ben. So you're getting on a plane and you're sitting next to a young entrepreneur who's built the next big thing. They're jazzed about it. They can't wait to show it off to the world. Can't wait to show it off to you right there on the plane. advice do you give that person having gone down this road a bit [0:26:54] Ben Dowling: i think one thing i would probably I think one thing I would probably, I definitely wouldn't want to kill their enthusiasm. I think that would be, you know, I'd love to be, give them positive feedback about what they're building. What I would say is it's really hard to know what's going to be successful in advance, right? I think, you know, that for me the, the success of IP info came as a huge surprise, right? Uh, you know, I launched it, it was this small thing for developers and suddenly got a lot of traction. In the past, I've launched many, many different side projects that I was sure were going to be successful. And some of them had moderate success. Many of them went absolutely nowhere. And so I guess I would say that almost nobody can know in advance if something is going to be really successful or not. And so I think that enthusiasm is amazing. But I guess I would say if it doesn't work out, don't feel dejected. Keep going. And listen to the customers. And keep going. that keep going and something likely will. And it's really hard to know what that's going to be, right? But yeah, I would try and be really positive and kind of keep up that enthusiasm. I think that's actually the key thing, right? Whether this project works out or not, if you've got that enthusiasm, you can keep shipping and launch something eventually that hits a nerve. [0:28:05] Noah Labhart: That's great advice. Well, Ben, thank you for being on the show today. Thank you for telling the creation story of IPinfo. [0:28:11] Ben Dowling: Thanks, Noah. I really appreciate it. And [0:28:14] Noah Labhart: this concludes another chapter of Code Story. Code Story is hosted and produced by Noah Labhart. Be sure to subscribe on Apple Podcasts, Spotify, or the podcasting app of your choice. Support the show on patreon.com slash Code Story for just five to ten bucks a month. And when you get a chance, leave us a review. Both things help us out tremendously. And thanks again for listening.