Skip to content

SWAPI API

13 endpointsEntertainment & BooksGlobalsocial:read12 real examples

Returns Star Wars people, films, planets and species with their attributes.

View as Markdown
GET/swapi/personOne person of the films by uid: physical traits, homeworld and films.
GET/swapi/filmOne film by uid: title, episode, director, release date and opening crawl.
GET/swapi/peopleList of the people of the films with their uids, paged.
GET/swapi/planetOne planet of the films by uid: climate, terrain, population and gravity.
GET/swapi/planetsList of the planets of the films with their uids, paged.
GET/swapi/speciesOne species of the films by uid: classification, language, lifespan and colors.
GET/swapi/speciesListList of the species of the films with their uids, paged.
GET/swapi/starshipOne starship of the films by uid: model, class, crew, speed and pilots.
GET/swapi/starshipsList of the starships of the films with their uids, paged.
GET/swapi/vehicleOne vehicle of the films by uid: model, class, crew, speed and pilots.
GET/swapi/vehiclesList of the vehicles of the films with their uids, paged.
GET/swapi/filmsThe six films with their uids and titles, in one list.
GET/swapi/searchPeoplePeople of the Star Wars films whose name contains a text, such as Vader or Skywalker. All matches in one answer, not paged.

person

GET/v1/swapi/person

One person of the films by uid: physical traits, homeworld and films.

scope social:read1 unitcached 24 h

Parameters

uid
string
required
Person uid, such as 1 for Luke Skywalker.
e.g. 1
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

13 fields
birthYearstring
eyeColorstring
filmsLink[]
urlstring
genderstring
hairColorstring
heightstring
homeworldstring
massstring
namestring
skinColorstring
uidstring
urlstring
curl "https://api.hoshime.com/v1/swapi/person?uid=1" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "birthYear": "19BBY",
    "eyeColor": "blue",
    "films": [
      {
        "url": "https://www.swapi.tech/api/films/1"
      },
      {
        "url": "https://www.swapi.tech/api/films/2"
      }
    ],
    "gender": "male",
    "hairColor": "blond",
    "height": "172",
    "homeworld": "https://www.swapi.tech/api/planets/1",
    "mass": "77",
    "name": "Luke Skywalker",
    "skinColor": "fair",
    "uid": "1",
    "url": "https://www.swapi.tech/api/people/1"
  },
  "meta": {
    "cached": false,
    "endpoint": "person",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "swapi",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

film

GET/v1/swapi/film

One film by uid: title, episode, director, release date and opening crawl.

scope social:read1 unitcached 24 h

Parameters

uid
string
required
Film uid, such as 1 for A New Hope.
e.g. 1
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

10 fields
charactersLink[]
urlstring
directorstring
episodeIdstring
openingCrawlstring
producerstring
releaseDatestring
titlestring
uidstring
urlstring
curl "https://api.hoshime.com/v1/swapi/film?uid=1" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "characters": [
      {
        "url": "https://www.swapi.tech/api/people/1"
      },
      {
        "url": "https://www.swapi.tech/api/people/2"
      }
    ],
    "director": "George Lucas",
    "episodeId": "4",
    "openingCrawl": "It is a period of civil war.\r\nRebel spaceships, striking\r\nfrom a hidden base, have won\r\ntheir first victory against\r\nthe evil Galactic Empir…",
    "producer": "Gary Kurtz, Rick McCallum",
    "releaseDate": "1977-05-25",
    "title": "A New Hope",
    "uid": "1",
    "url": "https://www.swapi.tech/api/films/1"
  },
  "meta": {
    "cached": false,
    "endpoint": "film",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "swapi",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

people

GET/v1/swapi/people

List of the people of the films with their uids, paged.

scope social:read1 unitcached 24 hpaginated

Parameters

limit
integer
Items per page, 1 to 50.
default 10
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

3 fields
namestring
uidstring
urlstring
curl "https://api.hoshime.com/v1/swapi/people" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "name": "Luke Skywalker",
      "uid": "1",
      "url": "https://www.swapi.tech/api/people/1"
    },
    {
      "name": "C-3PO",
      "uid": "2",
      "url": "https://www.swapi.tech/api/people/2"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "people",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "swapi",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

planet

GET/v1/swapi/planet

One planet of the films by uid: climate, terrain, population and gravity.

scope social:read1 unitcached 24 h

Parameters

uid
string
required
Uid of the item, such as 1.
e.g. 1
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

11 fields
climatestring
diameterstring
gravitystring
namestring
orbitalPeriodstring
populationstring
rotationPeriodstring
surfaceWaterstring
terrainstring
uidstring
urlstring
curl "https://api.hoshime.com/v1/swapi/planet?uid=1" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "climate": "arid",
    "diameter": "10465",
    "gravity": "1 standard",
    "name": "Tatooine",
    "orbitalPeriod": "304",
    "population": "200000",
    "rotationPeriod": "23",
    "surfaceWater": "1",
    "terrain": "desert",
    "uid": "1",
    "url": "https://www.swapi.tech/api/planets/1"
  },
  "meta": {
    "cached": false,
    "endpoint": "planet",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "swapi",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

planets

GET/v1/swapi/planets

List of the planets of the films with their uids, paged.

scope social:read1 unitcached 24 hpaginated

Parameters

limit
integer
Items per page, 1 to 50.
default 10
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

3 fields
namestring
uidstring
urlstring
curl "https://api.hoshime.com/v1/swapi/planets" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "name": "Tatooine",
      "uid": "1",
      "url": "https://www.swapi.tech/api/planets/1"
    },
    {
      "name": "Alderaan",
      "uid": "2",
      "url": "https://www.swapi.tech/api/planets/2"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "planets",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "swapi",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

species

GET/v1/swapi/species

One species of the films by uid: classification, language, lifespan and colors.

scope social:read1 unitcached 24 h

Parameters

uid
string
required
Uid of the item, such as 1.
e.g. 1
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

14 fields
averageHeightstring
averageLifespanstring
classificationstring
designationstring
eyeColorsstring
hairColorsstring
homeworldstring
languagestring
namestring
peopleLink[]
urlstring
skinColorsstring
uidstring
urlstring
curl "https://api.hoshime.com/v1/swapi/species?uid=1" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "averageHeight": "180",
    "averageLifespan": "120",
    "classification": "mammal",
    "designation": "sentient",
    "eyeColors": "brown, blue, green, hazel, grey, amber",
    "hairColors": "blonde, brown, black, red",
    "homeworld": "https://www.swapi.tech/api/planets/9",
    "language": "Galactic Basic",
    "name": "Human",
    "people": [
      {
        "url": "https://www.swapi.tech/api/people/66"
      },
      {
        "url": "https://www.swapi.tech/api/people/67"
      }
    ],
    "skinColors": "caucasian, black, asian, hispanic",
    "uid": "1",
    "url": "https://www.swapi.tech/api/species/1"
  },
  "meta": {
    "cached": false,
    "endpoint": "species",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "swapi",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

speciesList

GET/v1/swapi/speciesList

List of the species of the films with their uids, paged.

scope social:read1 unitcached 24 hpaginated

Parameters

limit
integer
Items per page, 1 to 50.
default 10
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

3 fields
namestring
uidstring
urlstring
curl "https://api.hoshime.com/v1/swapi/speciesList" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "name": "Human",
      "uid": "1",
      "url": "https://www.swapi.tech/api/species/1"
    },
    {
      "name": "Droid",
      "uid": "2",
      "url": "https://www.swapi.tech/api/species/2"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "speciesList",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "swapi",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

starship

GET/v1/swapi/starship

One starship of the films by uid: model, class, crew, speed and pilots.

scope social:read1 unitcached 24 h

Parameters

uid
string
required
Uid of the item, such as 1.
e.g. 12
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

18 fields
cargoCapacitystring
consumablesstring
costInCreditsstring
crewstring
filmsLink[]
urlstring
hyperdriveRatingstring
lengthstring
manufacturerstring
maxAtmospheringSpeedstring
modelstring
namestring
passengersstring
pilotsLink[]
urlstring
starshipClassstring
uidstring
urlstring
curl "https://api.hoshime.com/v1/swapi/starship?uid=12" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "cargoCapacity": "110",
    "consumables": "1 week",
    "costInCredits": "149999",
    "crew": "1",
    "films": [
      {
        "url": "https://www.swapi.tech/api/films/1"
      },
      {
        "url": "https://www.swapi.tech/api/films/2"
      }
    ],
    "hyperdriveRating": "1.0",
    "length": "12.5",
    "manufacturer": "Incom Corporation",
    "maxAtmospheringSpeed": "1050",
    "model": "T-65 X-wing",
    "name": "X-wing",
    "passengers": "0",
    "pilots": [
      {
        "url": "https://www.swapi.tech/api/people/1"
      },
      {
        "url": "https://www.swapi.tech/api/people/9"
      }
    ],
    "starshipClass": "Starfighter",
    "uid": "12",
    "url": "https://www.swapi.tech/api/starships/12"
  },
  "meta": {
    "cached": false,
    "endpoint": "starship",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "swapi",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

starships

GET/v1/swapi/starships

List of the starships of the films with their uids, paged.

scope social:read1 unitcached 24 hpaginated

Parameters

limit
integer
Items per page, 1 to 50.
default 10
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

3 fields
namestring
uidstring
urlstring
curl "https://api.hoshime.com/v1/swapi/starships" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "name": "CR90 corvette",
      "uid": "2",
      "url": "https://www.swapi.tech/api/starships/2"
    },
    {
      "name": "Star Destroyer",
      "uid": "3",
      "url": "https://www.swapi.tech/api/starships/3"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "starships",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "swapi",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

vehicle

GET/v1/swapi/vehicle

One vehicle of the films by uid: model, class, crew, speed and pilots.

scope social:read1 unitcached 24 h

Parameters

uid
string
required
Uid of the item, such as 1.
e.g. 14
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

17 fields
cargoCapacitystring
consumablesstring
costInCreditsstring
crewstring
filmsLink[]
urlstring
lengthstring
manufacturerstring
maxAtmospheringSpeedstring
modelstring
namestring
passengersstring
pilotsLink[]
urlstring
uidstring
urlstring
vehicleClassstring
curl "https://api.hoshime.com/v1/swapi/vehicle?uid=14" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": {
    "cargoCapacity": "10",
    "consumables": "none",
    "costInCredits": "unknown",
    "crew": "2",
    "films": [
      {
        "url": "https://www.swapi.tech/api/films/2"
      }
    ],
    "length": "4.5",
    "manufacturer": "Incom corporation",
    "maxAtmospheringSpeed": "650",
    "model": "t-47 airspeeder",
    "name": "Snowspeeder",
    "passengers": "0",
    "pilots": [
      {
        "url": "https://www.swapi.tech/api/people/1"
      },
      {
        "url": "https://www.swapi.tech/api/people/18"
      }
    ],
    "uid": "14",
    "url": "https://www.swapi.tech/api/vehicles/14",
    "vehicleClass": "airspeeder"
  },
  "meta": {
    "cached": false,
    "endpoint": "vehicle",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "swapi",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

vehicles

GET/v1/swapi/vehicles

List of the vehicles of the films with their uids, paged.

scope social:read1 unitcached 24 hpaginated

Parameters

limit
integer
Items per page, 1 to 50.
default 10
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

3 fields
namestring
uidstring
urlstring
curl "https://api.hoshime.com/v1/swapi/vehicles" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "name": "Sand Crawler",
      "uid": "4",
      "url": "https://www.swapi.tech/api/vehicles/4"
    },
    {
      "name": "X-34 landspeeder",
      "uid": "7",
      "url": "https://www.swapi.tech/api/vehicles/7"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "vehicles",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "swapi",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

films

GET/v1/swapi/films

The six films with their uids and titles, in one list.

scope social:read1 unitcached 24 hpaginated

Parameters

tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

3 fields
namestring
uidstring
urlstring
curl "https://api.hoshime.com/v1/swapi/films" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "data": [
    {
      "name": "A New Hope",
      "uid": "1",
      "url": "https://www.swapi.tech/api/films/1"
    },
    {
      "name": "The Empire Strikes Back",
      "uid": "2",
      "url": "https://www.swapi.tech/api/films/2"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "films",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "swapi",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

searchPeople

GET/v1/swapi/searchPeople

People of the Star Wars films whose name contains a text, such as Vader or Skywalker. All matches in one answer, not paged.

scope social:read1 unitcached 24 hpaginated

Parameters

query
string
required
Part of the name, such as Vader or Skywalker.
e.g. Skywalker
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

3 fields
namestring
uidstring
urlstring
curl "https://api.hoshime.com/v1/swapi/searchPeople?query=Skywalker" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": [
    {
      "name": "…",
      "uid": "…",
      "url": "https://…"
    }
  ],
  "meta": {
    "cached": false,
    "endpoint": "searchPeople",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "pagination": {
      "nextCursor": "EpcDEgV…",
      "hasMore": true,
      "total": null
    },
    "platform": "swapi",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}
esc
↑↓ move↵ open