Naar de inhoud
GET /v1/search

Search a category by name

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/starwars-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/starwars-api/v1/search" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/starwars-api/v1/search", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/starwars-api/v1/search");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/starwars-api/v1/search",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "type": "people",
        "count": 3,
        "query": "skywalker",
        "results": [
            {
                "uid": "1",
                "url": "https://www.swapi.tech/api/people/1",
                "mass": "77",
                "name": "Luke Skywalker",
                "films": [
                    "https://www.swapi.tech/api/films/1",
                    "https://www.swapi.tech/api/films/2",
                    "https://www.swapi.tech/api/films/3",
                    "https://www.swapi.tech/api/films/6"
                ],
                "edited": "2026-05-31T05:22:39.375Z",
                "gender": "male",
                "height": "172",
                "created": "2026-05-31T05:22:39.375Z",
                "vehicles": [
                    "https://www.swapi.tech/api/vehicles/14",
                    "https://www.swapi.tech/api/vehicles/30"
                ],
                "eye_color": "blue",
                "homeworld": "https://www.swapi.tech/api/planets/1",
                "starships": [
                    "https://www.swapi.tech/api/starships/12",
                    "https://www.swapi.tech/api/starships/22"
                ],
                "birth_year": "19BBY",
                "hair_color": "blond",
                "skin_color": "fair",
                "description": "A person within the Star Wars universe"
            },
            {
                "uid": "11",
                "url": "https://www.swapi.tech/api/people/11",
                "mass": "84",
                "name": "Anakin Skywalker",
                "films": [
                    "https://www.swapi.tech/api/films/4",
                    "https://www.swapi.tech/api/films/5",
                    "https://www.swapi.tech/api/films/6"
                ],
                "edited": "2026-05-31T05:22:39.375Z",
                "gender": "male",
                "height": "188",
                "created": "2026-05-31T05:22:39.375Z",
                "vehicles": [
                    "https://www.swapi.tech/api/vehicles/44",
                    "https://www.swapi.tech/api/vehicles/46"
                ],
                "eye_color": "blue",
                "homeworld": "https://www.swapi.tech/api/planets/1",
                "starships": [
                    "https://www.swapi.tech/api/starships/39",
                    "https://www.swapi.tech/api/starships/59",
                    "https://www.swapi.tech/api/starships/65"
                ],
                "birth_year": "41.9BBY",
                "hair_color": "blond",
                "skin_color": "fair",
                "description": "A person within the Star Wars universe"
            },
            {
                "uid": "43",
                "url": "https://www.swapi.tech/api/people/43",
                "mass": "unknown",
                "name": "Shmi Skywalker",
                "films": [
                    "https://www.swapi.tech/api/films/4",
                    "https://www.swapi
…