Fiche Trade-A-Plane.
query est l'URL d'une annonce. Elle contient listing_id et s-type (aircraft ou engine). La réponse est un objet plat : prix, vendeur, téléphone, lieu, description, photos et caractéristiques.
Une URL de recherche sans listing_id renvoie 400.
GET https://api.piloterr.com/v2/tradeaplane/listing?query=https://www.trade-a-plane.com/search?category_level1=Piston+Engine&make=ROLLS+ROYCE&model=PACKARD+V-1650&listing_id=2419556&s-type=engine
Exemple (URL d'annonce):
https://www.trade-a-plane.com/search?category_level1=Piston+Engine&make=ROLLS+ROYCE&model=PACKARD+V-1650&listing_id=2419556&s-type=engine
query est obligatoire. Seul www.trade-a-plane.com est accepté.
| Forme |
Exemple |
Effet |
| URL d'annonce |
https://www.trade-a-plane.com/search?category_level1=Piston+Engine&make=ROLLS+ROYCE&model=PACKARD+V-1650&listing_id=2419556&s-type=engine |
Ouvre cette annonce. La requête doit contenir listing_id. |
Une URL de recherche sans listing_id renvoie 400. Un autre hôte renvoie 400. Une valeur vide renvoie 400.
| Paramètre |
Type |
Obligatoire |
Description |
query |
string |
oui |
URL d'annonce qui contient listing_id |
| Champ |
Type |
Description |
listing_id |
string |
Listing id |
title |
string |
Listing title |
url |
string |
Listing URL |
listing_type |
string | null |
aircraft or engine |
category |
string | null |
Category |
make |
string | null |
Make |
model |
string | null |
Model |
sale_status |
string | null |
For Sale or similar |
condition |
string | null |
Condition |
price |
number | null |
Price in USD |
price_display |
string | null |
Price as shown |
price_note |
string | null |
Extra price line |
currency |
string | null |
USD |
seller |
string | null |
Seller |
phone |
string | null |
Seller phone |
city |
string | null |
City |
region |
string | null |
State |
country |
string | null |
Country |
postal_code |
string | null |
Postal code |
description |
string | null |
Detailed description |
images |
string[] |
Gallery URLs |
specifications |
array |
Rows { name, value } |
price_note est la ligne de prix supplémentaire, par exemple OBO Will Consider All Trades.
images est la galerie. Une même photo n'est renvoyée qu'une fois.
specifications reprend les lignes libellé / valeur de la page.
warranty vaut null quand la page dit Not Listed.
- Ouvrir l'avion indiqué par une carte
- Conserver heures, année et prix
- Garder les coordonnées affichées
| Code |
Signification |
400 |
Requête vide, hôte inconnu, ou URL de recherche sans listing_id |
403 |
Bloqué |
404 |
Annonce introuvable |
500 |
Échec de la récupération |
Trade-A-Plane Recherche