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.tgztypescriptillustrative
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.gzpythonillustrative
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())