Anúncio Trade-A-Plane.
query é o URL de um anúncio com listing_id. A resposta é um objeto plano.
Um URL de pesquisa sem listing_id devolve 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
Exemplo (URL do anúncio):
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 é obrigatório. Só www.trade-a-plane.com é aceite.
| Forma |
Exemplo |
Efeito |
| URL do anúncio |
https://www.trade-a-plane.com/search?category_level1=Piston+Engine&make=ROLLS+ROYCE&model=PACKARD+V-1650&listing_id=2419556&s-type=engine |
Abre esse anúncio. O URL tem de incluir listing_id. |
Um URL de pesquisa sem listing_id devolve 400. Um valor vazio devolve 400.
| Parameter |
Tipo |
Obrigatório |
Descrição |
query |
string |
sim |
URL de anúncio com listing_id |
| Campo |
Tipo |
Descrição |
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 é a linha extra do preço.
images é a galeria, cada foto uma vez.
specifications são as linhas da página.
- Abrir o avião de um cartão
- Guardar horas, ano e preço
- Manter o contacto que a página mostra
| Code |
Significado |
400 |
Pedido vazio ou URL de pesquisa sem listing_id |
403 |
Bloqueado |
404 |
Anúncio não encontrado |
500 |
Falha do pedido |
Trade-A-Plane Pesquisa