Checking links

Parameters

HTTP method

Access rights

URL

Parameters

Note

GET validate_links https://api.admitad.com/validate_links/
  • link **

Returns the result of link check.*

  • * Returns the result in the JSON format.

  • ** The checked link, reserved characters should be encoded in accordance with RFC 2396 Standard.

Example of use

Example of a request with utility ``curl``:

Тестируемая ссылка - http://ad.admitad.com/goto/6c6d7df4268cb0fd8d1703dd58751b/?ulp=[[[https://admitad.com]]]

curl -L -H 'Authorization: Bearer access_token' -X GET https://api.admitad.com/validate_links/?link=http%3A%2F%2Fad.admitad.com%2Fgoto%2F6c6d7df4268cb0fd8d1703dd58751b%2F%3Fulp%3D%5B%5B%5Bhttps%3A%2F%2Fadmitad.com%5D%5D%5D

Example of the response from the API server in the JSON format:

HTTP/1.1 202 ACCEPTED
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive

{
    "message": "Link tested.",
    "success": "Accepted"
}

Description of API server response fields

Name

Description

message

Notification

warnings

Error messages

deeplink_info

Information about deeplink