Crework Logo
Login
Free Resources/APIs for Product Managers - The Non-Technical PM's Guide

APIs for Product Managers - The Non-Technical PM's Guide

A one stop guide to learn everything about APIs

Ishant Juyal

By Ishant Juyal

June 25, 2024

linkedintwitter

“Yaar I am really struggling with working with developers. I am not able to visualise how this stuff works. Is tech important for becoming an APM?”

I got this message a few days ago from a friend of mine who is a designer but trying to shift to APM role in her organisation. She is a great designer but doesn't come from a tech background, hence is struggling with how to think about products from a tech perspective.

A lot of people from non-tech and non-engineering background shift to product roles frequently. I think a lot of them face the same issue. One such topic is API, which to be honest, people with tech knowledge might not even understand fully if they are not an engineer. So, I decided to write this guide for non-technical product managers.

What is an API?

Imagine you have a remote-controlled car that you really enjoy playing with. This car can do all sorts of cool things like moving forward, backward, left, and right. But to make the car do what you want, you need to use the remote controller.

The remote controller has different buttons that send specific instructions or commands to the car. Each button on the remote is like a special request or message that tells the car what to do.

For example, when you press the "forward" button on the remote, it sends a message or command to the car that says "go forward." The car then receives this message and knows to start moving forward.

An API (Application Programming Interface) is like that remote controller, but for computers, phones, and apps instead of a toy car. APIs allow different software programs or applications to communicate with each other by sending instructions or requests, just like the buttons on the remote controller.

So if you have a weather app on your phone that needs to get the latest temperature information, it can use an API to send a request or message to a weather service's computer. This API request is like pressing a button on the remote that says "give me the current temperature."

The weather service then receives this API request, processes it, and sends back the temperature data to the weather app, just like the toy car moving forward when you press the "forward" button.

An Application Programming Interface, or API, is in its simplest sense a technology that connects two systems. They are the most important piece for seamless integration and functionality across different software applications.

Why are APIs important for product managers?

As a product manager, you need to be aware of the technical solution your team builds or utilizes along with their advantages and limitations. This knowledge helps you make better product decisions.

But other than all these benefits, APIs open up a lot of business opportunities too which can be leveraged by the company to meet business goals and expand the market share.

To get the full benefits of these opportunities businesses typically utilise APIs in 2 ways:

1. Integrating their products with third party APIs

Connecting with other company's APIs allows you and your product to fast track adding features, functionality and tools that would otherwise take you and your team years to build.

Also, the dev effort is low for the business impact / value provided if you use an API instead of building things from scratch.

By integrating with analytics platforms, CRM systems, or other data sources, product managers can gain valuable insights into user behavior, product performance, and market trends. This data-driven approach helps prioritize features, allocate resources effectively, and optimize the product roadmap.

Most products today utilise integrations with APIs in one way or another. Here's a few examples of open APIs that are widely used by millions of websites around the world today:

  1. Google Maps API
  2. Stripe API
  3. YouTube API

APIs also offer flexibility, allowing product managers to adapt and evolve their products over time. They can modify the underlying infrastructure, technology stack, or features without disrupting existing integrations.

This allows product managers to act fast on user feedback, or emerging trends, hence keeping their products competitive and relevant.

But it's not the perfect solution. There are some downsides to using third party APIs for the core of your product which need to be considered:

  1. Dependencies: if your entire product is underpinned by third party APIs you become over-reliant on external APIs which creates dependencies
  2. Risk: what happens when that new startup you've been using to process your mobile payments goes bust? You go bust with it. When choosing partners with APIs to use, pick ones you think will be around in 5 years time.
  3. Costs: costs increase as third parties can charge on a per request basis. Twilio charges for every single text message sent, for example. A great business model for them, not so great for you if it's not factored into your growth models.

Developing and Offering Your Own APIs to Customers

Another strategy for companies is to develop and offer their own APIs as a service to other businesses.

By doing this, product managers can build ecosystems around their products, enabling developers to enhance functionality, create integrations, or develop complementary services. A notable example is the OpenAI API.

For some businesses, APIs are central to their value proposition; the company's value to customers is delivered primarily through APIs. Twilio is an example of this, allowing companies to send text messages to customers based on user actions.

However, if you're considering offering your own APIs and they are not a core part of your business, but rather a potential supplementary opportunity, you need to carefully evaluate this decision. Here's what you should consider:

  1. What will be the business impact if we create our own APIs?
  2. How much additional revenue or how many more customers can we expect?
  3. Will having an external API help us achieve our goals? Provide specific projections and support them with data.
  4. Is your company prepared for the additional costs and complexities of managing an external API infrastructure?
  5. If we proceed, how will we measure and demonstrate the API's impact on our business?

How does an API work?

Let's look at some real world examples to see where and how APIs are used and why they are considered so useful.

Let's take Swiggy for an example

https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fef183c4f-67fd-4370-b7da-659be99b5446_724x1118.png

Swiggy uses mapping and location services to determine the user's location, display nearby restaurants, and provide delivery estimates.

Have you ever thought, how does Swiggy know where the driver is at every point of time and how do they know the distance between that point and your location?

Obviously they are using maps, to be specific, they are using a service like Google Maps. But they don't own Google Maps, so how are they using it?

They are using Google Map's API to access information. Services like Google Maps APIs allow Swiggy to retrieve map data, geocode addresses, and calculate routes and distances.

  1. When you give the location access to Swiggy, it determines your exact location.
  2. When the delivery partner is out with your order, they also determine the exact location of that delivery partner using GPS.
  3. Now, as they have the information of both the points they have to find the distance between, they make an API call (send request to Google Map) with both these location and ask for the distance and time between these two location in reponse.
  4. Google Maps sends a response with the required information and Swiggy uses that response to show you the time in which your order will be delivered based on the delivery partner's location.

https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faad2d814-d9a3-417a-befd-bc887c44700b_2610x946.png

  1. Request and Response:
    • APIs operate on a request-response model. One application or system (the client, your web browser) sends a request to another application or system (the server, the backend) through the API.
    • The request typically includes information about what data or functionality is needed, and any parameters or data required for the request.
    • Here's an example: https://substackcdn.com/image/fetch/w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F934acfb5-b1ef-47e3-ac58-1d1c5ccfd956_960x540.png
  2. REST
    1. REST is a set of principles which need to be followed in order to classify your API as a RESTful API. This uniformity makes it easier for developers to work with multiple different APIs.
    2. Think of REST as a set of members club rules. The owner of the club is saying, 'hey guys, look, if you want to be part of this REST club, you're going to have to follow a certain set of rules.'
    3. REST APIs all use the same HTTP Methods:
      1. POST
      2. GET
      3. PUT
      4. PATCH
      5. DELETE
  3. HTTP Methods
    1. When working with APIs, you interact with them using HTTP methods, which are like commands or actions that you can perform on the data. These methods are similar to how you would give instructions or commands to your pet, but in the context of APIs.
    2. The most commonly used HTTP methods are:
      1. GET: This method is used to retrieve or read data from the API. It's like telling your pet to "fetch" something for you. You're not creating, modifying, or deleting any data; you're simply requesting to receive it.
      2. POST: This method is used to create or submit new data to the API. It's like teaching your pet a new trick or behaviour. You're adding something new to the system.
      3. PUT: This method is used to update or replace an existing resource entirely with new data.
      4. PATCH: This method is similar to PUT, but it's used to update or modify only a part of an existing resource, rather than replacing it entirely.
      5. DELETE: This method is used to remove or delete a resource from the API.
    3. These HTTP methods are often referred to as verbs, as they describe the action being performed on the data.
  4. API Endpoints
    1. An API endpoint is a unique URL or address that represents a specific resource or functionality provided by an API.
    2. It acts as an entry point for clients (applications, websites, or other systems) to interact with the API and access the resources or services it offers.
    3. Think of an API as a complex system with different rooms or sections, each serving a specific purpose. The API endpoints are like doors or entrances to those rooms. Each endpoint has a unique address or URL that tells the API where to look and what to do.
  5. API Calls
    1. The requests to APIs are often referred to as API calls.
    2. API calls involve hitting an endpoint with the expectation that the API will respond with the information you need.
    3. For example, if you are using Spotify API, you call the albums endpoint with a specific album ID and Spotify responds with information about that album.
  6. Payloads
    1. Payload is a fancy word for the response you get from an API.
    2. It refers specifically to the meaningful information in a given set of data. Not everything in an APIs response is something we care about, so the term payload is used to distinguish between the stuff we're interested in and the stuff we're not.
    3. E.g. 'If you check the payload from the Spotify API you can see the length of the track is 3 minutes'
  7. Response codes
    1. Every time you get a response from an API, it comes with its own response code, which is simply a number with a meaning attached to it.
    2. HTTP response code 200 means success, which means everything is fine.
    3. Most famous error code is 404. It means the server can't map the request to a resource.
  8. API Documentation
    1. API documentation is a set of instructions and explanations that describe how to interact with and use an API.
    2. It serves as a guide for developers, providing them with the necessary information to understand the capabilities, functionalities, and rules of the API.
  9. Authentication
    1. You must be familiar with authenticating yourself when logging into your email or any other online account using a username and password, you need to do something similar for accessing APIs.
    2. If you have an external facing API which needs to be accessed by clients, they will typically be issued with a security token and credentials which they will need to use to access your API.
    3. Authentication usually includes:
      1. Username
      2. Password
      3. Access token

Where do we go from here?

This brief introduction aims to provide an overview of APIs and how they can be relevant in your role as a Product Manager when engaging with stakeholders.

However, this is just the tip of the iceberg. Building or integrating APIs involves a multitude of complexities that go beyond the fundamentals covered here.

If you're genuinely interested in delving deeper into the world of APIs, there is a wealth of knowledge waiting to be uncovered. This introductory overview has merely scratched the surface, and there is a vast expanse of information and practical skills to be acquired.

Here are some of the resources if you want to dive deeper:

  1. https://www.youtube.com/watch?v=YCcAE2SCQ6k
  2. https://www.youtube.com/watch?v=RsQ1tFLwldY

Transition to a Product role in 12 week!

Gain practical skills, connect with industry leaders, and receive personalised mentorship to accelerate your career.

Enroll Now