---
title: "Compare food prices between two countries"
method: GET
path: "/api/vanbasket/compare"
tags: ["VanBasket"]
---

# Compare food prices between two countries

`GET /api/vanbasket/compare`

Compares VanBasket food price index values between two countries.

## Query parameters

- `source` string
- `from` string, required
- `to` string, required

## Response `200`

VanBasket comparison

- VanBasketCompareResponse
  - `success` boolean
  - `data` object
  - `_attribution` Attribution
    - `data_source` string
    - `license` string
    - `attribution_url` string, uri
    - `attribution_html` string
    - `your_source` string

## Other responses

- `404` — Resource not found
- `422` — Validation error

---

[API](https://skmtc.dev/openvan/apis/openvan-camp-ai-public-api.md) · [All operations](https://skmtc.dev/openvan/apis/openvan-camp-ai-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openvan/openvan-camp-ai-public-api/revisions/3f278a32bbb0/schema)
