MENU navbar-image

Introduction

This documentation aims to provide all the information you need to work with our API.

Authenticating requests

This API is not authenticated.

Authorization

Get Bearer token

Example request:
curl --request POST \
    "https://agrisupp.com/api/login" \
    --header "Content-Type: application/json" \
    --data "{
    \"email\": \"[email protected]\",
    \"password\": \"yourpassword\"
}"
const url = new URL(
    "https://agrisupp.com/api/login"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email": "[email protected]",
    "password": "yourpassword"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/login

Headers

Content-Type      

Example: application/json

Body Parameters

email   string  optional  

required. Example: [email protected]

password   string  optional  

required. Example: yourpassword

Filters

Get CashPrice Filters Values

requires authentication

Example request:
curl --request GET \
    --get "https://agrisupp.com/api/filters/cash-price/commodity" \
    --header "Authorization: Bearer"
const url = new URL(
    "https://agrisupp.com/api/filters/cash-price/commodity"
);

const headers = {
    "Authorization": "Bearer",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (302):

Show headers
cache-control: no-cache, private
location: http://localhost:8080/login
content-type: text/html; charset=UTF-8
 

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="refresh" content="0;url='http://localhost:8080/login'" />

        <title>Redirecting to http://localhost:8080/login</title>
    </head>
    <body>
        Redirecting to <a href="http://localhost:8080/login">http://localhost:8080/login</a>.
    </body>
</html>
 

Request      

GET api/filters/cash-price/{filter}

Headers

Authorization      

Example: Bearer

URL Parameters

filter   string   


Available: currency,condition,country,quality,season,commodity_type,commodity
Example: commodity

Get LineUp Filters Values

requires authentication

Example request:
curl --request GET \
    --get "https://agrisupp.com/api/filters/lineups/locations/ukraine" \
    --header "Authorization: Bearer"
const url = new URL(
    "https://agrisupp.com/api/filters/lineups/locations/ukraine"
);

const headers = {
    "Authorization": "Bearer",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (302):

Show headers
cache-control: no-cache, private
location: http://localhost:8080/login
content-type: text/html; charset=UTF-8
 

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="refresh" content="0;url='http://localhost:8080/login'" />

        <title>Redirecting to http://localhost:8080/login</title>
    </head>
    <body>
        Redirecting to <a href="http://localhost:8080/login">http://localhost:8080/login</a>.
    </body>
</html>
 

Request      

GET api/filters/lineups/{filter}/{country}

Headers

Authorization      

Example: Bearer

URL Parameters

filter   string   


Available: locations,seasons,months,vessel,charter,status,origin,regime,load_port,terminal,cargo
Example: locations

country   string   


Available: russia,ukraine,kazakhstan
Example: ukraine

Get Production Filters Values

requires authentication

Example request:
curl --request GET \
    --get "https://agrisupp.com/api/filters/production/products/ukraine" \
    --header "Authorization: Bearer"
const url = new URL(
    "https://agrisupp.com/api/filters/production/products/ukraine"
);

const headers = {
    "Authorization": "Bearer",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (302):

Show headers
cache-control: no-cache, private
location: http://localhost:8080/login
content-type: text/html; charset=UTF-8
 

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="refresh" content="0;url='http://localhost:8080/login'" />

        <title>Redirecting to http://localhost:8080/login</title>
    </head>
    <body>
        Redirecting to <a href="http://localhost:8080/login">http://localhost:8080/login</a>.
    </body>
</html>
 

Request      

GET api/filters/production/{filter}/{country}

Headers

Authorization      

Example: Bearer

URL Parameters

filter   string   


Available: seasons,products
Example: products

country   string   


Available: russia,ukraine,kazakhstan
Example: ukraine

Get Stocks Filters Values

requires authentication

Example request:
curl --request GET \
    --get "https://agrisupp.com/api/filters/stocks/products/ukraine" \
    --header "Authorization: Bearer"
const url = new URL(
    "https://agrisupp.com/api/filters/stocks/products/ukraine"
);

const headers = {
    "Authorization": "Bearer",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (302):

Show headers
cache-control: no-cache, private
location: http://localhost:8080/login
content-type: text/html; charset=UTF-8
 

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="refresh" content="0;url='http://localhost:8080/login'" />

        <title>Redirecting to http://localhost:8080/login</title>
    </head>
    <body>
        Redirecting to <a href="http://localhost:8080/login">http://localhost:8080/login</a>.
    </body>
</html>
 

Request      

GET api/filters/stocks/{filter}/{country}

Headers

Authorization      

Example: Bearer

URL Parameters

filter   string   


Available: seasons,products
Example: products

country   string   


Available: russia,ukraine,kazakhstan
Example: ukraine

Get Export Filters Values

requires authentication

Example request:
curl --request GET \
    --get "https://agrisupp.com/api/filters/export/products/ukraine" \
    --header "Authorization: Bearer"
const url = new URL(
    "https://agrisupp.com/api/filters/export/products/ukraine"
);

const headers = {
    "Authorization": "Bearer",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (302):

Show headers
cache-control: no-cache, private
location: http://localhost:8080/login
content-type: text/html; charset=UTF-8
 

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="refresh" content="0;url='http://localhost:8080/login'" />

        <title>Redirecting to http://localhost:8080/login</title>
    </head>
    <body>
        Redirecting to <a href="http://localhost:8080/login">http://localhost:8080/login</a>.
    </body>
</html>
 

Request      

GET api/filters/export/{filter}/{country}

Headers

Authorization      

Example: Bearer

URL Parameters

filter   string   


Available: seasons,products
Example: products

country   string   


Available: russia,ukraine,kazakhstan
Example: ukraine

Get Uac Filters Values

requires authentication

Example request:
curl --request GET \
    --get "https://agrisupp.com/api/filters/uac/products" \
    --header "Authorization: Bearer"
const url = new URL(
    "https://agrisupp.com/api/filters/uac/products"
);

const headers = {
    "Authorization": "Bearer",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (302):

Show headers
cache-control: no-cache, private
location: http://localhost:8080/login
content-type: text/html; charset=UTF-8
 

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="refresh" content="0;url='http://localhost:8080/login'" />

        <title>Redirecting to http://localhost:8080/login</title>
    </head>
    <body>
        Redirecting to <a href="http://localhost:8080/login">http://localhost:8080/login</a>.
    </body>
</html>
 

Request      

GET api/filters/uac/{filter}

Headers

Authorization      

Example: Bearer

URL Parameters

filter   string   


Available: products,seasons,countries
Example: products

Get Data

Get Uac

requires authentication

Example request:
curl --request GET \
    --get "https://agrisupp.com/api/uac?product_uac=1083&seasons_uac%5B%5D=2020%2F2121&country_uac%5B%5D=3" \
    --header "Authorization: Bearer"
const url = new URL(
    "https://agrisupp.com/api/uac"
);

const params = {
    "product_uac": "1083",
    "seasons_uac[]": "2020/2121",
    "country_uac[]": "3",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (302):

Show headers
cache-control: no-cache, private
location: http://localhost:8080/login
content-type: text/html; charset=UTF-8
 

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="refresh" content="0;url='http://localhost:8080/login'" />

        <title>Redirecting to http://localhost:8080/login</title>
    </head>
    <body>
        Redirecting to <a href="http://localhost:8080/login">http://localhost:8080/login</a>.
    </body>
</html>
 

Request      

GET api/uac

Headers

Authorization      

Example: Bearer

Query Parameters

product_uac   integer  optional  


From /filters/uac/products
Example: 1083

seasons_uac[]   string  optional  


From /filters/uac/seasons
Example: 2020/2121

country_uac[]   string  optional  


From /filters/uac/country
Example: 3

Get Cash Price

requires authentication

Example request:
curl --request GET \
    --get "https://agrisupp.com/api/cash-price?commodity_type%5B%5D=Oilseeds&commodity%5B%5D=Barley&condition%5B%5D=FOB&country%5B%5D=Ukraine&date=2023-07-21" \
    --header "Authorization: Bearer"
const url = new URL(
    "https://agrisupp.com/api/cash-price"
);

const params = {
    "commodity_type[]": "Oilseeds",
    "commodity[]": "Barley",
    "condition[]": "FOB",
    "country[]": "Ukraine",
    "date": "2023-07-21",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (302):

Show headers
cache-control: no-cache, private
location: http://localhost:8080/login
content-type: text/html; charset=UTF-8
 

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="refresh" content="0;url='http://localhost:8080/login'" />

        <title>Redirecting to http://localhost:8080/login</title>
    </head>
    <body>
        Redirecting to <a href="http://localhost:8080/login">http://localhost:8080/login</a>.
    </body>
</html>
 

Request      

GET api/cash-price

Headers

Authorization      

Example: Bearer

Query Parameters

commodity_type[]   string  optional  


From /filters/cash-price/commodity_type
Example: Oilseeds

commodity[]   string  optional  


From /filters/cash-price/commodity
Example: Barley

condition[]   string  optional  


From /filters/cash-price/condition
Example: FOB

country[]   string  optional  


From /filters/cash-price/country
Example: Ukraine

date   string  optional  


Set date
Example: 2023-07-21

Get Lineups By Country

requires authentication

Example request:
curl --request GET \
    --get "https://agrisupp.com/api/lineups/ukraine?locations%5B%5D=130&seasons%5B%5D=2022%2F2023&months%5B%5D=2023-04-01&cargo%5B%5D=2&origin%5B%5D=3&vessel%5B%5D=11857&charter%5B%5D=2113&status%5B%5D=2&load_port%5B%5D=11&terminal%5B%5D=1307&regime%5B%5D=2" \
    --header "Authorization: Bearer"
const url = new URL(
    "https://agrisupp.com/api/lineups/ukraine"
);

const params = {
    "locations[]": "130",
    "seasons[]": "2022/2023",
    "months[]": "2023-04-01",
    "cargo[]": "2",
    "origin[]": "3",
    "vessel[]": "11857",
    "charter[]": "2113",
    "status[]": "2",
    "load_port[]": "11",
    "terminal[]": "1307",
    "regime[]": "2",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (302):

Show headers
cache-control: no-cache, private
location: http://localhost:8080/login
content-type: text/html; charset=UTF-8
 

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="refresh" content="0;url='http://localhost:8080/login'" />

        <title>Redirecting to http://localhost:8080/login</title>
    </head>
    <body>
        Redirecting to <a href="http://localhost:8080/login">http://localhost:8080/login</a>.
    </body>
</html>
 

Request      

GET api/lineups/{country}

Headers

Authorization      

Example: Bearer

URL Parameters

country   string   


Available: turkey,ukraine,russia,bulgaria,romania
Example: ukraine

Query Parameters

locations[]   string  optional  


From /filters/lineups/locations/{country}
Example: 130

seasons[]   string  optional  


From /filters/lineups/seasons/{country}
Example: 2022/2023

months[]   string  optional  


From /filters/lineups/months/{country}
Example: 2023-04-01

cargo[]   string  optional  


From /filters/lineups/cargo/{country}
Example: 2

origin[]   string  optional  


From /filters/lineups/origin/{country}
Example: 3

vessel[]   string  optional  


From /filters/lineups/vessel/{country}
Example: 11857

charter[]   string  optional  


From /filters/lineups/charter/{country}
Example: 2113

status[]   string  optional  


From /filters/lineups/charter/{country}
Example: 2

load_port[]   string  optional  


From /filters/lineups/charter/{country}
Example: 11

terminal[]   string  optional  


From /filters/lineups/charter/{country}
Example: 1307

regime[]   integer  optional  

string
From /filters/lineups/charter/{country}
Example: 2

Get Export

requires authentication

Example request:
curl --request GET \
    --get "https://agrisupp.com/api/export/ukraine?product=1083&season=2022%2F2023" \
    --header "Authorization: Bearer"
const url = new URL(
    "https://agrisupp.com/api/export/ukraine"
);

const params = {
    "product": "1083",
    "season": "2022/2023",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (302):

Show headers
cache-control: no-cache, private
location: http://localhost:8080/login
content-type: text/html; charset=UTF-8
 

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="refresh" content="0;url='http://localhost:8080/login'" />

        <title>Redirecting to http://localhost:8080/login</title>
    </head>
    <body>
        Redirecting to <a href="http://localhost:8080/login">http://localhost:8080/login</a>.
    </body>
</html>
 

Request      

GET api/{exportType}/{country}

Headers

Authorization      

Example: Bearer

URL Parameters

exportType   string   


Available: export,export-seasons Example: export

country   string   


Available:

russia, ukraine, kazakhstan, romania, bulgaria

canada, argentina, brazil, austria, belgium

cyprus, czech_republic, denmark, estonia, finland

france, greece, germany, hungary, italy

lithuania, latvia, luxembourg, malta, netherlands

poland, portugal, slovenia, slovakia, sweden

united_kingdom, switzerland, croatia, usa, australia

belarus, european_union_28, spain


Example: ukraine

Query Parameters

product   integer  optional  

if exportType='export'
From /filters/export/products/{country} Example:1083
if exportType='export-seasons'
From /filters/export-seasons/products/{country}
Example: 1083

season   string  optional  

if exportType='export' name='season'
From /filters/export/seasons/{country}
if exportType='export-seasons' name='seasons[]'
From /filters/export-seasons/seasons/{country}
Example: 2022/2023

Get Production and Stocks

requires authentication

Example request:
curl --request GET \
    --get "https://agrisupp.com/api/production/ukraine?product=1114&seasons%5B%5D=2022%2F2023" \
    --header "Authorization: Bearer"
const url = new URL(
    "https://agrisupp.com/api/production/ukraine"
);

const params = {
    "product": "1114",
    "seasons[]": "2022/2023",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Example response (302):

Show headers
cache-control: no-cache, private
location: http://localhost:8080/login
content-type: text/html; charset=UTF-8
 

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="refresh" content="0;url='http://localhost:8080/login'" />

        <title>Redirecting to http://localhost:8080/login</title>
    </head>
    <body>
        Redirecting to <a href="http://localhost:8080/login">http://localhost:8080/login</a>.
    </body>
</html>
 

Request      

GET api/{type}/{country}

Headers

Authorization      

Example: Bearer

URL Parameters

type   string   


Available: production,stocks Example: production

country   string   


Available: russia,ukraine,kazakhstan Example: ukraine

Query Parameters

product   integer  optional  

if type='production' name='product'
From /filters/production/products/{country}.
if type='stocks' name='product[]'
From /filters/stocks/products/{country}.
Example: 1114

seasons[]   string  optional  

if type='production' name='seasons[]'
From /filters/production/seasons/{country}.
if type='stocks' name='season'
From /filters/stocks/season/{country}.
Example: 2022/2023