Make a GET Request
This series of guides explains how to make HTTP GET requests to external APIs from smart contracts, using Chainlink’s Request & Receive Data cycle.
Examples
Single Word Response
This guide explains how to make an HTTP GET request and parse the json response to retrieve the value of one single attribute.
Multi-Variable Responses
This guide explains how to make an HTTP GET request and parse the json response to retrieve the values of multiple attributes.
Fetch data from an Array
This guide explains how to make an HTTP GET request that returns a json array and parse it to retrieve the target element’s value.
Large Responses
This guide explains how to make an HTTP Get request that returns a json containing an arbitrary-length raw byte data and parse it to return the data as bytes data type.
Make an Existing Job Request
This guide explains how to call a job that leverages External adapters and returns the relevant data to the smart contract. This allows building succinct smart contracts that do not need to comprehend the URL or the response format of the target API.