AI engineering glossary · Web APIs HTTP

What is path parameter?

Path parameter (also called Path variable): A variable segment inside the path of a URL that identifies a particular resource, such as an id. It differs from query parameters, which are optional and follow the question mark.

Level: beginnerTopic: Web APIs HTTP

Path parameter: an example

In /users/42/posts/9, the values 42 and 9 are path parameters selecting one user and one post.

Related terms

More Web APIs HTTP terms

Where you learn it

Path parameter is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.