sgcOpenAPI

One bundled product for Delphi and C++ Builder: OpenAPI 3.x parser, native Pascal SDK generator, OpenAPI server component, and 1,195+ pre-built cloud SDKs — all on a single Single / Team / Site licence.

OpenAPI 3.x parser & generator
OpenAPI server component
1,195+ pre-built cloud SDKs
Delphi 7 – RAD Studio 13

What It Does

Turn any OpenAPI specification into production-ready Pascal code with full type safety and IntelliSense support.

From Specification to Code in Seconds

Import any OpenAPI or Swagger specification and let sgcOpenAPI generate clean, idiomatic Object Pascal interfaces ready for your project.

  • Import OpenAPI 3.x specifications (JSON and YAML)
  • Swagger 1.x and 2.x backward compatibility
  • Generates native Object Pascal interfaces and classes
  • Type-safe API calls with full IntelliSense support
  • Automatic documentation generation (PDF and CHM)

Pre-Built SDKs for Major Cloud Platforms

Get started instantly with ready-to-use Pascal SDKs for the largest cloud providers. All SDKs are regularly updated to match the latest API specifications.

  • Amazon AWS — 280+ REST services
  • Google Cloud — 250+ services
  • Microsoft Azure — 650+ services
  • Microsoft Graph API — 15+ services
AWS 280+ Google 250+ Azure 650+ Graph 15+ 1,195+ SDKs Ready to Use

Publish and Serve Your Own OpenAPI

The bundled OpenAPI server component lets a Delphi or C++ Builder backend publish its endpoints as a valid OpenAPI 3.x document and serve them from a single component — same model used by the parser, integrated with the sgcWebSockets HTTP server.

  • Publish a live openapi.json / openapi.yaml from your endpoints
  • Build server-side endpoints directly from an OpenAPI spec
  • Request and response validation against the spec
  • Pluggable authentication (API key, OAuth2, JWT, Basic)
  • More about the server component →

How It Works

Three simple steps to go from an API specification to fully integrated Pascal code.

Step 1

Import

Load your OpenAPI 3.x specification file in JSON or YAML format. Swagger 1.x and 2.x specifications are automatically detected and converted to the OpenAPI 3.x schema.

Step 2

Generate

The parser analyzes endpoints, parameters, request/response models, and authentication schemes, then generates clean, idiomatic Pascal code with proper type mappings.

Step 3

Integrate

Drop the generated units into your Delphi project. Full type safety, IntelliSense support, and zero external dependencies. Start calling APIs immediately.

Broad Platform Support

Works with every major version of the Delphi and Pascal toolchain.

Delphi

Full support from Delphi 7 through RAD Studio 13. VCL and FireMonkey frameworks with design-time component registration.

C++ Builder

Native C++ Builder support with wrapper headers. Compatible with C++ Builder 2007 through C++ Builder 13.

Generated Code in Action

See how a generated Pascal SDK looks in practice — clean, type-safe, and ready to use.

Delphi
uses
  sgcOpenAPI_PetStore;  // Generated from petstore.yaml

procedure TForm1.btnGetPetClick(Sender: TObject);
var
  Client: TsgcOpenAPI_PetStoreClient;
  Pet: TsgcOpenAPI_Pet;
begin
  Client := TsgcOpenAPI_PetStoreClient.Create(nil);
  try
    Client.BaseURL := 'https://petstore.swagger.io/v2';
    Client.ApiKey  := 'your-api-key';

    // Type-safe API call with IntelliSense
    Pet := Client.GetPetById(42);
    try
      Memo1.Lines.Add('Name: '    + Pet.Name);
      Memo1.Lines.Add('Status: '  + Pet.Status);
      Memo1.Lines.Add('Category: ' + Pet.Category.Name);
    finally
      Pet.Free;
    end;
  finally
    Client.Free;
  end;
end;

procedure TForm1.btnListPetsClick(Sender: TObject);
var
  Client: TsgcOpenAPI_PetStoreClient;
  Pets: TsgcOpenAPI_PetList;
  i: Integer;
begin
  Client := TsgcOpenAPI_PetStoreClient.Create(nil);
  try
    Client.BaseURL := 'https://petstore.swagger.io/v2';

    // Strongly-typed list of Pet objects
    Pets := Client.FindPetsByStatus('available');
    try
      for i := 0 to Pets.Count - 1 do
        ListBox1.Items.Add(Pets[i].Name);
    finally
      Pets.Free;
    end;
  finally
    Client.Free;
  end;
end;

One Product, Three Tiers

Parser, code generator, server component and all 1,195+ pre-built SDKs are included in every tier. Choose by team size: Single (1 developer), Team (2 developers), or Site (unlimited developers).

Automate Your API Integration

Stop writing boilerplate HTTP code. Generate type-safe Pascal SDKs from any OpenAPI specification, or publish your own — in seconds.

Other Products by eSeGeCe

Pair sgcOpenAPI with our other Delphi, C++Builder and .NET component libraries.

sgcWebSockets

Enterprise WebSocket, HTTP/2/3, MQTT, AMQP, WebRTC, and AI/LLM components for Delphi, C++Builder, and .NET. 30+ API integrations included.

Combine generated REST clients with WebSocket and MQTT streams for end-to-end real-time integrations.

Learn more →

sgcSign

Digital signature components for PDF, XAdES, CAdES, and PAdES. Sign and verify documents with smart cards, HSMs, or software keys.

Sign REST API requests and responses generated through sgcOpenAPI for tamper-evident integrations.

Learn more →

sgcBiometrics

Native Windows Hello, fingerprint, and Windows Biometric Framework components for Delphi and C++Builder.

Lock down API access with Windows Hello before invoking your generated SDKs.

Learn more →

sgcIndy

Updated Indy TCP/IP components with modern TLS, IPv6, and HTTP/2 support for Delphi 7 through 13.

Underlying TCP/IP layer with modern TLS that pairs cleanly with sgcOpenAPI clients.

Learn more →