Using cURL utility for working with reports

Expand all | Collapse all

This section describes how you can request reports in different formats using the cURL utility.

To get a list of all available reports, execute:

curl -u <user name> -H 'Content-Length: 0' --cert <full path to the certificate on your computer> -X POST 'https://tip.kaspersky.com/api/publications/get_list'

See result example

To get a list of all available reports within a specific time frame, execute:

curl -u <user name> -H 'Content-Length: 0' --cert <full path to the certificate on your computer> -X POST 'https://tip.kaspersky.com/api/publications/get_list?date_start=1490628942&date_end=1490628942'

You can convert the date into UNIX format at www.epochconverter.com.

To request a certain report, execute:

curl -u <user name>-H 'Content-Length: 0' --cert <full path to the certificate on your computer> -X POST 'https://tip.kaspersky.com/api/publications/get_one?publication_id=1166'

See result example

To request a report in a PDF format, execute:

curl –u <user name> -H 'Content-Length: 0' --cert <full path to the certificate on your computer> -X POST 'https://tip.kaspersky.com/api/publications/get_one?publication_id=627&include_info=pdf,execsum'

See result example

If an invalid include_info value is used to get specific information about the report, an incorrect value will be ignored.

Using an invalid include_info value to get specific information about the report:

curl –u <user name> -H 'Content-Length: 0' --cert <full path to the certificate on your computer> -X POST 'https://tip.kaspersky.com/api/publications/get_one?publication_id=627&include_info=pdf,<invalid_value>'

See result example

To request a Master IOC, execute:

curl -u <user name> -H 'Content-Length: 0' --cert <full path to the certificate on your computer> -X POST 'https://tip.kaspersky.com/api/publications/get_master_ioc'

See result example

To request a Master YARA, execute:

curl -u <user name> -H 'Content-Length: 0' --cert <full path to the certificate on your computer> -X POST 'https://tip.kaspersky.com/api/publications/get_master_yara'

See result example

To request an executive summary, execute:

curl -u <user name> -H 'Content-Length: 0' --cert <full path to the certificate on your computer> -X POST 'https://tip.kaspersky.com/api/publications/get_one?publication_id=1187&include_info=execsum'

To request a report in all available formats, execute:

curl -u <user name> -H 'Content-Length: 0' --cert <full path to the certificate on your computer> -X POST 'https://tip.kaspersky.com/api/publications/get_one?publication_id=627&include_info=all'

See result example

See also:

Get report list

Get specific report

Get Master IOC file

Get Master YARA file

Page top