SWAPI API
Returns Star Wars people, films, planets and species with their attributes.
View as Markdown| GET | /swapi/person | One person of the films by uid: physical traits, homeworld and films. |
| GET | /swapi/film | One film by uid: title, episode, director, release date and opening crawl. |
| GET | /swapi/people | List of the people of the films with their uids, paged. |
| GET | /swapi/planet | One planet of the films by uid: climate, terrain, population and gravity. |
| GET | /swapi/planets | List of the planets of the films with their uids, paged. |
| GET | /swapi/species | One species of the films by uid: classification, language, lifespan and colors. |
| GET | /swapi/speciesList | List of the species of the films with their uids, paged. |
| GET | /swapi/starship | One starship of the films by uid: model, class, crew, speed and pilots. |
| GET | /swapi/starships | List of the starships of the films with their uids, paged. |
| GET | /swapi/vehicle | One vehicle of the films by uid: model, class, crew, speed and pilots. |
| GET | /swapi/vehicles | List of the vehicles of the films with their uids, paged. |
| GET | /swapi/films | The six films with their uids and titles, in one list. |
| GET | /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. |
person
/v1/swapi/personOne person of the films by uid: physical traits, homeworld and films.
Parameters
uidstring required | Person uid, such as 1 for Luke Skywalker. e.g. 1 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
birthYear | string |
eyeColor | string |
films | Link[] |
url | string |
gender | string |
hairColor | string |
height | string |
homeworld | string |
mass | string |
name | string |
skinColor | string |
uid | string |
url | string |
curl "https://api.hoshime.com/v1/swapi/person?uid=1" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/swapi/person?uid=1", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/swapi/person?uid=1", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/swapi/filmOne film by uid: title, episode, director, release date and opening crawl.
Parameters
uidstring required | Film uid, such as 1 for A New Hope. e.g. 1 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
characters | Link[] |
url | string |
director | string |
episodeId | string |
openingCrawl | string |
producer | string |
releaseDate | string |
title | string |
uid | string |
url | string |
curl "https://api.hoshime.com/v1/swapi/film?uid=1" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/swapi/film?uid=1", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/swapi/film?uid=1", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/swapi/peopleList of the people of the films with their uids, paged.
Parameters
limitinteger | Items per page, 1 to 50. default 10 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
name | string |
uid | string |
url | string |
curl "https://api.hoshime.com/v1/swapi/people" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/swapi/people", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/swapi/people", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/swapi/planetOne planet of the films by uid: climate, terrain, population and gravity.
Parameters
uidstring required | Uid of the item, such as 1. e.g. 1 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
climate | string |
diameter | string |
gravity | string |
name | string |
orbitalPeriod | string |
population | string |
rotationPeriod | string |
surfaceWater | string |
terrain | string |
uid | string |
url | string |
curl "https://api.hoshime.com/v1/swapi/planet?uid=1" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/swapi/planet?uid=1", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/swapi/planet?uid=1", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/swapi/planetsList of the planets of the films with their uids, paged.
Parameters
limitinteger | Items per page, 1 to 50. default 10 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
name | string |
uid | string |
url | string |
curl "https://api.hoshime.com/v1/swapi/planets" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/swapi/planets", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/swapi/planets", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/swapi/speciesOne species of the films by uid: classification, language, lifespan and colors.
Parameters
uidstring required | Uid of the item, such as 1. e.g. 1 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
averageHeight | string |
averageLifespan | string |
classification | string |
designation | string |
eyeColors | string |
hairColors | string |
homeworld | string |
language | string |
name | string |
people | Link[] |
url | string |
skinColors | string |
uid | string |
url | string |
curl "https://api.hoshime.com/v1/swapi/species?uid=1" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/swapi/species?uid=1", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/swapi/species?uid=1", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/swapi/speciesListList of the species of the films with their uids, paged.
Parameters
limitinteger | Items per page, 1 to 50. default 10 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
name | string |
uid | string |
url | string |
curl "https://api.hoshime.com/v1/swapi/speciesList" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/swapi/speciesList", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/swapi/speciesList", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/swapi/starshipOne starship of the films by uid: model, class, crew, speed and pilots.
Parameters
uidstring required | Uid of the item, such as 1. e.g. 12 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
cargoCapacity | string |
consumables | string |
costInCredits | string |
crew | string |
films | Link[] |
url | string |
hyperdriveRating | string |
length | string |
manufacturer | string |
maxAtmospheringSpeed | string |
model | string |
name | string |
passengers | string |
pilots | Link[] |
url | string |
starshipClass | string |
uid | string |
url | string |
curl "https://api.hoshime.com/v1/swapi/starship?uid=12" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/swapi/starship?uid=12", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/swapi/starship?uid=12", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/swapi/starshipsList of the starships of the films with their uids, paged.
Parameters
limitinteger | Items per page, 1 to 50. default 10 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
name | string |
uid | string |
url | string |
curl "https://api.hoshime.com/v1/swapi/starships" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/swapi/starships", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/swapi/starships", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/swapi/vehicleOne vehicle of the films by uid: model, class, crew, speed and pilots.
Parameters
uidstring required | Uid of the item, such as 1. e.g. 14 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
cargoCapacity | string |
consumables | string |
costInCredits | string |
crew | string |
films | Link[] |
url | string |
length | string |
manufacturer | string |
maxAtmospheringSpeed | string |
model | string |
name | string |
passengers | string |
pilots | Link[] |
url | string |
uid | string |
url | string |
vehicleClass | string |
curl "https://api.hoshime.com/v1/swapi/vehicle?uid=14" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/swapi/vehicle?uid=14", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/swapi/vehicle?uid=14", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/swapi/vehiclesList of the vehicles of the films with their uids, paged.
Parameters
limitinteger | Items per page, 1 to 50. default 10 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
name | string |
uid | string |
url | string |
curl "https://api.hoshime.com/v1/swapi/vehicles" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/swapi/vehicles", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/swapi/vehicles", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/swapi/filmsThe six films with their uids and titles, in one list.
Parameters
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
name | string |
uid | string |
url | string |
curl "https://api.hoshime.com/v1/swapi/films" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/swapi/films", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/swapi/films", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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
/v1/swapi/searchPeoplePeople of the Star Wars films whose name contains a text, such as Vader or Skywalker. All matches in one answer, not paged.
Parameters
querystring required | Part of the name, such as Vader or Skywalker. e.g. Skywalker |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
name | string |
uid | string |
url | string |
curl "https://api.hoshime.com/v1/swapi/searchPeople?query=Skywalker" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/swapi/searchPeople?query=Skywalker", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/swapi/searchPeople?query=Skywalker", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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 } }