sgcOpenAPI Parser

Automatically generate native Pascal SDKs from OpenAPI 3.x specifications. Import, parse, and generate type-safe API clients — directly from your Delphi IDE.

OpenAPI 3.x & Swagger 1.x/2.x
1,195+ Pre-Built Cloud SDKs
Delphi 7 – RAD Studio 13
Zero External Dependencies

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

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;

Automate Your API Integration

Stop writing boilerplate HTTP code. Generate type-safe Pascal SDKs from any OpenAPI specification in seconds.