Login ENMore
Remove Ads
Remove Ads

Data Service

Cost

Basic
Current season
100 requests/day
€25,00 monthly
Extra
Current season
1.000 requests/day
€95,00 monthly
Premium
All
10.000 requests/day
€575,00 monthly

The monthly subscription can be canceled at any time through your Stripe account or sending an mail to bdfutbol@gmail.com specifying your username or email.

If you prefer a custom budget, please contact us by mail at bdfutbol@gmail.com or with the contact form

API Main Url

The base url of the API is https://photoapi.bdfutbol.com

Authentication

All API requests require authentication via a bearer token. To obtain a token, you must log in using the /login endpoint.

Login Endpoint

POST /login

Request Body:

{
    "email": "test@example.com",
    "password": "password123"
}

Response:

{
    "message": "Login successful",
    "token": "token"
}

Usage

Once authenticated, include the token in the Authorization header of your requests:

Authorization: Bearer token

Get Photo

The /photos endpoint allows retrieving player photos using different search parameters. Depending on the specificity of the provided parameters, the response may either return a single photo file or a list of candidate photos.

Search Options

You can request a photo in the following ways:

Photos Endpoint

POST /photos

Request Body:

{
    "personId": "123",
    "name": "Messi",
    "season": "2023-24",
    "team": "Barcelona",
    "teamId": "1",
    "number": "10",
    "photoId": "9876"
}

Single Photo Response

If a unique match is found, the API responds with the photo file directly.

[Binary Photo File]

Multiple Candidates Response

If multiple matches are found, the response will contain a list of possible photos:

{
    "photos": [
        {
            "photoId": "9876",
            "season": "2023-24",
            "team": "Barcelona"
        }
    ]
}

Use the photoId from the response to make another request to obtain a specific photo.


Notes