I want to use the Buffett code WebAPI from curl.

Asked 2 years ago, Updated 2 years ago, 117 views

I would like to use the following Buffett code WebAPI from curl.

http://docs.buffett-code.com/

How can I get a response?

api curl

2022-09-30 17:07

1 Answers

Because you authenticate with the API Key, set the API Key in the x-api-key header as follows:

$curl-s https://api.buffett-code.com/api/v2/indicator\?tickers\=2120\&from\=2017Q1\&to\=2018Q1\
    --header'x-api-key:<Your API Key>'  

If the API Key is correct, a response in JSON format is returned.


2022-09-30 17:07

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.