Skip to content

How to find a public API for a specific data need

By William · · updated · 7 min read

How to find a public API for a specific data need

The order of work is what saves you money. Write the data need down as a spec, search directories and then the provider's own documentation, and only commit after you have read the authentication, rate-limit and retention clauses and made one real test call in a sandbox. Documentation checks are free; integration work is not. Run them in that order and you will reject most candidates before you write a line of code.

Key takeaways

  • Write the data need down as a spec before you search anything.
  • Search directories, marketplaces and the provider's own docs in that order.
  • Read the documentation for the five things that decide feasibility.
  • Make one real call in a sandbox and compare it to your spec.
  • Score the shortlist and keep an exit plan.

Write the data need down as a spec before you search anything

A search box rewards vague words. A spec does not. Before you type anything into a directory, open a document and write down:

  • The exact fields you must receive, each with one example value. If you cannot name a field, you cannot test whether an API returns it, and you will find out during integration instead of during research.
  • How fresh the data must be. This is a property of the data type, not a universal rule. A price feed and a set of historical weather records have completely different definitions of stale. Write yours down: "no older than X" for this specific field, and why.
  • How often you will call. Once a day and once a second lead to different providers, different auth schemes and different prices.
  • Volume: calls per day and records per call, at launch and at a realistic busy month.
  • Geography: which countries the data must cover, listed country by country, so you can check each one against the provider's stated coverage instead of assuming one region's answer holds for the rest.
  • A monthly budget ceiling and a maximum acceptable setup time, set before you look. A polished directory entry is very good at talking people past both.

Keep it to one page. This page is the checklist you score every candidate against later, and it is the only thing standing between you and five sign-ups you did not need.

Search directories, marketplaces and the provider's own docs in that order

Start wide, then narrow to evidence.

Illustration: Search directories, marketplaces and the provider's own docs in that order
  1. Directories and marketplaces. Look at API directories, and at the marketplace listings for software you already run — for example the Xero app marketplace or a shop platform's app store. These tell you who has already published an integration and roughly what it covers.
  2. The provider's own documentation site. A directory entry is a pointer. The docs are the evidence. Never treat them as the same thing.
  3. Search operators on the docs domain. A query like site:docs.provider.com invoice_number tells you in seconds whether the field exists at all, and often shows you the response example before you sign up for anything.

Treat a directory listing that does not link to live documentation as a lead, not a candidate. It goes on a list to check later, not into your shortlist.

To be plain about the limits of this guide: no directory, marketplace or provider was tested for it. What follows is a method, not a review of any named API.

Read the documentation for the five things that decide feasibility

Five checks, in this order, will kill or confirm a candidate faster than anything else:

  • Authentication. Which scheme, whether keys are per-user or per-application, and how tokens are refreshed. Ask which one it is, because it changes your design: with per-user keys the work lands in your onboarding flow, with per-application keys you are the one holding a single secret for everyone.
  • Endpoints and field names. Confirm your spec fields appear in a response example, not only in prose. Prose describes intent; examples describe what the API actually returns.
  • Rate limits and quotas. Find the number in the docs and note what happens when you exceed it — a hard error, a queue, or a silent throttle. A silent throttle is the worst of the three (unverified).
  • Error codes and changelog. A maintained changelog is the cheapest available signal that the API is alive and that someone is watching it.
  • A sandbox or test key. If there is no way to call the API without production credentials, your first real test happens against live data, which is a bad place to discover a wrong field type.

Check retention, encryption and privacy clauses before you build

This section decides what you are allowed to build on top of the data.

Find the stated retention window for anything you will store or receive. Read the privacy and security pages as well as the API reference, and where the docs state a limit, treat it as the boundary of what you may cache and for how long.

Apple's Find My documentation is a useful worked example of the wording to look for. It states that location data is encrypted on Apple's servers and retained for only 24 hours [1]. The same documentation says some devices can send their location for up to 24 hours after being switched off or running low on battery [1] — which is exactly why the retention clause and the device-behaviour clause have to be read together. One tells you how long the provider keeps the data; the other tells you how old the data can be when it arrives.

Scale claims belong in the same check. The Find My network is described as over a billion iPhone, iPad and Mac devices worldwide [1]. A number like that is a claim to verify against your own need, not a reason to skip the retention and jurisdiction questions.

If the documentation does not state retention, encryption and jurisdiction, ask the provider in writing before you commit. An answer you have in an email is worth more than a paragraph you half-remember from a marketing page.

Make one real call in a sandbox and compare it to your spec

Now spend the smallest possible amount of effort on a live request.

  • Send the minimum request that should return your fields, and check that every field in your spec comes back with the type you expected. A date as a string and a date as a timestamp are different problems later.
  • Time the response and note the payload size. Both shape your caching design and your cost per record.
  • Break it on purpose — a bad key, a missing parameter — and read the error message as a user would. If you cannot tell what went wrong, neither can your customers.
  • Write down what the sandbox did not cover: live data volume, production rate limits, and anything the provider only enables on a paid plan.

Read the price and the terms, including resale

  • Map the free tier to your spec volume. A free tier you will exceed in the first busy week is a paid tier with a delay on the invoice.
  • Find the overage price per call or per record, and multiply it by your worst realistic month from the spec, not by your average.
  • Read the terms of service for a no-resale or no-redistribution clause if you plan to sell the output or wrap the API inside your own product. Whether resale is allowed is a per-contract question; check the specific terms rather than assuming either way.
  • Check attribution and branding requirements on anything you display publicly.
  • Note the notice period for price and terms changes. That notice period is your exit window, and it is the number that decides how much switching risk you are carrying.

Score the shortlist and keep an exit plan

Put the surviving candidates in a table with one row each and one column per must-have from your spec: fields, freshness, rate limit, price at your volume, retention terms, sandbox quality. Score them, then pick the one that passes every must-have — not the one with the best landing page.

Then write down how you would leave. Which layer of your code holds the API calls, how much of your logic depends on that provider's field names, and how long a swap would realistically take. Keep the second-best candidate's documentation link in the project notes. Limits change, prices change, and the fallback you saved six months ago is the difference between a bad week and a rebuild.

Frequently asked questions

What should I write down before searching for an API?

Write down the exact fields you must receive, how fresh the data must be, how often you will call, volume, geography, a monthly budget ceiling and a maximum acceptable setup time.

What is the best order for searching for an API?

Start with directories and marketplaces, then check the provider's own documentation site, and use search operators on the docs domain to verify fields.

What five things should I check in the documentation?

Check authentication, endpoints and field names, rate limits and quotas, error codes and changelog, and whether a sandbox or test key is available.

Why should I make a real call in a sandbox?

To check that every field in your spec comes back with the expected type, time the response, note the payload size, and read error messages as a user would.

Sources

  1. iCloud – Find My – Apple (apple.com)

This article was drafted with AI assistance and checked before publication.

New guides by e-mail
Be told when a new guide is out.