Skip to documentation content
HintadataDocs

SDK

Generated packages across 22 language targets, with publication and verification status shown per package.

In this guide
  1. 1Build a complete integration
  2. 2Install generated clients
  3. 3TypeScript
  4. 4Python
In this guide
  1. 1Build a complete integration
  2. 2Install generated clients
  3. 3TypeScript
  4. 4Python

Build a complete integration

Install generated clients

TypeScript and Python source distributions are built from this OpenAPI contract and downloadable below. These download commands do not require a public npm or PyPI release. Other generated languages are listed separately with their actual generation status.

TypeScript

bashillustrative
Example trust: illustrativeShows the shape or idea; do not use it unchanged in production.
npm install https://hintadata.fi/sdk/price-compare-typescript-3.1.0.tgz
typescriptillustrative
Example trust: illustrativeShows the shape or idea; do not use it unchanged in production.
import { Configuration, CatalogApi } from '@pricecompare/sdk';
const api = new CatalogApi(new Configuration({
  basePath: 'https://hintadata.fi/v1',
  accessToken: process.env.HINTADATA_API_KEY
}));
const result = await api.searchProducts({ q: 'sony', limit: 10 });
console.log(result.items);

Python

bashillustrative
Example trust: illustrativeShows the shape or idea; do not use it unchanged in production.
uv pip install https://hintadata.fi/sdk/price_compare-3.1.0.tar.gz
pythonillustrative
Example trust: illustrativeShows the shape or idea; do not use it unchanged in production.
import asyncio
import os
import price_compare
from price_compare.api.catalog_api import CatalogApi

async def main():
    config = price_compare.Configuration(host='https://hintadata.fi/v1')
    config.access_token = os.environ['HINTADATA_API_KEY']
    async with price_compare.ApiClient(config) as client:
        result = await CatalogApi(client).search_products(q='sony', limit=10)
        print(result.items)

asyncio.run(main())
Was this page helpful?