APIs / PeoplePerHour / Categories
PeoplePerHour: Categories
Categories from PeoplePerHour as JSON. 1 credit per successful call.
GET /v1/peopleperhour/categories
Parameters
Send parameters in the query string.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
query | string | Optional | Up to 200 characters |
id | string | Optional | Up to 100 characters |
Example request
PeoplePerHour
GET/v1/peopleperhour/categories
{
"success": true,
"data": {
"categories": [
{
"id": "41",
"name": "Writing & Translation",
"slug": "writing-translation",
"subcategories": [
{
"id": "449",
"name": "Translation",
"slug": "translators"
},
{
"id": "450",
"name": "Technical Writing",
"slug": "technical-writing"
},
{
"id": "451",
"name": "Resumes, CVs & Cover Letters",
"slug": "resume-cvs-and-cover-letters"
}
]
},
{
"id": "42",
"name": "Technology & Programming",
"slug": "technology-programming",
"subcategories": [
{
"id": "460",
"name": "Programming & Coding",
"slug": "programming-coding"
},
{
"id": "461",
"name": "Data Science & Analysis",
"slug": "data-science-analysis"
},
{
"id": "462",
"name": "Databases",
"slug": "databases"
}
]
},
{
"id": "27",
"name": "Design",
"slug": "design",
"subcategories": [
{
"id": "227",
"name": "3D Design",
"slug": "3d-design"
},
{
"id": "232",
"name": "Logo Design",
"slug": "logo-design"
},
{
"id": "238",
"name": "Animation",
"slug": "animation"
}
]
}
],
"pagination": {
"page": 1,
"per_page": 10,
"has_more": false,
"total": 10
}
},
"meta": {
"endpoint_family": "peopleperhour.categories",
"attempts": 0,
"request_id": "req_b6f5bf8c80b64f3984484f36403e421d",
"credits_charged": 1,
"credits_remaining": 4819
}
}200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.
Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.
Response fields
Each item in data.categories has these 4 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.
| Field | Type |
|---|---|
id | string |
name | string |
slug | string |
subcategories | object[] |