Querying the API

1 view
Skip to first unread message

Jesús Alejandro Hernández Mejía

unread,
Jul 5, 2024, 1:52:56 PM7/5/24
to Outbrain-EngageApi
Hello!

This is a very basic question. I'm trying to fetch reports from Outbrain API. In order to do this, I first get an OB-Token through this request:
 
curl -u [my_user_name]:[my_password] https://api.outbrain.com/engage/v2/login

When I try to get the actual report with the simplest parameters (only passing entityId which is marked as required and one breakdown), 

curl --location 'https://api.outbrain.com/engage/v2/reports/outbrain?entityId=YYYY&breakdowns=day' \
--header 'OB-TOKEN-V1: XXX'

I'm getting the following response: 

Request failed with status code 400 

I was shared two different entityIds by my customer support representative in outbrain, Aiyana Goodell, however, none of them worked. She asked me to post my question in this google group to get more assistance.

Could you help me troubleshoot?

Thanks!


Sam Lehman

unread,
Jul 8, 2024, 1:47:21 PM7/8/24
to Outbrain-EngageApi

Jesús Alejandro Hernández Mejía

unread,
Jul 8, 2024, 9:12:43 PM7/8/24
to Outbrain-EngageApi
Thanks, that worked!

I should have read more carefully the docs, I was confused at first because the docs mention that our account manager should be the one providing this data.
Reply all
Reply to author
Forward
0 new messages