지정한 배치의 데이터를 오프셋 기준으로 가져오기
curl --request GET \
--url https://openapi.octoparse.com/data/lotno/all \
--header 'x-api-key: <api-key>'import requests
url = "https://openapi.octoparse.com/data/lotno/all"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://openapi.octoparse.com/data/lotno/all', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://openapi.octoparse.com/data/lotno/all",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://openapi.octoparse.com/data/lotno/all"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://openapi.octoparse.com/data/lotno/all")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://openapi.octoparse.com/data/lotno/all")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"data": [
{}
],
"total": 123,
"restTotal": 123,
"offset": 123
},
"requestId": "<string>"
}Data
지정한 배치의 데이터를 오프셋 기준으로 가져오기
필수 플랜: 스탠다드, 프로페셔널 또는 엔터프라이즈.
특정 배치(lotno)의 데이터를 행 오프셋부터 가져옵니다. 첫 번째 행부터 시작하려면 오프셋을 0으로 설정하세요.
GET
/
data
/
lotno
/
all
지정한 배치의 데이터를 오프셋 기준으로 가져오기
curl --request GET \
--url https://openapi.octoparse.com/data/lotno/all \
--header 'x-api-key: <api-key>'import requests
url = "https://openapi.octoparse.com/data/lotno/all"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://openapi.octoparse.com/data/lotno/all', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://openapi.octoparse.com/data/lotno/all",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://openapi.octoparse.com/data/lotno/all"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://openapi.octoparse.com/data/lotno/all")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://openapi.octoparse.com/data/lotno/all")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"data": [
{}
],
"total": 123,
"restTotal": 123,
"offset": 123
},
"requestId": "<string>"
}인증
apiKeyAuthbearerAuth
x-api-key 헤더에 Octoparse API 키를 보냅니다. Octoparse 계정 센터에서 키를 생성하고 관리하세요. 키는 일반적으로 op_sk_로 시작합니다.
쿼리 매개변수
작업을 시작할 때 반환된 배치 번호(lotNo)
시작할 행 오프셋(0부터 시작)
반환할 행 수
⌘I