All URIs are relative to https://scrapebadger.com
| Method | HTTP request | Description |
|---|---|---|
| leboncoin_get_a_seller_s_ads | GET /v1/leboncoin/sellers/{user_id}/listings | Get a seller's ads |
| leboncoin_get_ad_detail | GET /v1/leboncoin/ads/{list_id} | Get ad detail |
| leboncoin_get_seller_profile | GET /v1/leboncoin/sellers/{user_id} | Get seller profile |
| leboncoin_get_similar_ads | GET /v1/leboncoin/ads/{list_id}/similar | Get similar ads |
| leboncoin_leboncoin_scraper_health_check | GET /v1/leboncoin/health | Leboncoin scraper health check |
| leboncoin_leboncoin_scraper_health_check_head | HEAD /v1/leboncoin/health | Leboncoin scraper health check |
| leboncoin_list_categories | GET /v1/leboncoin/categories | List categories |
| leboncoin_list_departments | GET /v1/leboncoin/departments | List departments |
| leboncoin_list_markets | GET /v1/leboncoin/markets | List markets |
| leboncoin_list_regions | GET /v1/leboncoin/regions | List regions |
| leboncoin_location_autocomplete | GET /v1/leboncoin/locations/search | Location autocomplete |
| leboncoin_search_leboncoin_ads | GET /v1/leboncoin/search | Search Leboncoin ads |
Object leboncoin_get_a_seller_s_ads(user_id, opts)
Get a seller's ads
A seller's active ads.
require 'time'
require 'scrapebadger'
# setup authorization
ScrapeBadger.configure do |config|
# Configure API key authorization: ApiKeyAuth
config.api_key['X-API-Key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['X-API-Key'] = 'Bearer'
end
api_instance = ScrapeBadger::LeboncoinApi.new
user_id = 'user_id_example' # String |
opts = {
page: 56, # Integer |
limit: 56 # Integer |
}
begin
# Get a seller's ads
result = api_instance.leboncoin_get_a_seller_s_ads(user_id, opts)
p result
rescue ScrapeBadger::ApiError => e
puts "Error when calling LeboncoinApi->leboncoin_get_a_seller_s_ads: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(Object, Integer, Hash)> leboncoin_get_a_seller_s_ads_with_http_info(user_id, opts)
begin
# Get a seller's ads
data, status_code, headers = api_instance.leboncoin_get_a_seller_s_ads_with_http_info(user_id, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => Object
rescue ScrapeBadger::ApiError => e
puts "Error when calling LeboncoinApi->leboncoin_get_a_seller_s_ads_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| user_id | String | ||
| page | Integer | [optional][default to 1] | |
| limit | Integer | [optional][default to 35] |
Object
- Content-Type: Not defined
- Accept: application/json
Object leboncoin_get_ad_detail(list_id)
Get ad detail
Full detail for a Leboncoin ad.
require 'time'
require 'scrapebadger'
# setup authorization
ScrapeBadger.configure do |config|
# Configure API key authorization: ApiKeyAuth
config.api_key['X-API-Key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['X-API-Key'] = 'Bearer'
end
api_instance = ScrapeBadger::LeboncoinApi.new
list_id = 56 # Integer |
begin
# Get ad detail
result = api_instance.leboncoin_get_ad_detail(list_id)
p result
rescue ScrapeBadger::ApiError => e
puts "Error when calling LeboncoinApi->leboncoin_get_ad_detail: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(Object, Integer, Hash)> leboncoin_get_ad_detail_with_http_info(list_id)
begin
# Get ad detail
data, status_code, headers = api_instance.leboncoin_get_ad_detail_with_http_info(list_id)
p status_code # => 2xx
p headers # => { ... }
p data # => Object
rescue ScrapeBadger::ApiError => e
puts "Error when calling LeboncoinApi->leboncoin_get_ad_detail_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| list_id | Integer |
Object
- Content-Type: Not defined
- Accept: application/json
Object leboncoin_get_seller_profile(user_id)
Get seller profile
Public seller/pro-store profile.
require 'time'
require 'scrapebadger'
# setup authorization
ScrapeBadger.configure do |config|
# Configure API key authorization: ApiKeyAuth
config.api_key['X-API-Key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['X-API-Key'] = 'Bearer'
end
api_instance = ScrapeBadger::LeboncoinApi.new
user_id = 'user_id_example' # String |
begin
# Get seller profile
result = api_instance.leboncoin_get_seller_profile(user_id)
p result
rescue ScrapeBadger::ApiError => e
puts "Error when calling LeboncoinApi->leboncoin_get_seller_profile: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(Object, Integer, Hash)> leboncoin_get_seller_profile_with_http_info(user_id)
begin
# Get seller profile
data, status_code, headers = api_instance.leboncoin_get_seller_profile_with_http_info(user_id)
p status_code # => 2xx
p headers # => { ... }
p data # => Object
rescue ScrapeBadger::ApiError => e
puts "Error when calling LeboncoinApi->leboncoin_get_seller_profile_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| user_id | String |
Object
- Content-Type: Not defined
- Accept: application/json
Object leboncoin_get_similar_ads(list_id, opts)
Get similar ads
Ads Leboncoin surfaces as similar to the given ad.
require 'time'
require 'scrapebadger'
# setup authorization
ScrapeBadger.configure do |config|
# Configure API key authorization: ApiKeyAuth
config.api_key['X-API-Key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['X-API-Key'] = 'Bearer'
end
api_instance = ScrapeBadger::LeboncoinApi.new
list_id = 56 # Integer |
opts = {
limit: 56 # Integer |
}
begin
# Get similar ads
result = api_instance.leboncoin_get_similar_ads(list_id, opts)
p result
rescue ScrapeBadger::ApiError => e
puts "Error when calling LeboncoinApi->leboncoin_get_similar_ads: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(Object, Integer, Hash)> leboncoin_get_similar_ads_with_http_info(list_id, opts)
begin
# Get similar ads
data, status_code, headers = api_instance.leboncoin_get_similar_ads_with_http_info(list_id, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => Object
rescue ScrapeBadger::ApiError => e
puts "Error when calling LeboncoinApi->leboncoin_get_similar_ads_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| list_id | Integer | ||
| limit | Integer | [optional][default to 20] |
Object
- Content-Type: Not defined
- Accept: application/json
Object leboncoin_leboncoin_scraper_health_check
Leboncoin scraper health check
Check health of the Leboncoin scraper service (accepts HEAD).
require 'time'
require 'scrapebadger'
# setup authorization
ScrapeBadger.configure do |config|
# Configure API key authorization: ApiKeyAuth
config.api_key['X-API-Key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['X-API-Key'] = 'Bearer'
end
api_instance = ScrapeBadger::LeboncoinApi.new
begin
# Leboncoin scraper health check
result = api_instance.leboncoin_leboncoin_scraper_health_check
p result
rescue ScrapeBadger::ApiError => e
puts "Error when calling LeboncoinApi->leboncoin_leboncoin_scraper_health_check: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(Object, Integer, Hash)> leboncoin_leboncoin_scraper_health_check_with_http_info
begin
# Leboncoin scraper health check
data, status_code, headers = api_instance.leboncoin_leboncoin_scraper_health_check_with_http_info
p status_code # => 2xx
p headers # => { ... }
p data # => Object
rescue ScrapeBadger::ApiError => e
puts "Error when calling LeboncoinApi->leboncoin_leboncoin_scraper_health_check_with_http_info: #{e}"
endThis endpoint does not need any parameter.
Object
- Content-Type: Not defined
- Accept: application/json
Object leboncoin_leboncoin_scraper_health_check_head
Leboncoin scraper health check
Check health of the Leboncoin scraper service (accepts HEAD).
require 'time'
require 'scrapebadger'
# setup authorization
ScrapeBadger.configure do |config|
# Configure API key authorization: ApiKeyAuth
config.api_key['X-API-Key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['X-API-Key'] = 'Bearer'
end
api_instance = ScrapeBadger::LeboncoinApi.new
begin
# Leboncoin scraper health check
result = api_instance.leboncoin_leboncoin_scraper_health_check_head
p result
rescue ScrapeBadger::ApiError => e
puts "Error when calling LeboncoinApi->leboncoin_leboncoin_scraper_health_check_head: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(Object, Integer, Hash)> leboncoin_leboncoin_scraper_health_check_head_with_http_info
begin
# Leboncoin scraper health check
data, status_code, headers = api_instance.leboncoin_leboncoin_scraper_health_check_head_with_http_info
p status_code # => 2xx
p headers # => { ... }
p data # => Object
rescue ScrapeBadger::ApiError => e
puts "Error when calling LeboncoinApi->leboncoin_leboncoin_scraper_health_check_head_with_http_info: #{e}"
endThis endpoint does not need any parameter.
Object
- Content-Type: Not defined
- Accept: application/json
Object leboncoin_list_categories
List categories
require 'time'
require 'scrapebadger'
# setup authorization
ScrapeBadger.configure do |config|
# Configure API key authorization: ApiKeyAuth
config.api_key['X-API-Key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['X-API-Key'] = 'Bearer'
end
api_instance = ScrapeBadger::LeboncoinApi.new
begin
# List categories
result = api_instance.leboncoin_list_categories
p result
rescue ScrapeBadger::ApiError => e
puts "Error when calling LeboncoinApi->leboncoin_list_categories: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(Object, Integer, Hash)> leboncoin_list_categories_with_http_info
begin
# List categories
data, status_code, headers = api_instance.leboncoin_list_categories_with_http_info
p status_code # => 2xx
p headers # => { ... }
p data # => Object
rescue ScrapeBadger::ApiError => e
puts "Error when calling LeboncoinApi->leboncoin_list_categories_with_http_info: #{e}"
endThis endpoint does not need any parameter.
Object
- Content-Type: Not defined
- Accept: application/json
Object leboncoin_list_departments(opts)
List departments
require 'time'
require 'scrapebadger'
# setup authorization
ScrapeBadger.configure do |config|
# Configure API key authorization: ApiKeyAuth
config.api_key['X-API-Key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['X-API-Key'] = 'Bearer'
end
api_instance = ScrapeBadger::LeboncoinApi.new
opts = {
region_id: 'region_id_example' # String |
}
begin
# List departments
result = api_instance.leboncoin_list_departments(opts)
p result
rescue ScrapeBadger::ApiError => e
puts "Error when calling LeboncoinApi->leboncoin_list_departments: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(Object, Integer, Hash)> leboncoin_list_departments_with_http_info(opts)
begin
# List departments
data, status_code, headers = api_instance.leboncoin_list_departments_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => Object
rescue ScrapeBadger::ApiError => e
puts "Error when calling LeboncoinApi->leboncoin_list_departments_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| region_id | String | [optional] |
Object
- Content-Type: Not defined
- Accept: application/json
Object leboncoin_list_markets
List markets
require 'time'
require 'scrapebadger'
# setup authorization
ScrapeBadger.configure do |config|
# Configure API key authorization: ApiKeyAuth
config.api_key['X-API-Key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['X-API-Key'] = 'Bearer'
end
api_instance = ScrapeBadger::LeboncoinApi.new
begin
# List markets
result = api_instance.leboncoin_list_markets
p result
rescue ScrapeBadger::ApiError => e
puts "Error when calling LeboncoinApi->leboncoin_list_markets: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(Object, Integer, Hash)> leboncoin_list_markets_with_http_info
begin
# List markets
data, status_code, headers = api_instance.leboncoin_list_markets_with_http_info
p status_code # => 2xx
p headers # => { ... }
p data # => Object
rescue ScrapeBadger::ApiError => e
puts "Error when calling LeboncoinApi->leboncoin_list_markets_with_http_info: #{e}"
endThis endpoint does not need any parameter.
Object
- Content-Type: Not defined
- Accept: application/json
Object leboncoin_list_regions
List regions
require 'time'
require 'scrapebadger'
# setup authorization
ScrapeBadger.configure do |config|
# Configure API key authorization: ApiKeyAuth
config.api_key['X-API-Key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['X-API-Key'] = 'Bearer'
end
api_instance = ScrapeBadger::LeboncoinApi.new
begin
# List regions
result = api_instance.leboncoin_list_regions
p result
rescue ScrapeBadger::ApiError => e
puts "Error when calling LeboncoinApi->leboncoin_list_regions: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(Object, Integer, Hash)> leboncoin_list_regions_with_http_info
begin
# List regions
data, status_code, headers = api_instance.leboncoin_list_regions_with_http_info
p status_code # => 2xx
p headers # => { ... }
p data # => Object
rescue ScrapeBadger::ApiError => e
puts "Error when calling LeboncoinApi->leboncoin_list_regions_with_http_info: #{e}"
endThis endpoint does not need any parameter.
Object
- Content-Type: Not defined
- Accept: application/json
Object leboncoin_location_autocomplete(q)
Location autocomplete
require 'time'
require 'scrapebadger'
# setup authorization
ScrapeBadger.configure do |config|
# Configure API key authorization: ApiKeyAuth
config.api_key['X-API-Key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['X-API-Key'] = 'Bearer'
end
api_instance = ScrapeBadger::LeboncoinApi.new
q = 'q_example' # String | Place name
begin
# Location autocomplete
result = api_instance.leboncoin_location_autocomplete(q)
p result
rescue ScrapeBadger::ApiError => e
puts "Error when calling LeboncoinApi->leboncoin_location_autocomplete: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(Object, Integer, Hash)> leboncoin_location_autocomplete_with_http_info(q)
begin
# Location autocomplete
data, status_code, headers = api_instance.leboncoin_location_autocomplete_with_http_info(q)
p status_code # => 2xx
p headers # => { ... }
p data # => Object
rescue ScrapeBadger::ApiError => e
puts "Error when calling LeboncoinApi->leboncoin_location_autocomplete_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| q | String | Place name |
Object
- Content-Type: Not defined
- Accept: application/json
Object leboncoin_search_leboncoin_ads(opts)
Search Leboncoin ads
Search Leboncoin classifieds (France; scope by region/department/city).
require 'time'
require 'scrapebadger'
# setup authorization
ScrapeBadger.configure do |config|
# Configure API key authorization: ApiKeyAuth
config.api_key['X-API-Key'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['X-API-Key'] = 'Bearer'
end
api_instance = ScrapeBadger::LeboncoinApi.new
opts = {
text: 'text_example', # String | Free-text query
category: 'category_example', # String | Category id (see /categories)
region_id: 'region_id_example', # String | Region id (see /regions)
department_id: 'department_id_example', # String | Department id, e.g. 75
city: 'city_example', # String |
zipcode: 'zipcode_example', # String |
price_min: 56, # Integer |
price_max: 56, # Integer |
owner_type: 'owner_type_example', # String | all | pro | private
ad_type: 'ad_type_example', # String | offer | demand
sort: 'sort_example', # String | relevance|newest|oldest|price_low|price_high
page: 56, # Integer |
limit: 56 # Integer |
}
begin
# Search Leboncoin ads
result = api_instance.leboncoin_search_leboncoin_ads(opts)
p result
rescue ScrapeBadger::ApiError => e
puts "Error when calling LeboncoinApi->leboncoin_search_leboncoin_ads: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(Object, Integer, Hash)> leboncoin_search_leboncoin_ads_with_http_info(opts)
begin
# Search Leboncoin ads
data, status_code, headers = api_instance.leboncoin_search_leboncoin_ads_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => Object
rescue ScrapeBadger::ApiError => e
puts "Error when calling LeboncoinApi->leboncoin_search_leboncoin_ads_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| text | String | Free-text query | [optional] |
| category | String | Category id (see /categories) | [optional] |
| region_id | String | Region id (see /regions) | [optional] |
| department_id | String | Department id, e.g. 75 | [optional] |
| city | String | [optional] | |
| zipcode | String | [optional] | |
| price_min | Integer | [optional] | |
| price_max | Integer | [optional] | |
| owner_type | String | all | pro |
| ad_type | String | offer | demand |
| sort | String | relevance | newest |
| page | Integer | [optional][default to 1] | |
| limit | Integer | [optional][default to 35] |
Object
- Content-Type: Not defined
- Accept: application/json