List Filter Options
curl --request GET \
--url https://scrapebadger.com/v1/wallapop/filters/{filter_id}/options \
--header 'X-API-Key: <x-api-key>'import requests
url = "https://scrapebadger.com/v1/wallapop/filters/{filter_id}/options"
headers = {"X-API-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<x-api-key>'}};
fetch('https://scrapebadger.com/v1/wallapop/filters/{filter_id}/options', 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://scrapebadger.com/v1/wallapop/filters/{filter_id}/options",
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: <x-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://scrapebadger.com/v1/wallapop/filters/{filter_id}/options"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<x-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://scrapebadger.com/v1/wallapop/filters/{filter_id}/options")
.header("X-API-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://scrapebadger.com/v1/wallapop/filters/{filter_id}/options")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"filter_id": "<string>",
"options": [
{
"id": "<string>",
"title": {}
}
],
"market": "<string>"
}Reference
List Filter Options
Long Wallapop filter option lists — brands, models — scoped to a category or query. The option ids are the values search accepts.
GET
/
v1
/
wallapop
/
filters
/
{filter_id}
/
options
List Filter Options
curl --request GET \
--url https://scrapebadger.com/v1/wallapop/filters/{filter_id}/options \
--header 'X-API-Key: <x-api-key>'import requests
url = "https://scrapebadger.com/v1/wallapop/filters/{filter_id}/options"
headers = {"X-API-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<x-api-key>'}};
fetch('https://scrapebadger.com/v1/wallapop/filters/{filter_id}/options', 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://scrapebadger.com/v1/wallapop/filters/{filter_id}/options",
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: <x-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://scrapebadger.com/v1/wallapop/filters/{filter_id}/options"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<x-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://scrapebadger.com/v1/wallapop/filters/{filter_id}/options")
.header("X-API-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://scrapebadger.com/v1/wallapop/filters/{filter_id}/options")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"filter_id": "<string>",
"options": [
{
"id": "<string>",
"title": {}
}
],
"market": "<string>"
}The options for filters too long to inline in
/v1/wallapop/filters — those flagged options_endpoint: true, such as brand and model. Pass an option id as the matching search parameter, e.g. brand=Apple.
Credits: 2. Empty results are not charged.
Authorization
string
required
Your ScrapeBadger API key.
Path Parameters
string
required
Id of a filter flagged
options_endpoint: true in /v1/wallapop/filters, e.g. brand or model. Lowercase letters and underscores only, up to 40 characters; anything else returns 422.Query Parameters
integer
Category to scope the options to, e.g.
100 for car makes and models.string
Search text to scope the options to, e.g.
iphone.string
default:"es"
es, it, or pt. See /v1/wallapop/markets.Response
string
Echo of the requested filter id.
FilterOption[]
string
The market used for the request.
Example
curl "https://scrapebadger.com/v1/wallapop/filters/brand/options?category_id=24200&market=es" \
-H "X-API-Key: YOUR_API_KEY"
import requests
res = requests.get(
"https://scrapebadger.com/v1/wallapop/filters/brand/options",
headers={"X-API-Key": "YOUR_API_KEY"},
params={"category_id": 24200, "market": "es"},
)
data = res.json()
const res = await fetch(
"https://scrapebadger.com/v1/wallapop/filters/brand/options?" +
new URLSearchParams({ category_id: "24200", market: "es" }),
{ headers: { "X-API-Key": process.env.SCRAPEBADGER_API_KEY } },
);
const data = await res.json();
scrapebadger wallapop filter-options brand --category-id 24200 --market es
Response
{
"filter_id": "brand",
"options": [
{ "id": "2K", "title": "2K" },
{ "id": "2K Games", "title": "2K Games" },
{ "id": "2NLF", "title": "2NLF" },
{ "id": "3 Legged Thing", "title": "3 Legged Thing" },
{ "id": "3DMakerpro", "title": "3DMakerpro" }
],
"market": "es"
}
Listing filter options costs 2 credits. Empty results and failed requests are not charged.

