General

idealo Business API to get offer reports (asynchronously)

The base address of the API in production is: https://businessapi.idealo.com

Authentication

Credentials

To access the API you need a client id and a client secret. You can generate some new credentials in idealo business, under 'My idealo' → 'Settings' → 'API clients' → 'idealo business API'.

Note
The client secret is only shown once at creation time! If you have no longer access or forgot your client secret, please create new credentials and delete the old one.

OAuth2 steps

The idealo business APIs are secured by OAuth2. At a high level, you follow four steps:

  1. Obtain OAuth 2.0 Credentials from idealo business

  2. Obtain an access-token from https://businessapi.idealo.com/api/v1/oauth/token

  3. Do an API request

  4. The access token expires after 3600 seconds and you need get a new access-token like before.

Get Access Token

POST /api/v1/oauth/token

Returns the access token for the idealo Business API. You need to provide the access token for every secured endpoint in the API.

Request headers

Header Type Optional Description

Authorization

Object

false

The client credentials client id and secret.

Response fields

Path Type Optional Description

access_token

String

false

The access-token that is used for authentication. You need to provide it in the authorization header when you fetch data from the api.

token_type

String

false

The tokens type. In this case it’s bearer.

expires_in

Integer

true

The lifetime in seconds of the access token. For example, the value "3600" denotes that the access token will expire in one hour from the time the response was generated. You need to fetch a new token when it is expired.

scope

String

false

The scopes for this token.

shop_id

Integer

true

The shopId the access-token is valid for.

Example request

$ curl 'https://businessapi.idealo.com/api/v1/oauth/token' -i -u '51f060d4-7893-4dd5-975f-8566ff5ece60:Y0ur-Cl13nt-S3cr3t' -X POST

Example response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 868

{
  "access_token" : "eyJraWQiOiJ0ZXN0LWtleS1pZCIsImFsZyI6IlJTMjU2In0.eyJqdGkiOiIxYTdhZDhmYS05NjFkLTQ2YmYtYTU3NS01OTcyNTNmYzg4MGQiLCJpc3MiOiJhdXRob3JpemF0a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T,BUSINESSBACKEND:READ_PRICEREPORT",
  "shop_id" : 1
}

Offer report operations

Start Report

POST /api/v1/shops/{shopId}/offer-reports

Triggers the creation of a new report for the specified shop id and parameters. If a report is already in progress for the specified shop id an error (409) will be thrown.

Path parameters

Parameter Type Optional Description

shopId

Integer

false

The shop id.

Request fields

Path Type Optional Description

offerReportType

String

false

The type of the offer report.

Must be one of [ALL_OFFERS, ONLINE_OFFERS_ALL, ONLINE_OFFERS_PRODUCT_CATALOG, ONLINE_OFFERS_OPEN_CATALOG, OFFLINE_ALL, OFFLINE_OFFERS_PRODUCT_CATALOG, OFFLINE_OFFER_OPEN_CATALOG, MISSING_ATTRIBUTES_ONLY].

Response fields

Path Type Optional Description

status

String

true

The status of the report.

Must be one of [PROCESSING, FAILED, SUCCESSFUL].

startTime

String

true

The time when the report has been started.

endTime

String

true

The time when the report has finished.

id

String

true

The report id.

shopId

Integer

true

The shop id of the report.

Example request

$ curl 'https://businessapi.idealo.com/api/v1/shops/12345/offer-reports' -i -X POST \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer eyJraWQiOiJ0ZXN0LWtleS1...' \
    -d '{"offerReportType":"ALL_OFFERS"}'

Example response

HTTP/1.1 201 Created
Content-Type: application/json

{
  "status" : "PROCESSING",
  "startTime" : "2022-08-15T14:43:17.872165Z",
  "id" : "84cea11a-bcb1-4260-97cc-ddf5d6e34556",
  "shopId" : 12345
}

Get Report

GET /api/v1/shops/{shopId}/offer-reports/{reportId}

Returns the report for the specified report id.

Path parameters

Parameter Type Optional Description

shopId

Integer

false

The shop id.

reportId

Object

false

The report id.

Response fields

Path Type Optional Description

status

String

true

The status of the report.

Must be one of [PROCESSING, FAILED, SUCCESSFUL].

startTime

String

true

The time when the report has been started.

endTime

String

true

The time when the report has finished.

id

String

true

The report id.

shopId

Integer

true

The shop id of the report.

Example request

$ curl 'https://businessapi.idealo.com/api/v1/shops/12345/offer-reports/84cea11a-bcb1-4260-97cc-ddf5d6e34556' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer eyJraWQiOiJ0ZXN0LWtleS1...'

Example response

HTTP/1.1 200 OK
Content-Type: application/json

{
  "status" : "PROCESSING",
  "startTime" : "2022-08-15T14:43:17.980688Z",
  "id" : "84cea11a-bcb1-4260-97cc-ddf5d6e34556",
  "shopId" : 12345
}

Download Report

GET /api/v1/shops/{shopId}/offer-reports/{reportId}/download

Downloads the report for the specified report id.

Path parameters

Parameter Type Optional Description

shopId

Integer

false

The shop id.

reportId

Object

false

The report id.

Example request

$ curl 'https://businessapi.idealo.com/api/v1/shops/12345/offer-reports/84cea11a-bcb1-4260-97cc-ddf5d6e34556/download' -i -X GET \
    -H 'Content-Type: application/json' \
    -H 'Authorization: Bearer eyJraWQiOiJ0ZXN0LWtleS1...'

Example response

HTTP/1.1 200 OK
Content-Disposition: attachment; filename=report-file-name
Content-Type: application/octet-stream
Accept-Ranges: bytes

<binary>