Skip to content

API Documentation

Fetch airfoil coordinates from your own scripts. Free, no sign-in or API key needed.

Get airfoil coordinates

GET https://airfolio-backend.onrender.com/api/v1/airfoils/{name_or_id}/coordinates

Replace {name_or_id} with the airfoil's name or ID. The name is the last part of the airfoil's page address: for airfolio.live/airfoils/naca2412 it is naca2412. Upper and lower case are treated the same. Find airfoils on the search page.

Response

{
  "id": "b69e99e3-2628-40da-b015-b1df7767e314",
  "name": "naca2412",
  "coordinates": [
    [1.0, 0.0],
    [0.999849, 0.000039],
    ...
    [0.999849, -0.000018],
    [1.0, 0.0]
  ]
}
id
The airfoil's unique ID.
name
The airfoil's name, as used in its page address.
coordinates
A list of [x, y] points, as fractions of the chord. The points form one loop in Selig order: from the upper trailing edge, around the leading edge, to the lower trailing edge.

Examples

Python

import requests
import numpy as np

url = "https://airfolio-backend.onrender.com/api/v1/airfoils/naca2412/coordinates"
data = requests.get(url).json()

xy = np.array(data["coordinates"])  # shape (N, 2)
x, y = xy[:, 0], xy[:, 1]

curl

curl https://airfolio-backend.onrender.com/api/v1/airfoils/naca2412/coordinates

Limits and errors

You can make up to 60 requests per minute.

404
No airfoil with that name or ID.
429
Too many requests. The Retry-After header gives the number of seconds to wait.

Use of the API is covered by our Terms of Service. Questions or problems? Use the contact page.