MENU navbar-image

Introduction

Public API for distributing the Goods4Ukraine.eu user generated data to the public space.

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

Base URL

https://goods4ukraine.eu

Authenticating requests

This API is not authenticated.

Endpoints

GET api/ads

Example request:
curl --request GET \
    --get "https://goods4ukraine.eu/api/ads" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://goods4ukraine.eu/api/ads"
);

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

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://goods4ukraine.eu/api/ads',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (500):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Server Error"
}
 

Request      

GET api/ads

GET api/categories

Example request:
curl --request GET \
    --get "https://goods4ukraine.eu/api/categories" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
const url = new URL(
    "https://goods4ukraine.eu/api/categories"
);

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

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://goods4ukraine.eu/api/categories',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (500):

Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
 

{
    "message": "Server Error"
}
 

Request      

GET api/categories