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());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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>
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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>
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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>
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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>
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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>
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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>
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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>
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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>
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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®ime%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>
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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>
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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>
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.