List Categories
curl --request GET \
--url https://scrapebadger.com/v1/wallapop/categories \
--header 'X-API-Key: <x-api-key>'import requests
url = "https://scrapebadger.com/v1/wallapop/categories"
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/categories', 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/categories",
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/categories"
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/categories")
.header("X-API-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://scrapebadger.com/v1/wallapop/categories")
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{
"categories": [
{
"id": 123,
"name": {},
"parent_id": {},
"vertical": {},
"icon": {},
"subcategories": [
{}
]
}
],
"market": "<string>"
}Reference
List Categories
Wallapop’s full category tree with localised names — the ids are the category_id values search and filters accept.
GET
/
v1
/
wallapop
/
categories
List Categories
curl --request GET \
--url https://scrapebadger.com/v1/wallapop/categories \
--header 'X-API-Key: <x-api-key>'import requests
url = "https://scrapebadger.com/v1/wallapop/categories"
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/categories', 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/categories",
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/categories"
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/categories")
.header("X-API-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://scrapebadger.com/v1/wallapop/categories")
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{
"categories": [
{
"id": 123,
"name": {},
"parent_id": {},
"vertical": {},
"icon": {},
"subcategories": [
{}
]
}
],
"market": "<string>"
}Wallapop’s full category tree. Every
id in the tree, at any depth, works as the category_id in search and filters.
Credits: 1
Authorization
string
required
Your ScrapeBadger API key.
Query Parameters
string
default:"es"
es, it, or pt. Sets the language of category names. See /v1/wallapop/markets.Response
Category[]
Top-level categories, each with its subcategories nested.
Show Category
Show Category
integer
Category id, e.g.
100 (Cars) or 24200 (Technology & electronics).string | null
Localised category name.
integer | null
Parent category id;
null for top-level categories.string | null
Wallapop vertical, e.g.
consumer_goods or cars. Subcategories inherit it from their parent.string | null
Wallapop icon name for the category, e.g.
car.Category[]
Child categories, with the same shape, nested to any depth.
string
The market used for the request.
Example
curl "https://scrapebadger.com/v1/wallapop/categories?market=es" \
-H "X-API-Key: YOUR_API_KEY"
import requests
res = requests.get(
"https://scrapebadger.com/v1/wallapop/categories",
headers={"X-API-Key": "YOUR_API_KEY"},
params={"market": "es"},
)
data = res.json()
const res = await fetch("https://scrapebadger.com/v1/wallapop/categories?market=es", {
headers: { "X-API-Key": process.env.SCRAPEBADGER_API_KEY },
});
const data = await res.json();
scrapebadger wallapop categories --market es
Response
{
"categories": [
{
"id": 100,
"name": "Coches",
"parent_id": null,
"vertical": "cars",
"icon": "car",
"subcategories": []
},
{
"id": 12465,
"name": "Moda y accesorios",
"parent_id": null,
"vertical": "consumer_goods",
"icon": "t-shirt",
"subcategories": [
{
"id": 11002,
"name": "Mujer",
"parent_id": 12465,
"vertical": "consumer_goods",
"icon": null,
"subcategories": [
{
"id": 11004,
"name": "Ropa",
"parent_id": 11002,
"vertical": "consumer_goods",
"icon": null,
"subcategories": []
}
]
}
]
}
],
"market": "es"
}
Listing categories costs 1 credit. Failed requests are not charged.

