I've noticed that the bulk of my time as a software developer these days is spent reverse engineering third-party REST APIs that don't already have a publicly available API client or publicly available API specification (e.g. OpenAPI).<p>Why don't more companies publish either a specification for their API or an API client on a website like GitHub?<p>For small shops with a few engineers, this makes sense, but for companies that we're paying > $100,000/yr. for access to their APIs, it seems like they should also provide an API client for interacting with it - or at the very least, API documentation.<p>What are the main barriers preventing more companies from releasing either a specification for their APIs or an API client?<p>Are APIs easier to reverse engineer these days, and therefore it's not really necessary to release a client or specification?<p>On the other hand, maybe writing a full-fledged API client is an anti-pattern, since callers could simply implement the functionality that they need rather than implementing all of the functionality that they think that they MIGHT need while still reverse engineering the API?
It's just a ton of work to make a good SDK in every major language.<p>Something I haven't seen mentioned much on this thread is that the ~top feature people want from SDKs at this point is good static types – so you can get autocomplete, docs-on-hover, etc in your editor. Way better than switching back and forth to the docs and crossing your fingers.<p>Doing that well means copying every little change into the SDKs (forget about it) or using a generator.<p>The open-source codegen tools (ie, <a href="https://openapi-generator.tech/" rel="nofollow noreferrer">https://openapi-generator.tech/</a>) are pretty crappy, so you need to either build the SDK yourself fully, or spend a bunch of time wrestling with the generator get it halfway-decent, and then you're still letting your customers/developers down.<p>Disclaimer, I'm starting a company to make it easy for anyone to ship a great SDK with their REST API: <a href="https://stainlessapi.com" rel="nofollow noreferrer">https://stainlessapi.com</a>
I presume you're talking about REST apis? If that's the case then virtually every language has a client built in. That's part of the advantage of using HTTP from the API vendor's point of view.<p>As far as publishing a spec, I don't know but I'm guessing part of it is a reluctance to commit to anything (which does kind of defeat the purpose of a public API).
> Why don't more companies publish either a specification for their API or an API client on a website like GitHub?<p>Being API-first and caring about the developer experience (DX) is still a new phenomenon. Companies like Twilio and Stripe differentiated in DX. Now there's a whole category of API-first startups like seam.co (API for IoT devices), merge.dev (unified API for 180+ integrations), and stytch.com (API for authentication) who publish API clients in major languages like Node.js, Python, Java, and Go. They also publish their OpenAPI specs in case you use a long-tail language and want to generate a client yourself.<p>IMO, in the next 5 years, it'll become the norm to offer clients if you have a public REST API.
Priorities. And MBAs.<p>> for companies that we're paying > $100,000/yr. for access to their APIs<p>Case in point; they didn't need to provide any of that for you to pay. The value is coming from elsewhere, and they didn't think the extra upfront and ongoing cost of providing a client or docs is worth it.
I can't imagine how or why a company would implement libraries or tools to help their clients consume their data. The API is the interface. Every client is doing something different with it.<p>I do agree that many companies can design and document their APIs better.